/* ============================================================
   {关键词} — Tema Layout Indonesia (SEO + Mobile-First)
   Gaya situs taruhan/slot lokal: merah, emas, hijau CTA
   ============================================================ */

:root {
    --id-red: #b91c1c;
    --id-red-dark: #7f1d1d;
    --id-red-light: #fecaca;
    --id-gold: #f59e0b;
    --id-gold-dark: #d97706;
    --id-green: #16a34a;
    --id-green-dark: #15803d;
    --id-bg-start: #fff7ed;
    --id-bg-mid: #ffedd5;
    --id-bg-end: #fed7aa;
    --id-card: #ffffff;
    --id-card-border: rgba(185, 28, 28, 0.14);
    --id-text: #1c1917;
    --id-text-muted: #57534e;
    --id-shadow: 0 14px 36px rgba(127, 29, 29, 0.1);
    --id-radius: 16px;
    --id-header-h: 68px;
}

/* ---- Base & Background ---- */
html { scroll-padding-top: calc(var(--id-header-h) + 12px); }

body.dark-theme,
body.homepage {
    background: linear-gradient(165deg, var(--id-bg-start) 0%, var(--id-bg-mid) 45%, var(--id-bg-end) 100%) !important;
    background-attachment: fixed !important;
    color: var(--id-text) !important;
    font-weight: 450;
}

.main-content,
main,
section {
    background: transparent !important;
}

section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    position: relative;
}

section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.42) !important;
}

section:nth-of-type(even)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(185, 28, 28, 0.08);
    border-bottom: 1px solid rgba(185, 28, 28, 0.08);
    pointer-events: none;
}

/* ---- Header (gaya bandar Indonesia) ---- */
.main-header {
    background: linear-gradient(90deg, var(--id-red-dark) 0%, var(--id-red) 55%, #dc2626 100%) !important;
    border-bottom: 3px solid var(--id-gold) !important;
    box-shadow: 0 4px 20px rgba(127, 29, 29, 0.35);
    backdrop-filter: none !important;
}

.main-header .brand-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.desktop-nav .nav-more-toggle,
.desktop-nav .nav-direct-link {
    color: #fff !important;
    font-weight: 600;
}

.desktop-nav .nav-more-toggle:hover,
.desktop-nav .nav-direct-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--id-gold-light, #fde68a) !important;
}

.header-actions .btn-outline {
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.75) !important;
    background: transparent !important;
}

.header-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.header-actions .btn-primary,
.btn-mobile-register {
    background: linear-gradient(135deg, var(--id-green) 0%, var(--id-green-dark) 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}

.mobile-menu-toggle span {
    background: #fff !important;
}

.mobile-nav {
    background: #fff !important;
    border-top: 3px solid var(--id-gold);
}

.mobile-nav .mobile-link {
    color: var(--id-text) !important;
    border-bottom: 1px solid rgba(185, 28, 28, 0.08);
    padding: 0.85rem 1.25rem !important;
}

.mobile-nav .mobile-link.cta {
    background: linear-gradient(135deg, var(--id-green), var(--id-green-dark)) !important;
    color: #fff !important;
    font-weight: 700;
    margin: 0.5rem 1rem;
    border-radius: 999px;
    text-align: center;
}

/* ---- Hero ---- */
.hero-section {
    padding: calc(var(--id-header-h) + 1.5rem) 0 2.5rem !important;
    background: transparent !important;
}

.hero-section::before { display: none !important; }

.hero-content {
    background: var(--id-card);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: var(--id-shadow);
    gap: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.hero-title {
    background: linear-gradient(135deg, var(--id-red-dark) 0%, var(--id-red) 55%, var(--id-gold-dark) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(1.55rem, 4.2vw, 2.35rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
}

.hero-subtitle {
    color: var(--id-text-muted) !important;
    font-size: clamp(0.95rem, 2.2vw, 1.12rem) !important;
    line-height: 1.65 !important;
}

.hero-subtitle a {
    color: var(--id-red) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-subtitle strong {
    color: var(--id-red-dark) !important;
}

.hero-image .main-image {
    border-radius: 18px;
    border: 3px solid var(--id-gold);
    box-shadow: 0 16px 40px rgba(127, 29, 29, 0.18);
}

/* ---- Section titles ---- */
.section-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-title {
    color: var(--id-red-dark) !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--id-red), var(--id-gold));
}

.section-subtitle {
    color: var(--id-text-muted) !important;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.content-title {
    color: var(--id-red) !important;
}

.content-description,
.content-text p {
    color: var(--id-text-muted) !important;
}

.content-description strong {
    color: var(--id-red-dark) !important;
}

/* ---- Buttons & CTA ---- */
.btn,
.btn-primary,
.btn-secondary,
.btn-hero,
.btn-hero-large,
.btn-vip,
.btn-accent {
    background: linear-gradient(135deg, var(--id-green) 0%, var(--id-green-dark) 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
    min-height: 48px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-hero:hover,
.btn-hero-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.45);
}

.btn-hero,
.btn-hero-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.85rem 1.75rem !important;
    width: 100%;
    max-width: 360px;
}

.btn-bonus {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.92;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--id-gold) !important;
    color: var(--id-red-dark) !important;
    box-shadow: none !important;
}

.hero-cta,
.final-cta-buttons,
.cta-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ---- Cards & grids (shared) ---- */
[class*="-card"],
[class*="-item"]:not(.faq-item):not(.benefit-item),
.category-item,
.game-type-card,
.popular-game-card,
.promo-card,
.method-card,
.channel-card,
.slot-card,
.vip-level-card,
.step-card,
.limit-card,
.faq-card,
.schedule-item,
.tip-item,
.slots-highlight-card,
.sports-highlight-card,
.live-feature,
.platform-feature,
.bonus-item,
.trust-item {
    background: var(--id-card) !important;
    border: 1px solid var(--id-card-border) !important;
    border-radius: var(--id-radius) !important;
    box-shadow: 0 6px 18px rgba(127, 29, 29, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[class*="-card"]:hover,
.game-type-card:hover,
.popular-game-card:hover,
.slot-card:hover,
.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.12);
    border-color: rgba(245, 158, 11, 0.45) !important;
}

/* ---- Tags & pills ---- */
.payment-tag,
.contact-tag,
.vip-badge,
.promo-tag,
.related-links a {
    background: #fff !important;
    border: 1px solid rgba(185, 28, 28, 0.22) !important;
    color: var(--id-red-dark) !important;
    font-weight: 700;
}

.related-links a:hover {
    background: var(--id-red-light) !important;
    color: var(--id-red-dark) !important;
}

/* ---- FAQ ---- */
.faq-item,
.faq-card {
    background: var(--id-card) !important;
    border: 1px solid var(--id-card-border) !important;
    border-radius: 12px !important;
}

.faq-question {
    color: var(--id-red-dark) !important;
}

.faq-answer p {
    color: var(--id-text-muted) !important;
}

/* ---- Section content layout ---- */
.section-content {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .section-content {
        grid-template-columns: 1fr 1fr;
    }

    .section-content.reverse {
        direction: rtl;
    }

    .section-content.reverse > * {
        direction: ltr;
    }
}

/* ---- Final CTA ---- */
.final-cta-section,
.cta-section-block {
    background: linear-gradient(135deg, var(--id-red-dark) 0%, var(--id-red) 100%) !important;
    border-top: 4px solid var(--id-gold);
    padding: 2.5rem 0 !important;
}

.final-cta-section .cta-title,
.final-cta-section .section-title {
    color: #fff !important;
}

.final-cta-section .cta-title::after,
.final-cta-section .section-title::after {
    background: var(--id-gold) !important;
}

.final-cta-section .cta-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ---- Footer ---- */
.main-footer {
    background: linear-gradient(180deg, #450a0a 0%, #1c1917 100%) !important;
    border-top: 4px solid var(--id-gold) !important;
    margin-top: 0 !important;
}

.footer-title {
    color: var(--id-gold) !important;
}

.footer-description,
.footer-links a,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.78) !important;
}

.footer-links a:hover {
    color: var(--id-gold) !important;
}

/* ---- Tables ---- */
.vip-table-wrap,
.table-responsive table {
    background: var(--id-card);
    border-radius: var(--id-radius);
    border: 1px solid var(--id-card-border);
}

.vip-table th {
    background: rgba(185, 28, 28, 0.08) !important;
    color: var(--id-red-dark) !important;
}

.step-index,
.vip-step-num {
    background: linear-gradient(135deg, var(--id-red), var(--id-gold)) !important;
}

/* ---- Login form (masuk) ---- */
.login-form-container {
    background: var(--id-card);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--id-radius);
    padding: 1.5rem;
    box-shadow: var(--id-shadow);
}

/* ---- Trust indicators ---- */
.trust-indicators,
.final-trust-indicators .trust-grid {
    gap: 0.75rem;
}

.trust-item,
.trust-grid .trust-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--id-card-border) !important;
    border-radius: 12px !important;
}

.trust-number {
    color: var(--id-red) !important;
    font-weight: 800;
}

.trust-label {
    color: var(--id-text-muted) !important;
}

/* ---- Payment strip: use existing .payment-tags in HTML ---- */


/* ---- Nav dropdown (Indonesia) ---- */
.nav-more-menu {
    border: 1px solid rgba(185, 28, 28, 0.12) !important;
    border-top: 3px solid var(--id-gold) !important;
}

.nav-more-menu .nav-link {
    color: var(--id-text) !important;
}

.nav-more-menu .nav-link:hover {
    background: rgba(185, 28, 28, 0.08) !important;
    color: var(--id-red) !important;
}

/* ---- Override link colors in content (not nav/header CTAs) ---- */
main a:not(.btn):not(.nav-link):not(.mobile-link):not(.help-link):not(.game-type-link):not(.popular-game-link) {
    color: var(--id-red) !important;
}

.game-type-link,
.popular-game-link {
    color: var(--id-green-dark) !important;
    font-weight: 700;
}

/* ---- Homepage extras ---- */
.homepage .game-type-title,
.homepage .popular-game-title {
    color: var(--id-red-dark) !important;
}

.homepage .game-type-text,
.homepage .popular-game-text {
    color: var(--id-text-muted) !important;
}

/* ---- Safety / alert box ---- */
.safety-box {
    border-color: rgba(185, 28, 28, 0.35) !important;
    background: #fff5f5 !important;
}

.safety-box h4 {
    color: var(--id-red) !important;
}

/* ---- Download buttons ---- */
.download-btn {
    background: var(--id-card) !important;
    border: 2px solid var(--id-card-border) !important;
    border-radius: 14px !important;
    padding: 0.75rem 1rem !important;
}

.download-label {
    color: var(--id-red-dark) !important;
    font-weight: 700;
}

.download-subtitle {
    color: var(--id-text-muted) !important;
}

.app-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-download-buttons .btn-hero {
    flex: 1 1 200px;
}

/* ---- Override style.min.css dark-theme typography ---- */
body.dark-theme main,
body.homepage main {
    color: var(--id-text);
}

body.dark-theme main p,
body.homepage main p,
body.dark-theme .feature-description,
body.homepage .feature-description,
body.dark-theme .provider-description,
body.homepage .provider-description,
body.dark-theme .stat-card .stat-description,
body.homepage .stat-card .stat-description,
body.dark-theme .review-content p,
body.homepage .review-content p,
body.dark-theme .benefit-description,
body.dark-theme .feature-desc,
body.dark-theme .help-text,
body.dark-theme .tier-benefits li,
body.dark-theme .provider-features li,
body.dark-theme .terms-list,
body.dark-theme .safety-list {
    color: var(--id-text-muted) !important;
}

body.dark-theme main h2,
body.homepage main h2,
body.dark-theme .content-text > h2.section-title {
    color: var(--id-red-dark) !important;
}

body.dark-theme main h3,
body.homepage main h3,
body.dark-theme .feature-title,
body.dark-theme .provider-name,
body.dark-theme .benefit-title {
    color: var(--id-red) !important;
}

body.dark-theme .stat-card .stat-number,
body.homepage .stat-card .stat-number,
body.dark-theme .stat-number {
    color: var(--id-red) !important;
}

body.dark-theme .stat-card .stat-label,
body.homepage .stat-card .stat-label {
    color: var(--id-red-dark) !important;
}

/* Cards still using dark gradient from style.min.css */
.vip-tier,
.requirements-platform,
.provider-card,
.stat-card,
.review-card {
    background: var(--id-card) !important;
    border: 1px solid var(--id-card-border) !important;
    border-radius: var(--id-radius) !important;
    box-shadow: 0 6px 18px rgba(127, 29, 29, 0.06);
}

.bonus-card {
    background: linear-gradient(135deg, var(--id-red-dark) 0%, var(--id-red) 100%) !important;
    border: 2px solid var(--id-gold) !important;
    color: #fff !important;
}

.bonus-card .bonus-title,
.bonus-card .bonus-amount,
.bonus-card .bonus-extras {
    color: #fff !important;
}

.final-cta-section h2,
.final-cta-section p,
.final-cta-section .cta-subtitle,
.final-cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* ---- Mobile-first hero (gambar di atas) ---- */
@media (max-width: 1023px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-text {
        order: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-cta .btn-hero,
    .hero-cta .btn-hero-large {
        margin-left: auto;
        margin-right: auto;
    }
}
