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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #2c3e50;
    background-color: #f8fafc;
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

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

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

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

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

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

.site-disabled.enabled {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Banner Styles */
.banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.age-banner {
    top: 0;
    background: #1a365d;
    color: white;
    border-bottom-color: #2c5282;
}

.cookie-banner {
    bottom: 0;
    background: #f7fafc;
    color: #2d3748;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
}

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

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

.cookie-options {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
    color: white;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
    border-color: #cbd5e0;
    color: #4a5568;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 1rem 0;
    margin-top: 3rem; /* Account for age banner */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo a {
    color: inherit;
}

.logo a:hover {
    text-decoration: none;
}

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

.nav-list a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    text-decoration: none;
}

.nav-list a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f6ad55;
    transition: width 0.3s ease;
}

.nav-list a:hover:after,
.nav-list a[aria-current="page"]:after {
    width: 100%;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    margin-bottom: 3rem; /* Account for cookie banner */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

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

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
}

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

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.game-title {
    color: #1a365d;
    margin-bottom: 1rem;
}

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

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.game-disclaimer,
.hero-disclaimer {
    font-size: 0.8rem;
    color: #718096;
    font-style: italic;
    margin-top: 1rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #f7fafc;
    padding: 3rem 0;
    border-top: 2px solid #e2e8f0;
}

.disclaimer-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a202c;
}

.disclaimer-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.disclaimer-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.disclaimer-list li:before {
    content: '•';
    color: #3182ce;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.disclaimer-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #f6ad55;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #cbd5e0;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2c5282;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.legal-content h1 {
    margin-bottom: 0.5rem;
}

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

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

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-content {
    padding: 2rem 0;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #4a5568;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

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

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

.required {
    color: #e53e3e;
}

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

.form-input:focus {
    outline: none;
    border-color: #3182ce;
}

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

.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

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

.checkbox-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

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

.contact-note {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.contact-faq {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

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

/* Cookie Policy Specific */
.cookie-table {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.cookie-table h3 {
    color: #3182ce;
    margin-bottom: 0.5rem;
}

.cookie-table ul {
    margin-left: 1rem;
}

.cookie-table code {
    background: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 4rem;
    right: 1rem;
    z-index: 1001;
    max-width: 350px;
}

.toast {
    background: white;
    border: 2px solid #3182ce;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.toast-title {
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #2d3748;
}

.toast-message {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

/* Crawler Bypass */
.crawler-bypass .banner {
    display: none !important;
}

.crawler-bypass .site-disabled {
    pointer-events: auto !important;
    opacity: 1 !important;
}

.crawler-bypass .header {
    margin-top: 0 !important;
}

.crawler-bypass .main {
    margin-bottom: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
    }
    
    .cookie-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header {
        margin-top: 4rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toast-container {
        right: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .games-section {
        padding: 2rem 0;
    }
    
    .disclaimer-section {
        padding: 2rem 0;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-section {
        padding: 1.5rem;
    }
}