/* ============================================
   COMMON.CSS — Mobile-First Luxury Casino Theme
   Palette: Royal Gold | Warm Ivory | Deep Charcoal
   Fonts: Playfair Display + Cinzel + Plus Jakarta Sans
   Architecture: Mobile-Constrained Container (Shows Mobile on Laptop/Desktop)
   ============================================ */

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

:root {
    /* Royal Gold Color System */
    --gold-primary: #c59b27;
    --gold-dark: #9e7412;
    --gold-light: #dfb758;
    --gold-pale: #fbf6ea;
    --gold-cream: #f6eedb;
    --gold-border: #e8ddc7;
    --gold-border-light: #f0e8d8;
    --gold-glow: rgba(197, 155, 39, 0.25);
    
    /* Warm Ivory & Clean Backgrounds */
    --bg-page: #fcfbf7;
    --bg-surface: #f7f3e9;
    --bg-card: #ffffff;
    --bg-card-alt: #fdfcf9;
    --bg-dark: #0f1015;
    --bg-dark-surface: #181920;
    --bg-dark-card: #1f212a;
    
    /* Typography Colors */
    --text-heading: #1a1917;
    --text-body: #4a463f;
    --text-muted: #7c776e;
    --text-light: #fbf9f4;
    --text-gold: #b8860b;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4a341 0%, #f3d078 50%, #b8860b 100%);
    --gradient-gold-hover: linear-gradient(135deg, #dfb04e 0%, #fae099 50%, #c59424 100%);
    --gradient-gold-subtle: linear-gradient(180deg, rgba(212, 163, 65, 0.08) 0%, rgba(212, 163, 65, 0.01) 100%);
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-serif: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* UI Elevation & Shadows */
    --shadow-subtle: 0 2px 8px rgba(160, 120, 30, 0.05);
    --shadow-card: 0 4px 16px rgba(160, 120, 30, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-gold: 0 4px 14px rgba(197, 155, 39, 0.3);
    
    /* Layout & Dimensions */
    --mobile-width: 480px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --transition: all 0.25s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

/* On Desktop / Laptop: Show as clean mobile viewport centered in screen */
body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: #ede8dd;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(197, 155, 39, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 155, 39, 0.06) 0%, transparent 40%);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden !important;
}

/* Fixed Mobile App Shell */
.site-wrapper {
    width: 100%;
    max-width: var(--mobile-width);
    background-color: var(--bg-page);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding-bottom: 64px; /* Space for sticky bottom bar */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.25;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Container for mobile width */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* ============================================
   TOP NOTICE / UTILITY BAR (Inside Fixed Header)
   ============================================ */
.top-notice-bar {
    background: #f5eedb;
    border-bottom: 1px solid var(--gold-border);
    padding: 5px 14px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.top-notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tn-left {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tn-left i {
    color: var(--gold-dark);
}

.tn-highlight {
    color: var(--gold-dark);
    font-weight: 700;
}

.tn-badge {
    background: var(--gold-primary);
    color: #fff;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ============================================
   MAIN HEADER (FIXED NAVBAR AT TOP)
   ============================================ */
header#main-header, header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 2025;
    background: #ffffff;
    border-bottom: 1px solid var(--gold-border-light);
    box-shadow: 0 2px 10px rgba(180, 140, 50, 0.08);
    transition: box-shadow 0.25s ease;
}

header.scrolled {
    box-shadow: 0 4px 18px rgba(180, 140, 50, 0.16);
}

/* Page content offset for fixed header navbar */
main, .page-container {
    padding-top: 86px;
}

.header-container {
    width: 100%;
    height: 56px;
    padding: 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

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

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

/* Header Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-auth .btn-signup {
    background: var(--gradient-gold);
    color: #1a170d;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.header-auth .btn-signup:hover {
    background: var(--gradient-gold-hover);
}

/* Mobile Toggle - ALWAYS VISIBLE */
.mobile-menu-toggle {
    display: flex !important;
    background: #fbf7ee;
    border: 1px solid var(--gold-border);
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: var(--transition);
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-heading);
    transition: var(--transition);
    border-radius: 2px;
}

.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);
}

/* =========================================================
   OFF-CANVAS MOBILE NAV DRAWER
   STRICTLY HIDDEN BY DEFAULT (display: none !important)
   ONLY VISIBLE WHEN USER CLICKS TOGGLE BUTTON (.nav-list.active)
   ========================================================= */
.nav-list {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 275px;
    max-width: 78vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    padding: 1.25rem 1.2rem 2rem;
    z-index: 2040;
    border-left: 2px solid var(--gold-primary);
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.22);
    overflow-y: auto;
    pointer-events: auto !important;
}

/* On desktop / laptop: align drawer with the right side of the centered mobile shell */
@media (min-width: 481px) {
    .nav-list {
        right: calc(50% - var(--mobile-width) / 2);
    }
}

.nav-list.active {
    display: flex !important;
    flex-direction: column;
    pointer-events: auto !important;
    animation: drawerSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Nav Drawer Header */
.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gold-border);
}

.nav-drawer-title {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-drawer-title i {
    color: var(--gold-primary);
}

.nav-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: #fbf6ea;
    border: 1px solid #dcd3be;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-drawer-close:hover {
    background: var(--gold-primary);
    color: #ffffff;
}

/* Nav Drawer Auth Buttons */
.nav-drawer-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.nav-auth-login {
    background: #f7eed8;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
    padding: 8px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-border);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-auth-register {
    background: var(--gradient-gold);
    color: #1a170d;
    font-weight: 800;
    font-size: 0.78rem;
    text-align: center;
    padding: 8px 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    pointer-events: auto;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-list a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1917;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--gold-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
    pointer-events: auto;
}

.nav-list a i {
    color: var(--gold-dark);
    font-size: 0.85rem;
}

.nav-list a:hover {
    color: var(--gold-dark);
    background: #fbf8f0;
}

.nav-drawer-footer {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold-border-light);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-body);
}

.ndf-item {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text-heading);
}

.ndf-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--gold-dark);
    font-weight: 800;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 2010;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.25s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   SHARED TYPOGRAPHY & BUTTONS (Mobile Proportion)
   ============================================ */
.section-prefix {
    font-family: var(--font-body);
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.section-title--center, .section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.gold-gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-primary);
    display: inline;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-outline {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #18150c;
    box-shadow: var(--shadow-gold);
}

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

.btn-outline {
    background: #ffffff;
    color: var(--text-heading);
    border: 1.5px solid var(--gold-primary);
}

.btn-secondary {
    background: #181920;
    color: #ffffff;
}

.btn-ghost {
    background: #f6eedb;
    color: var(--gold-dark);
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
}

.btn--sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
}

.btn--lg {
    padding: 0.95rem 1.6rem;
    font-size: 0.9rem;
    width: 100%;
}

/* ============================================
   GOLD ANNOUNCEMENT BANNER BAR (Mobile Stacked)
   ============================================ */
.gold-announcement-bar {
    background: linear-gradient(135deg, #b8860b 0%, #d4a341 50%, #b8860b 100%);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.2);
    margin: 2.2rem 0;
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    color: #ffffff;
    text-align: center;
}

.gab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gab-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gab-icon {
    font-size: 2.2rem;
    color: #ffffff;
}

.gab-text h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.gab-text p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    line-height: 1.45;
}

.gab-btn {
    background: #ffffff;
    color: #1a170d;
    padding: 0.75rem 1.4rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

/* ============================================
   MAIN FOOTER (Mobile 1-Column Layout)
   ============================================ */
footer#main-footer, footer {
    background: #0a0b0e;
    color: #a2a6b5;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(197, 155, 39, 0.15);
    text-align: center;
}

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

.footer-brand .footer-logo img {
    height: 38px;
    width: auto;
    margin: 0 auto 1rem;
}

.footer-brand .footer-desc {
    color: #8f93a3;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-cert-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-cert-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 155, 39, 0.25);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    color: var(--gold-light);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    color: #8f93a3;
    font-size: 0.84rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    color: #8f93a3;
}

.footer-contact-item i {
    color: var(--gold-primary);
    font-size: 1rem;
}

.footer-payments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 0.75rem;
}

.footer-pay-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    color: #d0d3de;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: #727684;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8f93a3;
}

/* ============================================
   MOBILE BOTTOM BAR (ALWAYS VISIBLE & PINNED TO MOBILE FRAME)
   ============================================ */
.mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--mobile-width);
    background: #ffffff;
    border-top: 1px solid var(--gold-border);
    padding: 8px 12px;
    z-index: 2000;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-bottom-bar .btn-login {
    background: #fbf5e6;
    color: var(--gold-dark);
    border: 1px solid var(--gold-border);
}

.mobile-bottom-bar .btn-register {
    background: var(--gradient-gold);
    color: #1a170d;
    box-shadow: var(--shadow-gold);
}

/* Ad Container */
.ad-container {
    border: 1px solid var(--gold-border);
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.5rem 0;
}

.ad-container img {
    width: 100%;
    height: auto;
    min-height: 50px;
    display: block;
}
