/* ============================================
   Crosswords Online - Unified Styles
   All pages: Home, History, About, Contact, Privacy
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: ltr;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HEADER (All Pages)
   ============================================ */

header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    text-align: center;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    font-size: 1.1em;
}

/* ============================================
   NAVIGATION (All Pages)
   ============================================ */

nav {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    background: #667eea;
    color: white;
}

/* ============================================
   FOOTER (All Pages)
   ============================================ */

footer {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    text-align: center;
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ============================================
   COMMON CONTENT SECTIONS
   ============================================ */

.content,
.main-content {
    width: 100%;
}

.content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    color: #667eea;
    font-size: 2.5em;
}

h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
}

h3 {
    color: #764ba2;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05em;
}

ul, ol {
    color: #555;
    line-height: 1.8;
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* ============================================
   BUTTONS (All Pages)
   ============================================ */

.cta-button,
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button,
.btn-primary {
    background: #667eea;
    color: white;
}

.cta-button:hover,
.btn-primary:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.search-button,
.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.search-button:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   HOME PAGE & PUZZLE PAGES
   ============================================ */

.puzzle-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.puzzle-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.puzzle-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.puzzle-info p {
    color: #555;
    line-height: 1.6;
}

.puzzle-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    min-height: 500px;
    display: flex;
	flex-direction: column; /* Αλλαγή από default (row) σε column */
    align-items: center;
    justify-content: center;
}

/* Ensure iframe takes full width */
.puzzle-container iframe {
    width: 100% !important;
    margin-bottom: 10px; /* Διάστημα μεταξύ puzzle και attribution */
}

/* Interactive Puzzle Section (Separate) */
/*
.puzzle-container-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.additional-content {
    display: block;
}
*/

/* Puzzle Me Attribution */
.pm-attribution-div {
    font-family: sans-serif;
    font-size: 12px;
    color: #666;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
}

.pm-attribution-div a {
    color: #666;
    text-decoration: underline;
}

/* ============================================
   BADGES (Puzzle Pages)
   ============================================ */

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 10px;
    margin-top: 10px;
}

.badge-easy {
    background: #d4edda;
    color: #155724;
}

.badge-medium,
.badge-challenging {
    background: #fff3cd;
    color: #856404;
}

.badge-hard,
.badge-tough {
    background: #f8d7da;
    color: #721c24;
}

.badge-theme {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-dimensions {
    background: #e3f2fd;
    color: #0d47a1;
}

/* ============================================
   HISTORY PAGE
   ============================================ */

.search-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.search-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.filter-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-group select:hover {
    border-color: #667eea;
}

.results-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    display: none;
}

.results-section.show {
    display: block;
}

.results-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.results-count {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.puzzle-list {
    display: grid;
    gap: 15px;
}

.puzzle-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.puzzle-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #e8eaf6;
}

.puzzle-item h4 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.puzzle-item p {
    color: #666;
    font-size: 0.95em;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-results-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.hero-section {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.hero-section h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-section .subtitle {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1em;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.highlight-box h3 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.highlight-box p {
    color: rgba(255,255,255,0.95);
    font-size: 1.15em;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.95em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.value-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #667eea;
}

.value-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.value-card h4 {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.value-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.7;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-date {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h4 {
    color: #764ba2;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95em;
}

.team-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
    flex-shrink: 0;
}

.team-info h4 {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.team-role {
    color: #764ba2;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-bio {
    color: #666;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.15em;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.content-wrapper {
    display: block;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.page-title {
    color: #667eea;
    font-size: 2.2em;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.intro-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-method:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2em;
    min-width: 50px;
    text-align: center;
}

.contact-details h3 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.contact-details p {
    color: #666;
    line-height: 1.6;
}

.contact-link,
.contact-email {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover,
.contact-email:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.social-links {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 30px;
    text-align: center;
}

.social-links h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.facebook { background: #1877f2; }
.twitter { background: #1da1f2; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.youtube { background: #ff0000; }

.faq-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.faq-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 2em;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.faq-question {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */

.last-updated {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 30px;
}

.contact-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.contact-box h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.contact-box .contact-email {
    font-size: 1.2em;
}

/* ============================================
   RESPONSIVE DESIGN (All Pages)
   ============================================ */

@media (max-width: 768px) {
    .content {
        padding: 25px;
    }

    header h1,
    h1 {
        font-size: 2em;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    h2,
    .section h2 {
        font-size: 1.6em;
    }

    .stats-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .filter-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px;
    }

    header h1,
    h1 {
        font-size: 1.5em;
    }

    .page-title {
        font-size: 1.8em;
    }

    .puzzle-section,
    .contact-info,
    .contact-form,
    .faq-section {
        padding: 15px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

/* ============================================
   SEO & ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Site Title (not H1, for header) */
.site-title {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Puzzle Badges - Icon Replacements */
.puzzle-badges {
    margin-top: 15px;
}

.badge {
    position: relative;
    padding-left: 30px; /* Space for icon */
}

/* Badge Icons using ::before pseudo-element */
.badge-theme::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c5460'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.badge-easy::before {
    content: '✓';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #155724;
}

.badge-medium::before,
.badge-challenging::before {
    content: '⚡';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.badge-hard::before,
.badge-tough::before {
    content: '🔥';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.badge-dimensions::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d47a1'%3E%3Cpath d='M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Additional Content Sections for SEO */
.puzzle-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.puzzle-description h2 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.puzzle-description p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.puzzle-tips {
    background: #fff3cd;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #ffc107;
}

.puzzle-tips h2 {
    color: #856404;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.puzzle-tips ul {
    margin-left: 25px;
    color: #555;
}

.puzzle-tips li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.related-puzzles {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #2196f3;
}

.related-puzzles h2 {
    color: #1565c0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.related-puzzles p {
    color: #555;
    margin-bottom: 15px;
}

.related-puzzles ul {
    margin-left: 25px;
    color: #555;
}

.related-puzzles li {
    margin-bottom: 10px;
}

.related-puzzles a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.related-puzzles a:hover {
    text-decoration: underline;
}

/* Puzzle Date with semantic HTML */
.puzzle-date {
    color: #666;
    font-size: 1em;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: #999;
    font-weight: bold;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #666;
}

/* Structured Data / Schema.org visual indicators */
.schema-article {
    /* Hidden from view but visible to screen readers and search engines */
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Skip to main content (Accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
select:focus,
input:focus,
textarea:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print styles for accessibility */
@media print {
    .no-print,
    nav,
    footer,
    .social-links,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content,
    .puzzle-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Reduced Motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .badge {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep current light theme for now, but this is here for future implementation */
}

/* Screen Reader Only (for accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}