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

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    color: #2d3748;
    background-color: #f7fafc;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a202c;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #2c5282;
        text-decoration: underline;
    }

    a:focus {
        outline: 2px solid #3182ce;
        outline-offset: 2px;
    }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Site Disabled State */
.site-disabled {
    pointer-events: none;
    opacity: 0.7;
}

    .site-disabled.age-verified {
        pointer-events: auto;
        opacity: 1;
    }

/* Banners */
.age-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e53e3e;
    color: white;
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d3748;
    color: white;
    padding: 1rem 0;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

    .cookie-content h3 {
        color: white;
        margin-bottom: 0.5rem;
    }

.cookie-controls {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.cookie-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #e2e8f0;
}

.cookie-toggle input[type="checkbox"] {
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #3182ce;
}

.nav-brand a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        font-weight: 500;
        color: #4a5568;
        padding: 0.5rem 0;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: #3182ce;
            border-bottom-color: #3182ce;
            text-decoration: none;
        }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

    .hero h1 {
        font-size: 3rem;
        color: white;
        margin-bottom: 1rem;
    }

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: #3182ce;
    color: white;
}

    .btn-primary:hover {
        background: #2c5282;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
        text-decoration: none;
        color: white;
    }

.btn-secondary {
    background: transparent;
    color: #4a5568;
    border: 2px solid #cbd5e0;
}

    .btn-secondary:hover {
        background: #f7fafc;
        border-color: #a0aec0;
        text-decoration: none;
        color: #2d3748;
    }

.btn-play {
    margin-bottom: 0.5rem;
}

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

    .games-section h2 {
        text-align: center;
        margin-bottom: 3rem;
        font-size: 2.5rem;
    }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

    .game-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .game-card h3 {
        color: #2d3748;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.game-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.disclaimer-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Compliance Section */
.compliance-section {
    background: #f7fafc;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

    .compliance-section h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.compliance-item {
    text-align: center;
    padding: 1rem;
}

    .compliance-item h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #e53e3e;
    }

    .compliance-item p {
        font-size: 0.875rem;
        color: #4a5568;
        margin-bottom: 0;
    }

/* Footer */
.footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 2rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #cbd5e0;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

.footer-section a {
    color: #90cdf4;
}

    .footer-section a:hover {
        color: #63b3ed;
    }

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Legal Pages */
.main-content {
    padding: 2rem 0 4rem 0;
    min-height: 60vh;
}

.last-updated {
    font-style: italic;
    color: #718096;
    margin-bottom: 2rem;
}

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

    .legal-section h2 {
        color: #2d3748;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .legal-section h3 {
        color: #4a5568;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .legal-section ul {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .legal-section li {
        margin-bottom: 0.5rem;
        color: #4a5568;
    }

address {
    font-style: normal;
    line-height: 1.6;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .contact-method h3 {
        color: #3182ce;
        margin-bottom: 0.5rem;
    }

/* Forms */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.5rem;
    }

.required {
    color: #e53e3e;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: #3182ce;
        box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    }

    .form-control.error {
        border-color: #e53e3e;
    }

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

    .checkbox-label input[type="checkbox"] {
        margin-top: 0.125rem;
        width: auto;
    }

.form-actions {
    margin-top: 2rem;
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .faq-item h3 {
        color: #3182ce;
        margin-bottom: 0.75rem;
        font-size: 1.125rem;
    }

    .faq-item p {
        margin-bottom: 0;
        color: #4a5568;
    }

/* Cookie Settings */
.cookie-settings-section {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    text-align: center;
}

    .cookie-settings-section h2 {
        margin-bottom: 1rem;
    }

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #2d3748;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    max-width: 400px;
    transition: all 0.3s ease;
}

    .toast.hidden {
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
    }

.toast-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

    .toast-content p {
        margin: 0;
        line-height: 1.4;
        flex: 1;
    }

.toast-close {
    background: none;
    border: none;
    color: #cbd5e0;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

    .toast-close:hover {
        color: white;
    }

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

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

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

    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .cookie-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

        .hero h1 {
            font-size: 1.75rem;
        }

    .games-section {
        padding: 2rem 0;
    }

    .compliance-section {
        padding: 2rem 0;
    }

    .game-card {
        padding: 1.5rem;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }

        .banner-buttons button {
            width: 100%;
        }
}
