/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Modern Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #151b3b;
    --bg-card: #1a2144;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --border: rgba(99, 102, 241, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-system);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--bg-secondary);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper img {
    width: 40px;
    height: 40px;
}

.logo-wrapper svg {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.logo-wrapper:hover svg {
    transform: rotate(360deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: var(--bg-card);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

/* Cards */
.card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    border-color: var(--accent);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

.game-card h3 {
    margin-bottom: 0.75rem;
}

.game-card p {
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.game-card .btn {
    margin-top: auto;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Game Page Iframe */
.game-container {
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.game-container iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

/* Info Sections */
.info-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.info-section h2 {
    margin-bottom: 1rem;
}

.info-section ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Reviews */
.reviews-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.reviews-filter select {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    min-width: 250px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.review-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-rating {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.review-game {
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-content h1 {
    margin-bottom: 1rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 50px rgba(99, 102, 241, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.age-modal p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.age-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-modal-buttons .btn {
    flex: 1;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
    }
    
    nav.active {
        display: block !important;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container iframe {
        height: 500px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .age-modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .age-modal-buttons {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utilities */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

