/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #141414;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: #141414;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #818cf8;
}

.brand-tagline {
    font-size: 0.875rem;
    color: #9ca3af;
    display: none;
}

@media (min-width: 768px) {
    .brand-tagline {
        display: block;
    }
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.nav-dropdown-btn:hover {
    color: #ffffff;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 16rem;
    background: #1a1a1a;
    border-radius: 0.5rem;
    border: 1px solid #3a3a3a;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section {
    padding: 0.5rem;
}

.dropdown-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #2a2a2a;
    color: #818cf8;
}

.dropdown-item-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    background: #2a2a2a;
    border-radius: 0.25rem;
    padding: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item-content {
    flex: 1;
}

.dropdown-item-title {
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.dropdown-item-desc {
    font-size: 0.75rem;
    color: #9ca3af;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: #9ca3af;
    transition: all 0.2s;
}

/* Main Content */
.main-content {
    padding-top: 2rem;
}

/* Games Section */
.games-section {
    padding: 2rem 0;
}

.games-container {
    max-width: 100%;
    padding: 0 3rem;
}

@media (max-width: 767px) {
    .games-container {
        padding: 0 1rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.game-card {
    flex: 0 0 auto;
    width: 300px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin-right: 0.75rem;
}

.game-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.game-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #2a2a2a;
}

.game-content {
    padding: 0.75rem;
}

.game-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.game-card:hover .game-title {
    color: #e0e7ff;
}

.game-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.game-skill {
    font-size: 0.6875rem;
    background: #2a2a2a;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Categories Section */
.categories-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.category-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.category-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.category-info p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.category-link {
    margin-left: auto;
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.category-link:hover {
    color: #a5b4fc;
}

.category-games {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #141414;
}

.category-games::-webkit-scrollbar {
    height: 8px;
}

.category-games::-webkit-scrollbar-track {
    background: #141414;
}

.category-games::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.category-games::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.category-game {
    flex: 0 0 auto;
    width: 300px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-game:hover {
    transform: scale(1.05);
    z-index: 10;
}

.category-game-content {
    display: block;
}

.category-game-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #2a2a2a;
}

.category-game-info {
    padding: 0.75rem;
}

.category-game-title {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.category-game:hover .category-game-title {
    color: #e0e7ff;
}

.category-game-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-game-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.category-game-age {
    font-size: 0.75rem;
    color: #6b7280;
}

.category-game-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.category-game-skill {
    font-size: 0.6875rem;
    background: #2a2a2a;
    color: #9ca3af;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}


/* Footer */
.footer {
    background: #141414;
    border-top: 1px solid #2a2a2a;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #3a3a3a;
    color: white;
    padding: 1rem;
    z-index: 50;
    display: none;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cookie-content {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.cookie-text {
    font-size: 0.875rem;
}

.cookie-main {
    margin-bottom: 0.5rem;
}

.cookie-sub {
    color: #93c5fd;
    font-size: 0.75rem;
}

.cookie-link {
    color: white;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #dbeafe;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-accept {
    background: #818cf8;
    color: white;
}

.cookie-accept:hover {
    background: #6366f1;
}

.cookie-decline {
    background: #3a3a3a;
    color: white;
}

.cookie-decline:hover {
    background: #4a4a4a;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Page-specific styles */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #e0e7ff 100%);
    padding-top: 4rem;
}

.page-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
}

.page-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

.content-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mission-item {
    text-align: center;
}

.mission-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.mission-text {
    color: #6b7280;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.category-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: #6b7280;
    line-height: 1.6;
}

.safety-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .safety-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.safety-item {
    background: #f0f9ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.safety-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.safety-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.safety-description {
    color: #1e40af;
    font-size: 0.875rem;
}

.games-overview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tip-item {
    text-align: center;
    padding: 1.5rem;
}

.tip-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.tip-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Legal pages */
.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #e0e7ff 100%);
    padding-top: 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.legal-date {
    color: #6b7280;
    font-size: 1rem;
}

.legal-body {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.legal-subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-list li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.legal-cta {
    text-align: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.cta-section {
    text-align: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    display: inline-block;
    min-width: 150px;
}

.cta-btn-primary {
    background: #2563eb;
    color: white;
}

.cta-btn-primary:hover {
    background: #1d4ed8;
}

.cta-btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.cta-btn-secondary:hover {
    background: #2563eb;
    color: white;
}

/* Responsive Design */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: #1a1a1a;
        border-top: 1px solid #2a2a2a;
        padding: 1rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 1rem;
    }

    .legal-body {
        padding: 1.5rem;
    }

    .legal-title {
        font-size: 2rem;
    }

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