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

:root {
    --primary: #D97706;
    --secondary: #B45309;
    --accent: #FCD34D;
    --background: #FEFCE8;
    --text: #1F2937;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.1);
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
    
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--background) 0%, #FEF3C7 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header and Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent);
    color: var(--secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

/* Games Grid */
.games-section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* Game Card */
.game-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.game-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-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: 1;
    transition: var(--transition);
}


.play-button {
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
}

.play-button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.play-icon {
    width: 20px;
    height: 20px;
}

.game-card-content {
    padding: var(--spacing-md);
}

.game-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary);
}

.game-card-description {
    color: #6B7280;
    margin-bottom: 0;
}

/* Game Detail Page */
.game-detail {
    padding: var(--spacing-lg) 0;
}

.game-iframe-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto var(--spacing-xl);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
}

.game-iframe {
    width: 100%;
    height: 70vh;
    min-height: 600px;
    border: none;
    display: block;
}

/* Disclaimer */
.disclaimer {
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-xl) 0;
}

.disclaimer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.disclaimer-content {
    padding: var(--spacing-lg);
}

.disclaimer-title {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.disclaimer-text p {
    margin-bottom: var(--spacing-sm);
}

.disclaimer-text strong {
    color: var(--primary);
}

/* Content Sections */
.content-section {
    padding: var(--spacing-2xl) 0;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    margin-top: var(--spacing-2xl);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
    text-align: center;
    opacity: 0.8;
}

/* Age Verification Banner */
.age-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    padding: var(--spacing-md);
    text-align: center;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.age-banner.active {
    transform: translateY(0);
}

.age-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.age-banner-text {
    flex: 1;
    min-width: 200px;
}

.age-banner h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.age-banner p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.age-banner-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.age-banner-button {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 100px;
}

.age-banner-button.confirm {
    background: var(--white);
    color: #DC2626;
}

.age-banner-button.confirm:hover {
    background: #F3F4F6;
    transform: translateY(-1px);
}

.age-banner-button.decline {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.age-banner-button.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--spacing-md);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 15px rgba(217, 119, 6, 0.3);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.cookie-banner-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-banner-button {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 100px;
}

.cookie-banner-button.accept {
    background: var(--white);
    color: var(--primary);
}

.cookie-banner-button.accept:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-1px);
}

.cookie-banner-button.decline {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner-button.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Banner Styles */
@media (max-width: 768px) {
    .age-banner-content,
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .age-banner-text,
    .cookie-banner-text {
        margin-bottom: var(--spacing-sm);
    }
    
    .age-banner-buttons,
    .cookie-banner-buttons {
        justify-content: center;
    }
    
    .age-banner,
    .cookie-banner {
        padding: var(--spacing-sm);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: 0 4px 15px var(--shadow);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .game-iframe {
        height: 50vh;
        min-height: 400px;
    }
    
    .modal {
        margin: var(--spacing-md);
        padding: var(--spacing-lg);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .modal-overlay {
        display: none;
    }
    
    .main-content {
        margin: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.5);
    }
    
    .game-card {
        border: 2px solid var(--text);
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading animation for images */
.game-card-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
