/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
   :root {
    /* Base Colors */
    --bg-base: #1f1f1f;
    --bg-section: #2a2a2a;
    --bg-card: #ffffff;
    
    /* Candy Accents */
    --candy-pink: #ff4da6;
    --candy-orange: #ff9f43;
    --candy-yellow: #ffd93d;
    --candy-green: #2ed573;
    
    /* Gradients */
    --candy-gradient: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-card-primary: #111111;
    --text-card-secondary: #666666;
    
    /* Layout & Styling */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-btn: 0 4px 14px rgba(255, 77, 166, 0.25);
    
    /* Spacing */
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
    --space-xxl: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT SYSTEM
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

section {
    padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
    section { padding: var(--space-xl) 0; }
}

@media (min-width: 1024px) {
    section { padding: var(--space-xxl) 0; }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--candy-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 166, 0.4);
    filter: brightness(1.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background-color: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--candy-gradient);
}

.main-nav {
    display: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--candy-pink);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 120px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 77, 166, 0.08) 0%, rgba(31, 31, 31, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-bg-shapes::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -150%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.05) 0%, rgba(31, 31, 31, 0) 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--candy-yellow);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: var(--candy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    display: inline-flex;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 500px;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--text-secondary);
    border-radius: 50%;
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.disclaimer strong {
    color: #ffffff;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 140px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ==========================================================================
   GAMES SECTION
   ========================================================================== */
.games-section {
    background-color: var(--bg-section);
}

.game-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background-color: var(--bg-base);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-badge {
    background-color: rgba(46, 213, 115, 0.15);
    color: var(--candy-green);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000000;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   LEGAL PAGES REDESIGN
   ========================================================================== */
.legal-header {
    padding-top: 160px;
    padding-bottom: 60px;
    background: radial-gradient(circle at center, rgba(255, 77, 166, 0.05) 0%, var(--bg-base) 70%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 60px;
}

.legal-header .page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--candy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.legal-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.legal-section {
    padding-bottom: var(--space-xxl);
    background-color: var(--bg-base);
}

.legal-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 768px) {
    .legal-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.legal-sidebar {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
}

@media (min-width: 768px) {
    .legal-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 100px;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 32px;
    }
}

.legal-sidebar h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-weight: 600;
}

.legal-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
    background-color: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.legal-nav a::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.legal-nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.legal-nav a:hover::before {
    background-color: var(--candy-pink);
    opacity: 1;
}

.legal-nav a.active {
    background: var(--candy-gradient);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-btn);
}

.legal-nav a.active::before {
    background-color: #ffffff;
    opacity: 1;
}

.legal-content {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    flex-grow: 1;
    width: 100%;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-section);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.last-updated::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0a0a0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--candy-gradient);
}

.legal-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 32px;
}

.legal-content li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--candy-gradient);
}

.legal-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-section);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-xl);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-brand .logo {
    display: inline-block;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer a {
    color: var(--text-secondary);
}

.site-footer a:hover {
    color: var(--candy-pink);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-section.fade-in { animation-delay: 0.1s; }
.games-section.fade-in { animation-delay: 0.2s; }