/* ============================================
   ROYAL CASINO — Common Styles
   Theme: Dark Luxury Gold
   Font: Playfair Display + Inter
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
    --gold:          #c9a84c;
    --gold-light:    #f0d080;
    --gold-dark:     #8a6a1f;
    --neon-red:      #e63946;
    --neon-green:    #2ec4b6;
    --bg-black:      #0a0a0f;
    --bg-dark:       #111118;
    --bg-card:       #16161f;
    --bg-card2:      #1c1c28;
    --border-gold:   rgba(201,168,76,0.35);
    --text-white:    #f5f0e8;
    --text-muted:    #8a8a9a;
    --text-gold:     var(--gold);
    --header-bg:     rgba(10,10,15,0.96);
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     22px;
    --shadow-gold:   0 4px 24px rgba(201,168,76,0.18);
    --shadow-dark:   0 8px 40px rgba(0,0,0,0.6);
    --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    padding-top: var(--header-height, 80px);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Gold Divider ── */
.gold-line {
    display: block;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 99px;
    margin: 0 auto 1rem;
}

/* ── Section Header ── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-header .section-title { margin-bottom: 0; }

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.55rem 1.2rem;
    border-radius: 99px;
    border: 1px solid var(--border-gold);
    background: rgba(201,168,76,0.06);
    white-space: nowrap;
}

.section-action:hover {
    background: rgba(201,168,76,0.14);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ── Section Title ── */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3rem;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 99px;
}

/* ── Ad Container ── */
.ad-container {
    width: 90%;
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold);
    border: 1px solid var(--border-gold);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ad-container img {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .ad-container {
        max-width: 1100px;
        padding: 0.85rem 2rem;
        margin: 3rem auto;
    }

    .ad-container img {
        height: 72px;
    }
}

@media (min-width: 1024px) {
    .ad-container {
        max-width: 1200px;
        padding: 1.1rem 3rem;
    }

    .ad-container img {
        height: 96px;
    }
}

@media (min-width: 1280px) {
    .ad-container {
        max-width: 1280px;
        padding: 1.25rem 3.5rem;
    }

    .ad-container img {
        height: 110px;
    }
}

/* ── News Card (shared) ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

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

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

.news-card img {
    width: 100%; height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover img { transform: scale(1.06); }

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

.news-date {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold);
    margin-bottom: 0.6rem;
    display: inline-block;
}

.news-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.6rem;
    line-height: 1.45;
}

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

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

/* ── HEADER ── */
body > header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gold);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo { flex: 0 0 auto; }

.logo a {
    display: flex;
    align-items: center;
    max-width: 180px;
}

.logo img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
    transition: var(--transition);
}

.logo img:hover { filter: drop-shadow(0 0 14px rgba(201,168,76,0.7)); }

/* Nav */
.nav-list {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-list ul {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}

.nav-list a:hover {
    color: var(--gold);
    background: rgba(201,168,76,0.08);
}

/* Auth */
.header-auth { flex: 0 0 auto; }

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #0a0a0f;
    padding: 0.6rem 1.6rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 18px rgba(201,168,76,0.35);
    display: inline-block;
    transition: var(--transition);
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201,168,76,0.55);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(201,168,76,0.12);
    border: 1px solid var(--border-gold);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover { background: rgba(201,168,76,0.22); }

.mobile-menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── FOOTER ── */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-gold);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 1.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding-left: 0;
}

.footer-nav a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(201,168,76,0.15);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--gold);
    font-weight: 600;
    margin-left: 1rem;
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }

/* ── Mobile Bottom CTA ── */
.mobile-bottom-cta { display: none; }

@media (max-width: 768px) {
    .has-mobile-bottom-cta { padding-bottom: 80px; }

    .mobile-bottom-cta {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: min(96%, 520px);
        bottom: 8px;
        z-index: 2001;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
        background: var(--bg-dark);
        border: 1px solid var(--border-gold);
        border-radius: var(--radius-sm);
        box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    }

    .mobile-bottom-cta-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.9rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-radius: var(--radius-sm);
    }

    .mobile-bottom-cta-btn-login {
        color: var(--gold);
        background: transparent;
        border: 1px solid var(--border-gold);
    }

    .mobile-bottom-cta-btn-bonus {
        color: #0a0a0f;
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
    }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }

    .header-container { height: 70px; padding: 0 4%; }

    .logo img { height: 38px; }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 1rem 0;
        border-top: 1px solid var(--border-gold);
        border-bottom: 1px solid var(--border-gold);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-list.active { display: block; }

    .nav-list ul {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0 1rem;
    }

    .nav-list a {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .section-action {
        width: min(320px, 92%);
        justify-content: center;
    }

    .news-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    footer { padding: 3rem 5% 1.5rem; margin-top: 3rem; }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-links a { margin-left: 0; margin-right: 1rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
}
