@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* =====================================================
   DESIGN SYSTEM - MOBILE-ONLY (LOCKED MOBILE VIEW)
   Reference: Centered mobile app canvas, warm ivory tone,
   terracotta accents, rounded cards, clean typography
   ===================================================== */
:root {
    /* Primary Colors */
    --color-cream-bg: #FAF7F2;
    --color-cream-surface: #F5EFEB;
    --color-cream-subtle: #F0EAE1;
    --color-card-white: #FFFFFF;
    --color-laptop-backdrop: #EDE8DF;
    
    /* Dark Contrast Section */
    --color-dark-bg: #1C1917;
    --color-dark-surface: #26221F;
    --color-dark-card: #2F2A26;
    --color-dark-border: rgba(255, 255, 255, 0.12);
    
    /* Accents */
    --color-terracotta: #EA580C;
    --color-terracotta-hover: #C2410C;
    --color-terracotta-soft: #FFECE5;
    --color-terracotta-light: #FFF4F0;
    --color-pastel-peach: #FDE8E0;
    --color-pastel-blue: #EBF3FE;
    --color-pastel-sage: #EAF5ED;
    --color-amber-gold: #F59E0B;
    
    /* Text */
    --color-text-main: #1C1917;
    --color-text-secondary: #57534E;
    --color-text-muted: #78716C;
    --color-text-light: #FAFAF9;
    --color-text-light-muted: #A8A29E;
    
    /* Borders & Outlines */
    --border-light: rgba(28, 25, 23, 0.08);
    --border-light-hover: rgba(28, 25, 23, 0.16);
    --border-terracotta: rgba(234, 88, 12, 0.25);
    
    /* Shadows */
    --shadow-subtle: 0 2px 10px rgba(28, 25, 23, 0.04);
    --shadow-card: 0 8px 24px rgba(28, 25, 23, 0.06);
    --shadow-card-hover: 0 14px 30px rgba(28, 25, 23, 0.09);
    --shadow-dark-card: 0 16px 36px rgba(0, 0, 0, 0.35);
    
    /* Mobile App Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   DARK THEME PALETTE (Polished OLED / Obsidian Aesthetic)
   ===================================================== */
[data-theme="dark"] {
    --color-cream-bg: #0F0E0D;
    --color-cream-surface: #181615;
    --color-cream-subtle: #22201E;
    --color-card-white: #1A1816;
    --color-laptop-backdrop: #070605;

    --color-dark-bg: #141211;
    --color-dark-surface: #1E1C1A;
    --color-dark-card: #272421;
    --color-dark-border: rgba(255, 255, 255, 0.08);

    --color-terracotta: #FB923C;
    --color-terracotta-hover: #EA580C;
    --color-terracotta-soft: rgba(251, 146, 60, 0.16);
    --color-terracotta-light: rgba(251, 146, 60, 0.08);
    --color-pastel-peach: #281813;
    --color-pastel-blue: #122135;
    --color-pastel-sage: #10261A;
    --color-amber-gold: #FBBF24;

    --color-text-main: #F4F1EC;
    --color-text-secondary: #C4BEB4;
    --color-text-muted: #948D82;
    --color-text-light: #FAFAF9;
    --color-text-light-muted: #A8A29E;

    --border-light: rgba(255, 255, 255, 0.09);
    --border-light-hover: rgba(255, 255, 255, 0.2);
    --border-terracotta: rgba(251, 146, 60, 0.4);

    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-card-hover: 0 14px 30px rgba(0, 0, 0, 0.75);
}

/* Smooth theme transition for background & text */
body,
.mobile-app-wrapper,
.header,
.bottom-nav-bar,
.game-card,
.feature-card,
.event-card,
.step-card,
.faq-card,
.winner-card,
.testimonial-card,
.testimonial-spotlight-card,
.payment-card,
.hero-stats-strip,
.article-body,
.footer,
.nav-list {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* =====================================================
   RESET & MOBILE VIEWPORT LOCK
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: var(--color-laptop-backdrop);
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-laptop-backdrop);
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* Mobile App Wrapper - Locked to Mobile Width (Max 480px) on ALL Devices */
.mobile-app-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--color-cream-bg);
    position: relative;
    box-shadow: 0 0 50px rgba(28, 25, 23, 0.12);
    border-left: 1px solid rgba(28, 25, 23, 0.06);
    border-right: 1px solid rgba(28, 25, 23, 0.06);
    overflow-x: hidden;
    padding-bottom: 74px; /* Space for fixed bottom bar */
}

@media (max-width: 480px) {
    .mobile-app-wrapper {
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* =====================================================
   MOBILE CONTAINER & UTILITIES
   ===================================================== */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-terracotta-soft);
    color: var(--color-terracotta);
    border: 1px solid var(--border-terracotta);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-pill .badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    display: inline-block;
}

.badge-pill-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Compatibility classes */
.badge-lime, .badge-purple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-terracotta-soft);
    color: var(--color-terracotta);
    border: 1px solid var(--border-terracotta);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Section Header Styles - Mobile Optimized */
.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    color: var(--color-terracotta);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.025em;
    line-height: 1.22;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.highlight-orange {
    color: var(--color-terracotta);
    display: inline-block;
}

/* =====================================================
   MOBILE HEADER (Fixed inside Mobile Width)
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 62px;
    z-index: 1000;
    background: var(--color-cream-bg);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .header {
    background: #141211;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme Toggle Button - Modern Pill Design with Glow */
.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-theme-toggle:hover {
    transform: scale(1.08);
    color: var(--color-terracotta);
    border-color: var(--border-terracotta);
}

.btn-theme-toggle:active {
    transform: scale(0.92);
}

.btn-theme-toggle .theme-icon-light {
    display: none;
    line-height: 1;
}

.btn-theme-toggle .theme-icon-dark {
    display: inline-block;
    line-height: 1;
}

[data-theme="dark"] .btn-theme-toggle .theme-icon-light {
    display: inline-block;
}

[data-theme="dark"] .btn-theme-toggle .theme-icon-dark {
    display: none;
}

.btn-header-login {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-main);
    padding: 7px 12px;
    border-radius: var(--radius-pill);
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-terracotta);
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

.btn-signup:hover {
    background-color: var(--color-terracotta-hover);
}

.mobile-menu-toggle {
    display: flex;
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    color: var(--color-text-main);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 19px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
}

/* Mobile Dropdown Navigation */
.nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    width: 100%;
    background-color: var(--color-card-white);
    padding: 0 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 32px rgba(28, 25, 23, 0.12);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.nav-list.active {
    max-height: 70vh;
    padding: 16px;
}

.nav-list li {
    width: 100%;
}

.nav-list a {
    padding: 13px 8px;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
}

.nav-list a.active,
.nav-list a:hover {
    color: var(--color-terracotta);
}

/* =====================================================
   FIXED MOBILE BOTTOM ACTION BAR (Casino App Standard)
   ===================================================== */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 64px;
    background: var(--color-card-white);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(28, 25, 23, 0.08);
    padding: 0 6px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: var(--transition);
}

.bottom-nav-item svg,
.bottom-nav-item .b-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--color-terracotta);
}

.bottom-nav-item.btn-nav-daftar {
    background: var(--color-terracotta);
    color: #FFFFFF !important;
    border-radius: var(--radius-md);
    margin: 6px 4px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.bottom-nav-item.btn-nav-daftar:hover {
    background: var(--color-terracotta-hover);
}

/* =====================================================
   AD BANNER CONTAINERS (Mobile Sized)
   ===================================================== */
.ad-banner-container {
    margin: 14px auto;
    text-align: center;
}

.ad-banner-container:first-of-type {
    margin-top: 74px;
}

.ad-image {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
}

/* =====================================================
   FOOTER (Mobile Stacked)
   ===================================================== */
.footer {
    background-color: var(--color-cream-surface);
    border-top: 1px solid var(--border-light);
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    margin-top: 10px;
    line-height: 1.6;
}

.footer-trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
}

.footer-col a:hover {
    color: var(--color-terracotta);
}

.footer-cs-card {
    background: var(--color-card-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.footer-cs-card p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.btn-chat-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background-color: var(--color-terracotta);
    color: #FFFFFF !important;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 800;
}

/* 18+ Disclaimer Box */
.footer-disclaimer {
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.disclaimer-badge {
    align-self: flex-start;
    background: var(--color-pastel-peach);
    color: var(--color-terracotta);
    border: 1px solid var(--border-terracotta);
    font-weight: 900;
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

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

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

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer-legal-links a {
    color: var(--color-text-muted);
}

.footer-legal-links a:hover {
    color: var(--color-terracotta);
}
