/* ============================================
   INDONESIA CASINO ONLINE — Common Styles
   Theme: Oceanic Blue Mobile-Responsive Portal
   App Viewport: Mobile Form Factor (Phones & Centered on Laptop)
   Typography: Plus Jakarta Sans + Space Grotesk
============================================ */

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

/* ── Design Tokens & Variables ── */
:root {
    --primary:          #0084d6;
    --primary-hover:    #006eb5;
    --primary-light:    #e0f2fe;
    --primary-glow:     rgba(0, 132, 214, 0.25);
    --primary-gradient: linear-gradient(135deg, #026ca8 0%, #0084d6 50%, #00a2ff 100%);
    --hero-gradient:    linear-gradient(135deg, #014f7c 0%, #007bc7 50%, #005585 100%);

    --accent-amber:     #f59e0b;
    --accent-coral:     #ef4444;
    --accent-emerald:   #10b981;
    --accent-cyan:      #06b6d4;

    --bg-body:          #f8fafc;
    --bg-white:         #ffffff;
    --bg-surface:       #f1f5f9;
    --bg-surface-alt:   #e2e8f0;
    --bg-dark:          #08121e;
    --bg-dark-card:     #132238;

    --text-main:        #0f172a;
    --text-muted:       #64748b;
    --text-light:       #94a3b8;
    --text-white:       #ffffff;
    --text-gold:        #fbbf24;

    --border-color:     #e2e8f0;
    --border-light:     #f1f5f9;
    --border-dark:      rgba(255, 255, 255, 0.1);
    --border-primary:   rgba(0, 132, 214, 0.3);

    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        16px;
    --radius-xl:        20px;
    --radius-full:      9999px;

    --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md:        0 4px 14px rgba(0, 132, 214, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg:        0 10px 25px -4px rgba(0, 132, 214, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-hover:     0 8px 24px rgba(0, 132, 214, 0.2);

    --font-main:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display:     'Plus Jakarta Sans', sans-serif;
    --font-mono:        'Space Grotesk', monospace;

    --transition:       all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height:    60px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #07101b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: var(--header-height, 60px);
    padding-bottom: 74px;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

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

ul {
    list-style: none;
}

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

/* ── Container (Strict Mobile Width) ── */
.container {
    width: 100%;
    max-width: 480px;
    padding: 0 14px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.section-title span {
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 95%;
    margin: 0.75rem auto 0;
    line-height: 1.55;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0, 132, 214, 0.35);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-ghost:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #ffffff;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-white:hover {
    background: #f0f7ff;
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-white:active {
    transform: scale(0.98);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ── HEADER (Fixed Top Within 480px Frame) ── */
body > header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    height: 60px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* Navigation Drawer (Slide-Down Menu) */
.nav-list {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 0 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.32s ease;
    z-index: 1001;
}

.nav-list.active {
    max-height: calc(100vh - 60px);
    opacity: 1;
    pointer-events: auto;
    padding: 1rem;
    overflow-y: auto;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.nav-list a {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Header Auth (Compact Mobile CTAs) */
.header-auth {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-auth .btn-login-link {
    color: #334155;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.42rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    transition: var(--transition);
}

.header-auth .btn-login-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-auth .btn-signup {
    background: var(--primary);
    color: #ffffff;
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0, 132, 214, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-auth .btn-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Mobile Toggle - ALWAYS VISIBLE ON MOBILE & LAPTOP */
.mobile-menu-toggle {
    display: flex;
    order: 3;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.28s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Ad Banner Container ── */
.ad-container {
    width: 100%;
    max-width: 480px;
    margin: 1rem auto;
    padding: 0.4rem 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-container a {
    display: block;
    width: 100%;
    text-align: center;
}

.ad-container img {
    height: auto;
    max-height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ── News / Guides Grid (Single Column Mobile Card Stack) ── */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.news-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    background: #e2e8f0;
}

.news-content {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.4rem;
}

.news-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    flex-grow: 1;
}

/* ── FOOTER (Mobile Vertical Stack) ── */
footer {
    background: #09131f;
    color: #e2e8f0;
    padding: 2.25rem 0 1.5rem;
    margin-top: 2rem;
    border-top: 3px solid var(--primary);
}

.footer-container {
    width: 100%;
    max-width: 480px;
    padding: 0 14px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 1.75rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-full);
    color: #cbd5e1;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-display);
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-nav h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    display: block;
    padding: 0.15rem 0;
}

.footer-nav a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.footer-contact strong {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.78rem;
}

.footer-links a {
    color: #94a3b8;
    font-weight: 600;
}

/* ── Mobile Bottom Sticky CTA Bar (ALWAYS VISIBLE ON BOTH MOBILE & LAPTOP) ── */
.mobile-bottom-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 464px;
    bottom: 8px;
    z-index: 2001;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(11, 23, 39, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mobile-bottom-cta-btn {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.mobile-bottom-cta-btn-login {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-bottom-cta-btn-login:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mobile-bottom-cta-btn-bonus {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 3px 12px rgba(0, 132, 214, 0.4);
}

.mobile-bottom-cta-btn-bonus:hover {
    background: var(--primary-hover);
}
