/* ============================================
   VEGAS PRIME — Common Styles
   Theme: Vibrant Purple & Cyan
   Font: Poppins + Space Grotesk
============================================ */

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

/* ── Variables ── */
:root {
    --primary:       #a855f7;
    --primary-light: #c084fc;
    --primary-dark:  #9333ea;
    --accent:        #06b6d4;
    --accent-light:  #22d3ee;
    --accent-dark:   #0891b2;
    --success:      #10b981;
    --warning:      #f59e0b;
    --danger:       #ef4444;
    --bg-white:      #0f172a;
    --bg-light:      #020617;
    --bg-card:       #1e293b;
    --bg-card2:      #334155;
    --border-light:  #334155;
    --border-primary: rgba(168,85,247,0.35);
    --text-dark:     #f1f5f9;
    --text-muted:    #94a3b8;
    --text-primary:  var(--primary);
    --header-bg:     rgba(15,23,42,0.95);
    --radius-sm:     12px;
    --radius-md:     20px;
    --radius-lg:     28px;
    --shadow-soft:   0 4px 20px rgba(15,23,42,0.4);
    --shadow-medium: 0 8px 30px rgba(15,23,42,0.5);
    --shadow-strong: 0 12px 40px rgba(15,23,42,0.6);
    --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
    
    /* For resources.css compatibility */
    --bg-black: #020617;
    --text-white: #f1f5f9;
    --gold: #d4af37;
    --gold-light: #f0c040;
    --border-gold: rgba(212,175,55,0.3);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.2);
    --shadow-dark: 0 4px 20px rgba(0,0,0,0.3);
}

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

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    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;
    box-sizing: border-box;
}

/* ── Accent Divider ── */
.accent-line {
    display: block;
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    margin: 0 auto 1.5rem;
}

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

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

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-primary);
    background: rgba(139,92,246,0.05);
    white-space: nowrap;
    transition: var(--transition);
}

.section-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
}

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

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

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

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

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

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

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

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

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

/* ── 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-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

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

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

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

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

.news-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

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

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    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: 2px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

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

.logo { flex: 0 0 auto; }

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

.logo img {
    height: 50px;
    width: auto;
    filter: none;
    transition: var(--transition);
}

.logo img:hover { transform: scale(1.05); }

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

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

.nav-list a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.6rem 1.2rem;
    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: rgba(139,92,246,0.08);
}

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

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-soft);
    display: inline-block;
    transition: var(--transition);
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(139,92,246,0.08);
    border: 2px solid var(--border-primary);
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover { background: rgba(139,92,246,0.15); }

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

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

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

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

/* ── FOOTER ── */
footer {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 3px solid var(--border-light);
    padding: 5rem 5% 2.5rem;
    margin-top: 5rem;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

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

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo img {
    height: 55px;
    width: auto;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139,92,246,0.08);
    color: var(--primary);
    transition: var(--transition);
    border: 2px solid var(--border-primary);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-medium);
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.footer-contact .contact-item {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact .contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 2px solid var(--border-light);
    padding-top: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { 
    color: var(--primary); 
    text-decoration: none;
}

/* ── 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: 12px;
        z-index: 2001;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
        background: var(--bg-white);
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-strong);
    }

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

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

    .mobile-bottom-cta-btn-bonus {
        color: white;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    }
}

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

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

    .header-container { height: 60px; padding: 0 3%; gap: 0.5rem; }

    .logo img { height: 32px; }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 1.5rem 0;
        border-top: 2px solid var(--border-light);
        border-bottom: 2px solid var(--border-light);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: var(--shadow-medium);
    }

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

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

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

    .header-auth .btn-signup {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

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

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

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

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

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

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .footer-links { 
        gap: 1.5rem; 
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header-container { padding: 0 3%; gap: 0.5rem; }

    .logo img { height: 40px; }

    .nav-list a {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

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

@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

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