/* ========================================
   Fortune Dragon - Premium Gaming CSS
   Mobile-First, Glassmorphism, Glow Effects
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0B0E14;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFE566;
    --ruby: #DC143C;
    --ruby-dark: #8B0000;
    --teal: #00D4AA;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --border: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(255, 215, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.3);
    --shadow-glow-ruby: 0 0 30px rgba(220, 20, 60, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --blur: blur(12px);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Hidden APK by default */
.apk-section { display: none; }
body.is-android .apk-section { display: block; }

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.slot-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.logo-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dropdown */
.country-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    backdrop-filter: var(--blur);
    transition: var(--transition);
}

.dropdown-toggle:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.dropdown-arrow {
    transition: transform var(--transition);
}

.country-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.country-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-glass);
}

/* ========================================
   Main
   ======================================== */
.main {
    padding-top: 80px;
    padding-bottom: 100px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    padding: 60px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -1;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-dark) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-glow-ruby);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(220, 20, 60, 0.6);
}

/* ========================================
   Game Section
   ======================================== */
.game-section {
    padding: 40px 20px;
    background: var(--bg-secondary);
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
}

.game-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-phone {
    position: relative;
    width: 360px;
    max-width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 24px;
    aspect-ratio: 9/16;
    max-height: 900px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
    min-height: 700px;
}


.placeholder-icon {
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.game-placeholder p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.play-button {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    z-index: 10;
}

.play-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

.play-button svg {
    margin-left: 4px;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-dark) 100%);
    border: none;
    color: white;
    box-shadow: var(--shadow-glow-ruby);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.5);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

/* ========================================
   Sections
   ======================================== */
.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Trust Signal */
.trust-signal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 14px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    overflow: hidden;
    word-break: break-word;
}

/* ========================================
   Casinos Section
   ======================================== */
.casinos-section {
    padding: 60px 0;
}

.casino-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.casino-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}

.casino-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}


.casino-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 8px;
}

.casino-logo {
    width: 64px;
    height: 64px;
    background: var(--bg-glass);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-meta {
    flex: 1;
}

.casino-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.casino-bonus {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(184, 134, 11, 0.05) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.bonus-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bonus-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    word-break: break-word;
}

.bonus-valid {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dynamic-date {
    color: var(--gold);
}

.casino-payments {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.payment-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.payment-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.payment-icon {
    background: var(--bg-glass);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-bonus {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: #000;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-bonus:hover {
    box-shadow: var(--shadow-glow);
}

/* ========================================
   APK Section
   ======================================== */
.apk-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.apk-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.apk-icon {
    width: 96px;
    height: 96px;
    background: var(--bg-glass);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apk-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.apk-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.apk-version, .apk-size, .apk-safe {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-apk {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: #000;
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-glow);
}

.btn-apk:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

/* ========================================
   How To Play
   ======================================== */
.howto-section {
    padding: 60px 0;
}

.howto-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.multipliers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.multiplier-item {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.multiplier-item:hover {
    border-color: var(--gold);
}

.multiplier-item.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(184, 134, 11, 0.05) 100%);
    border-color: var(--gold);
}

.multiplier-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-heading);
}

.multiplier-item.highlight .multiplier-value {
    font-size: 2.5rem;
}

.multiplier-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategies-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin: 32px 0 20px;
}

.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strategies-list li {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: var(--transition);
}

.strategies-list li:hover {
    border-color: var(--teal);
}

.strategies-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.strategies-list li div {
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.strategies-list li strong {
    color: var(--text-primary);
}

/* ========================================
   Schedule
   ======================================== */
.schedule-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.schedule-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.schedule-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
}

.schedule-card:hover {
    border-color: var(--gold);
}

.schedule-card.featured {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(155, 89, 182, 0.05) 100%);
    border-color: rgba(155, 89, 182, 0.3);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.schedule-icon {
    flex-shrink: 0;
}

.schedule-period {
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.schedule-time {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.schedule-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-badge.high {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.schedule-badge.medium {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.schedule-badge.best {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0.1) 100%);
    color: #9B59B6;
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
    padding: 60px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.footer-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ========================================
   Sticky CTA
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 30%);
    z-index: 999;
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-dark) 100%);
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-glow-ruby);
    animation: stickyPulse 2s ease-in-out infinite;
}

@keyframes stickyPulse {
    0%, 100% { box-shadow: var(--shadow-glow-ruby); }
    50% { box-shadow: 0 0 50px rgba(220, 20, 60, 0.7); }
}

/* ========================================
   Desktop Styles
   ======================================== */
@media (min-width: 768px) {
    .header {
        padding: 20px 32px;
    }
    
    .main {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero {
        padding: 80px 32px 100px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-badges {
        gap: 16px;
    }
    
    .badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .game-section {
        padding: 60px 32px;
    }
    
    .game-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .game-buttons .btn {
        flex: 1;
        max-width: 200px;
    }
    
    .section-container {
        padding: 0 32px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .casinos-section,
    .apk-section,
    .howto-section,
    .schedule-section,
    .faq-section {
        padding: 80px 0;
    }
    
    .casino-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .casino-card {
        flex: 1;
        min-width: 300px;
    }
    
    .multipliers {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .multiplier-item.highlight {
        grid-column: span 1;
    }
    
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .schedule-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .schedule-header {
        justify-content: center;
        min-width: auto;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .schedule-card.featured {
        grid-column: span 1;
    }
    
    .sticky-cta {
        display: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}