/* Theme-specific header/footer colors */
html[data-theme="light"] .header,
html[data-theme="light"] .footer,
html[data-theme="light"] .footer-bottom { background: #fff; }
html[data-theme="dark"] .header,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer-bottom { background: #0c0f17; color: #e5e7eb; }
html[data-theme="dark"] .footer-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
html[data-theme="dark"] body {
    background: repeating-radial-gradient(
        circle at 120% -10%,
        rgba(26,21,3,0.6) 0 120px,
        rgba(94,71,8,0.45) 120px 240px,
        rgba(247,188,53,0.35) 240px 360px
    );
    background-color: #0c0f17;
    color: #e5e7eb;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html[data-theme="light"] body,
body {
    font-family: 'Comic Neue', cursive;
    /* Concentric sunny rings */
    background: repeating-radial-gradient(
        circle at 120% -10%,
        rgba(255,239,110,0.45) 0 120px,
        rgba(255,196,42,0.35) 120px 240px,
        rgba(255,176,26,0.30) 240px 360px
    );
    background-color: #fff7d6;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 0;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Global offset for fixed header */
:root {
    --header-offset-desktop: 120px;
    --header-offset-mobile: 96px;
}

body {
    padding-top: var(--header-offset-desktop);
}

@media (max-width: 768px) {
    .footer-sections { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    body {
        padding-top: var(--header-offset-mobile);
    }
    /* Mobile card layout similar to store cards */
    .games-container { padding: 0 1rem; }
    .games-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .game-card { border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); overflow: hidden; background: var(--card-bg, #fff); }
    html[data-theme="light"] .game-card { --card-bg: #fff; }
    html[data-theme="dark"] .game-card { --card-bg: #0c0f17; }
    .game-image { height: 140px; }
    .game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
    .game-info { padding: 0.75rem; text-align: left; }
    .game-title { font-size: 1rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .game-category { font-size: 0.8rem; margin-top: 0.2rem; }
    /* Hide hover overlay on touch */
    .play-overlay { display: none; }
    .hero-slider { height: 180px; border-radius: 12px; margin: 0 1rem 1rem; }
    .hero-section { margin: 0 1rem 1rem; }
}

/* Subtle animated decorative shapes */
/* Removed animated arc background */

/* Animated yellow arc background (light and dark) */
/* removed overlay arc (moved into ::before) */

/* remove previous gradient animation */

/* (animation removed) */

/* Theme toggle button */
.theme-toggle-desktop { margin-left: 0.5rem; }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.theme-toggle .theme-thread { position: relative; width: 42px; height: 22px; background: #111; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08); }
.theme-toggle .theme-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #f7bc35; border-radius: 50%; transition: transform 0.25s ease; }
.theme-toggle.active .theme-thumb { transform: translateX(20px); }
.theme-toggle .theme-icon.sun { filter: saturate(1.2); }
.theme-toggle.mobile { width: 100%; justify-content: center; padding: 0.6rem 0.8rem; background: #111; color: #fff; border: 1px solid rgba(255,255,255,0.15); }

/* Header Styles */
.header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f7bc35;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.mobile-menu-toggle.active {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.mobile-menu-toggle .hamburger {
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger {
    transform: rotate(45deg);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #1e3a8a;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-kids {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    transform: rotate(-5deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #f7bc35;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    display: block;
    pointer-events: auto;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-list .nav-link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
    border-radius: 0;
    color: #000; /* mobile nav links in black */
}

.mobile-nav-list .nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-list .nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(10px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.search-button {
    background: #8b5cf6;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #7c3aed;
    transform: scale(1.1);
}

.mascot {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.octopus-mascot {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.header-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
}

/* Floating background characters removed */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #111;
}

.hero-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slider .slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.hero-slider .slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
    color: #fff;
}

.hero-slider .slide-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
}

.hero-slider .slide-cta {
    display: inline-block;
    background: #f7bc35; /* light accent */
    color: #1e3a8a;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
}
html[data-theme="dark"] .hero-slider .slide-cta { color: #0c0f17; }

.hero-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}

.hero-slider .slider-btn:hover {
    background: rgba(0,0,0,0.6);
}

.hero-slider .slider-btn.prev { left: 10px; }
.hero-slider .slider-btn.next { right: 10px; }

.hero-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 4;
}

.hero-slider .slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.hero-slider .slider-dots button.active {
    background: #f7bc35;
}

@media (max-width: 768px) {
    .hero-slider { height: 220px; border-radius: 12px; }
    .hero-slider .slide-title { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-slider { height: 180px; border-radius: 10px; }
}

.wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffd700" opacity=".25"/></svg>') repeat-x;
    animation: wave 3s ease-in-out infinite;
}

.paint-splash {
    position: absolute;
    right: 2rem;
    bottom: -10px;
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50% 0 50% 0;
    transform: rotate(45deg);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: titleBounce 2s ease-in-out infinite;
}
html[data-theme="dark"] .hero-title { color: #000000; }

/* Global page title color */
.hero-title,
.page-header h1,
.about-hero h1,
.contact-hero h1,
.search-hero h1 { color: #f7bc35; }
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .about-hero h1,
html[data-theme="dark"] .contact-hero h1,
html[data-theme="dark"] .search-hero h1 { color: #f7bc35; }

.star-icon {
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

/* Games Grid */
.games-container {
    padding: 0 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
html[data-theme="dark"] .game-card { background: #0c0f17; box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
html[data-theme="light"] .game-card { background: #ffffff; }

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    background: #f7bc35; /* theme accent */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}
html[data-theme="light"] .play-button:hover { background: #f4b31e; color: #fff; }
html[data-theme="dark"] .play-button { color: #0c0f17; }
html[data-theme="dark"] .play-button:hover { background: #0c0f17; color: #fff; box-shadow: 0 0 0 2px #f7bc35 inset; }

.game-info {
    padding: 1.5rem;
    text-align: center;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f7bc35;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}
/* same title color in light and dark */
html[data-theme="dark"] .game-category { color: #9ca3af; }

.game-category {
    color: #6b7280;
    font-size: 0.9rem;  
    font-weight: 500;
}

/* Theme surfaces for cards across all pages */
/* Treat these as generic card containers to keep theme consistent */
.card-surface-placeholder {} /* anchor for search only */
html[data-theme="light"] .related-game-card,
html[data-theme="light"] .category-card,
html[data-theme="light"] .category-card-large,
html[data-theme="light"] .age-group-card,
html[data-theme="light"] .featured-card,
html[data-theme="light"] .about-section,
html[data-theme="light"] .contact-section,
html[data-theme="light"] .contact-form-section,
html[data-theme="light"] .contact-info-section,
html[data-theme="light"] .filters-section {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

html[data-theme="dark"] .related-game-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .category-card-large,
html[data-theme="dark"] .age-group-card,
html[data-theme="dark"] .featured-card,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .contact-form-section,
html[data-theme="dark"] .contact-info-section,
html[data-theme="dark"] .filters-section {
    background: #0c0f17;
    color: #e5e7eb;
    box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

/* Headings inside cards */
html[data-theme="light"] .related-game-card h3,
html[data-theme="light"] .category-card h3,
html[data-theme="light"] .category-card-large h3,
html[data-theme="light"] .age-group-card h3,
html[data-theme="light"] .featured-card h3,
html[data-theme="light"] .about-section h2,
html[data-theme="light"] .contact-section h2,
html[data-theme="light"] .contact-form-section h2,
html[data-theme="light"] .contact-info-section h2,
html[data-theme="light"] .filters-section h2 {
    color: #f7bc35;
}

html[data-theme="dark"] .related-game-card h3,
html[data-theme="dark"] .category-card h3,
html[data-theme="dark"] .category-card-large h3,
html[data-theme="dark"] .age-group-card h3,
html[data-theme="dark"] .featured-card h3,
html[data-theme="dark"] .about-section h2,
html[data-theme="dark"] .contact-section h2,
html[data-theme="dark"] .contact-form-section h2,
html[data-theme="dark"] .contact-info-section h2,
html[data-theme="dark"] .filters-section h2 {
    color: #f7bc35;
}

/* Game page theming using gold accent */
html[data-theme="light"] .game-page .game-title-large,
html[data-theme="light"] .game-page .game-title,
html[data-theme="light"] .related-game-card h3,
html[data-theme="dark"] .game-page .game-title-large,
html[data-theme="dark"] .game-page .game-title,
html[data-theme="dark"] .related-game-card h3 { color: #f7bc35; }

html[data-theme="light"] .game-page .game-description,
html[data-theme="light"] .instructions-content .step-content p { color: #374151; }
html[data-theme="dark"] .game-page .game-description,
html[data-theme="dark"] .instructions-content .step-content p { color: #d1d5db; }

html[data-theme="dark"] .game-category-badge,
html[data-theme="light"] .game-category-badge { background: #f7bc35; color: #0c0f17; }

/* Separator Banner */
.separator-banner {
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
    height: 60px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.separator-banner .wave-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffffff" opacity=".1"/></svg>') repeat-x;
    animation: wave 4s ease-in-out infinite;
}

/* Footer */
.footer {
    background: #fff;
    color: #1f2937;
    margin-top: 3rem;
    box-shadow: 0 -8px 24px rgba(247,188,53,0.25);
}

.footer-top {
    padding: 1.25rem 0;
    border-top: 2px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* New footer grid structure (Explore/Privacy/Contact/Shop) */
.footer-sections {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-col { min-width: 180px; padding-top: 0; }
.footer-heading { color: #fff; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.75rem 0; }
html[data-theme="light"] .footer-heading { color: #000; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-brand .footer-note { color: #bbb; margin-top: 0.5rem; font-size: 0.9rem; }

/* Ensure gold link color for our new lists */
.footer-links .footer-link { color: #f7bc35; padding: 0.25rem 0; }
.footer-links .footer-link:hover { color: #f7bc35; background: rgba(0, 0, 0, 0.12); }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-nav-list {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #f7bc35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.footer-link:hover {
    background: rgba(0,0,0,0.06);
    color: #111;
    transform: translateY(-2px);
}

.footer-logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f7bc35;
}

.logo-k {
    background: white;
    color: #8b5cf6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.sparkles {
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

.footer-nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fbbf24;
    transform: translateY(-2px);
}

.footer-bottom {
    background: #fff;
    padding: 1rem 0 1rem 0;
    color: #6b7280;
}

.copyright { justify-content: center; }
.copyright p { color: #9ca3af; font-size: 0.9rem; }

.footer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-creature {
    font-size: 3rem;
    animation: bounce 3s infinite;
}

.footer-text {
    flex: 1;
    max-width: 600px;
}

.footer-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.safety-badge {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 150px;
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.badge-icon {
    font-size: 2rem;
}

.badge-text {
    font-size: 0.8rem;
    color: #1e3a8a;
}

.badge-text strong {
    display: block;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Styles */
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
        padding-left: 0; /* allow logo to align fully left */
    }
    
    .logo-section {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .logo {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        margin-left: auto; /* push hamburger to far right */
    }
    
    .logo-image {
        max-width: 180px;
        height: auto;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: none; /* keep hidden until active */
        pointer-events: none;
    }
    /* Offsets handled globally on body; no extra per-page padding here */
    
    .header-actions {
        order: -1;
        flex: 1;
        justify-content: flex-end;
    }
    
    .search-container {
        display: none;
    }
    
    .mascot {
        display: none;
    }
    
    /* Hero Section Mobile */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Games Grid Mobile */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Footer Mobile Styles */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        order: 2;
        width: 100%;
    }
    
    .footer-nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-logo {
        order: 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-creature {
        order: 1;
    }
    
    .footer-text {
        order: 2;
    }
    
    .safety-badge {
        order: 3;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Styles */
    .header-container {
        padding: 0.5rem 1rem;
    }
    /* Offsets handled globally on body; no extra per-page padding here */
    
    .logo-image {
        max-width: 140px;
        height: auto;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-kids {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-nav-list .footer-link {
        padding: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .footer-nav-list .footer-link:last-child {
        border-bottom: none;
    }
    
    .footer-content {
        padding: 1rem;
    }
    
    .footer-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .safety-badge {
        padding: 0.8rem;
        min-width: 120px;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .badge-text strong {
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .nav-link,
    .footer-link,
    .btn,
    .game-card {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-list .nav-link {
        min-height: 50px;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-button,
    .search-button-large {
        min-width: 44px;
        min-height: 44px;
    }
    
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .header-container {
        padding: 0.5rem 1rem;
    }
    
    .mobile-nav {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Additional Page Styles */
.game-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.game-hero {
    margin-bottom: 3rem;
}

.game-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.game-image-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.game-image-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-image-large:hover .game-overlay {
    opacity: 1;
}

.play-button-large {
    background: #f7bc35;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button-large:hover {
    background: #f4b31e;
    transform: scale(1.05);
}

.play-icon {
    font-size: 1.5rem;
}

.game-info-large {
    padding: 2rem;
}

.game-title-large {
    font-family: 'Fredoka One', cursive;    
    font-size: 2.5rem;
    color: #f7bc35;
    margin-bottom: 1rem;
}
/* same title color in light and dark */

.game-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-category-badge {
    background: #8b5cf6;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.game-age-range {
    background: #fbbf24;
    color: #1e3a8a;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
html[data-theme="dark"] .game-age-range {
    background: #0c0f17;
    color: #f7bc35;
    border: 2px solid #f7bc35;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: #f7bc35;
    color: #0c0f17;
}

.btn-primary:hover {
    background: #f4b31e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Theme buttons in dark mode */
html[data-theme="dark"] .btn-primary { background: #f7bc35; color: #0c0f17; }
html[data-theme="dark"] .btn-primary:hover { background: #f4b31e; }
html[data-theme="dark"] .btn-secondary { background: #111827; color: #e5e7eb; border: 2px solid #374151; }
html[data-theme="dark"] .btn-secondary:hover { background: #1f2937; }

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.game-rating {
    margin-top: 2rem;
}

.game-rating h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

.star-rating {
    display: flex;
    gap: 0.3rem;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.game-content {
    margin-top: 3rem;
}

.game-instructions {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}
html[data-theme="dark"] .game-instructions { background: #0c0f17; box-shadow: 0 6px 18px rgba(0,0,0,0.5); }

.game-instructions h2 {
    color: #f7bc35;
    margin-bottom: 1.5rem;
    font-family: 'Fredoka One', cursive;
}

.instructions-content {
    display: grid;
    gap: 1.5rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.step-number {
    background: #f7bc35;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #f7bc35;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

.related-games {
    margin-top: 3rem;
}

.related-games h2 {
    color: #f7bc35;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-game-card h3 {
    padding: 1rem;
    font-size: 1.1rem;
    color: #1e3a8a;
    font-family: 'Fredoka One', cursive;
}

/* Games Page Styles */
.games-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #f7bc35;
    margin-bottom: 1rem;
}
html[data-theme="dark"] .page-header h1 { color: #f7bc35; }

.page-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

.filters-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
}
html[data-theme="dark"] .filter-group label { color: #e5e7eb; }

/* Theme the filter controls */
html[data-theme="dark"] .filter-group select {
    background: #0c0f17;
    color: #e5e7eb;
    border-color: #374151;
}
html[data-theme="light"] .filter-group select { background: #ffffff; color: #1f2937; }

.filter-group select {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.games-results {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    color: #f7bc35;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
}

.results-count {
    color: #6b7280;
    font-size: 1.1rem;
}

.no-games {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-games-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-games h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.8rem 1.2rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover {
    background: #f7bc35;
    color: #0c0f17;
    border-color: #f7bc35;
}

.pagination-btn.active {
    background: #f7bc35;
    color: #0c0f17;
    border-color: #f7bc35;
}

/* Dark mode pagination */
html[data-theme="dark"] .pagination-btn {
    background: #0c0f17;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-theme="dark"] .pagination-btn:hover,
html[data-theme="dark"] .pagination-btn.active {
    background: #f7bc35;
    color: #0c0f17;
    border-color: #f7bc35;
}

/* Search Page Styles */
.search-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.search-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.search-hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-input-large {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-button-large {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button-large:hover {
    background: #7c3aed;
}

.search-results {
    margin-top: 3rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.search-suggestions {
    margin-top: 2rem;
}

.search-suggestions h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.suggestion-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.suggestion-tag:hover {
    background: #8b5cf6;
    color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

/* Categories Page Styles */
.categories-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card-large {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-title {
    color: #f7bc35;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
}

.category-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-stats {
    margin-bottom: 1.5rem;
}

.game-count {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-link {
    background: #f7bc35;
    color: #0c0f17;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-link:hover {
    background: #f4b31e;
    transform: translateY(-2px);
}

.age-groups {
    margin: 4rem 0;
}

.age-groups h2 {
    color: #f7bc35;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
    text-align: center;
}

.age-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.age-group-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.age-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.age-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.age-group-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.age-link {
    background: #fbbf24;
    color: #1e3a8a;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.age-link:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.featured-categories {
    margin: 4rem 0;
}

.featured-categories h2 {
    color: #f7bc35;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.featured-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.featured-card h3 {
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.featured-link {
    background: #f7bc35;
    color: #0c0f17;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.featured-link:hover {
    background: #f4b31e;
    transform: translateY(-2px);
}

/* About Page Styles */
.about-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #f7bc35;
    margin-bottom: 1rem;
}
html[data-theme="dark"] .about-hero h1 { color: #f7bc35; }

.hero-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-family: 'Fredoka One', cursive;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #111827; /* light default (black-ish) */
    margin-bottom: 2rem;
}
html[data-theme="dark"] .about-section p { color: #ffffff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}
html[data-theme="dark"] .feature-card { background: #0c0f17; border: 1px solid #374151; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #f7bc35;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.safety-section {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.safety-section h2 {
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.safety-badge-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
}

.badge-icon {
    font-size: 3rem;
}

.badge-text h3 {
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

.safety-features ul {
    list-style: none;
    text-align: left;
}

.safety-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.team-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-section h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

.team-member p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.contact-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-section h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}
html[data-theme="dark"] .contact-method { background: #0c0f17; border: 1px solid #374151; }

.contact-method:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h3 {
    color: #f7bc35;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

/* Contact Page Styles */
.contact-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #f7bc35;
    margin-bottom: 1rem;
}
html[data-theme="dark"] .contact-hero h1 { color: #f7bc35; }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form-section h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.success-message,
.error-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message-icon {
    font-size: 1.5rem;
}

.contact-info-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info-section h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #f7bc35;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

.contact-details p {
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.social-links {
    margin-top: 2rem;
    text-align: center;
}

.social-links h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #8b5cf6;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #7c3aed;
    transform: translateY(-3px);
}

.faq-section {
    margin-top: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-section h2 {
    color: #f7bc35;
    margin-bottom: 2rem;
    font-family: 'Fredoka One', cursive;
    text-align: center;
}

.faq-grid {
    display: grid;
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #f7bc35;
}

.faq-item h3 {
    color: #f7bc35;
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.faq-item p {
    color: #4b5563;
    line-height: 1.6;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .game-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .safety-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button-large {
        border-radius: 0 0 50px 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .game-title-large {
        font-size: 2rem;
    }
    
    .about-hero h1,
    .contact-hero h1,
    .search-hero h1 {
        font-size: 2.5rem;
    }
}
