/* ============================================
   COMMON.CSS — Elegant Casino Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --gold-primary: #d4af37;
    --gold-light: #f4e4bc;
    --gold-dark: #997a2a;
    --burgundy: #722f37;
    --burgundy-dark: #4a1f24;
    --burgundy-light: #8c3a44;
    --cream: #faf8f3;
    --cream-dark: #f0ebe0;
    --text-dark: #1a1410;
    --text-muted: #5c544d;
    --text-light: #8a8279;
    --white: #ffffff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-gold: 0 6px 30px rgba(212,175,55,0.25);
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.625rem;
    --font-3xl: 2.25rem;
    --font-4xl: 3rem;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: var(--font-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration:none; color:inherit; transition: var(--transition); }
ul { list-style:none; }
img { max-width:100%; height:auto; display:block; }

.container {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark)); 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250,248,243,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    max-width: 1320px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo img {
    height: 44px;
}

.nav-list ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.35s;
}

.nav-list a:hover { 
    color: var(--burgundy); 
}
.nav-list a:hover::after { width: 100%; }

.header-auth .btn-signup {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-soft);
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 300px;
        height: 100vh;
        background: var(--cream);
        padding: 6rem 2.5rem 2rem;
        z-index: 999;
        border-left: 1px solid rgba(212,175,55,0.2);
        box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    }
    .nav-list.active { display: block; }
    .nav-list ul { flex-direction: column; gap: 2.2rem; align-items: flex-start; }
    .mobile-menu-toggle { display: flex; z-index: 1001; }
}

footer {
    background: linear-gradient(180deg, var(--burgundy-dark), #38191e);
    padding: 5rem 5% 2.5rem;
    margin-top: 5rem;
    color: var(--cream);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-brand .footer-logo { 
    height: 40px; 
    margin-bottom: 1.5rem; 
    filter: brightness(0) invert(1);
}
.footer-desc { 
    color: rgba(250,248,243,0.7); 
    font-size: 0.95rem; 
    line-height: 1.8; 
    max-width: 360px; 
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav a { 
    color: rgba(250,248,243,0.75); 
    font-size: 0.95rem; 
}
.footer-nav a:hover { 
    color: var(--gold-primary); 
}

.footer-contact .contact-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.9rem; 
}
.footer-contact .contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(250,248,243,0.75);
    font-size: 0.95rem;
}
.footer-contact .contact-list i {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(212,175,55,0.2);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(250,248,243,0.6);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--gold-primary);
    margin-left: 1.5rem;
    font-size: 0.85rem;
}
.footer-links a:hover { color: var(--gold-light); }

.ad-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(212,175,55,0.3);
    box-shadow: var(--shadow-soft);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title .accent {
    color: var(--burgundy);
}

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: var(--white);
    padding: 12px 18px;
    z-index: 1005;
    gap: 12px;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(212,175,55,0.2);
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 13px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--white);
    border: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 80px; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-desc { margin: 0 auto; }
    .footer-nav ul, .footer-contact .contact-list { align-items: center; }
    .footer-contact .contact-list li { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer-links a { margin-left: 0; }
}
