/* ============================================
   COMMON.CSS
   Palette: Indigo Violet | Dark Charcoal | White
   Font: Manrope + Playfair Display
   ============================================ */

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

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --secondary-color: #c084fc;
    --accent-color: #f472b6;
    --bg-dark: #090812;
    --bg-surface: #121022;
    --bg-card: rgba(17, 14, 32, 0.9);
    --bg-glass: rgba(11, 9, 24, 0.92);
    --text-main: #f8f7ff;
    --text-muted: #9b96b5;
    --text-light: #c1bdd7;
    --header-bg: rgba(9, 8, 18, 0.97);
    --border-color: rgba(139, 92, 246, 0.22);
    --border-subtle: rgba(255,255,255,0.07);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --radius: 8px;
    --radius-lg: 16px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(139, 92, 246, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(244, 114, 182, 0.07) 0%, transparent 55%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.15;
}

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

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }

.container {
    width: 92%;
    max-width: 1260px;
    margin: 0 auto;
}

/* ── Ambient ── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 5% 10%, rgba(16,185,129,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 95% 90%, rgba(52,211,153,0.04) 0%, transparent 60%);
}
.ambient-background .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary-color); top: -150px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary-color); bottom: 5%; right: -100px; }
.orb-3 { width: 250px; height: 250px; background: var(--accent-color); top: 45%; left: 45%; opacity: 0.08; }

/* ── Header ── */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 2005;
    height: 76px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 40px rgba(0,0,0,0.8);
    height: 64px;
}
.glass-nav {
    background: var(--header-bg) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color) !important;
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    gap: 2rem;
}
.logo img {
    height: 38px;
    filter: drop-shadow(0 0 6px var(--primary-glow));
    transition: var(--transition);
}
.logo img:hover { filter: drop-shadow(0 0 12px rgba(16,185,129,0.5)); }

.nav-list ul { display: flex; gap: 0.15rem; align-items: center; }
.nav-list a {
    font-family: 'Manrope', sans-serif;
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-list a:hover { color: var(--primary-color); background: rgba(16,185,129,0.08); }

.header-auth .btn-signup {
    background: var(--primary-color);
    color: #000;
    padding: 0.5rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 0 18px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.header-auth .btn-signup:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 28px rgba(16,185,129,0.5);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    border-radius: 6px;
    transition: var(--transition);
}
.mobile-menu-toggle:hover { background: rgba(16,185,129,0.08); }
.mobile-menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2004;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ── Section Titles ── */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    letter-spacing: -0.5px;
}
.section-title.text-white { color: #fff; }

/* ── Footer ── */
footer {
    background: #060606;
    padding: 5rem 5% 2.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative; z-index: 2;
}
.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 1rem;
    line-height: 1.8;
}
.footer-nav h4, .footer-contact h4 {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-nav a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative; z-index: 2;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-color); }

/* ── Mobile Bottom Bar ── */
.mobile-bottom-bar { display: none; }

/* ── Ad Container ── */
.ad-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(16,185,129,0.02);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .header-container { padding: 0 1.5rem; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh; height: 100dvh;
        background: #0d0d0d;
        padding: 5rem 1.5rem 2rem;
        z-index: 2008;
        border-left: 1px solid var(--border-color);
        box-shadow: -20px 0 60px rgba(0,0,0,0.9);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 0.4rem; }
    .nav-list a { font-size: 0.88rem; padding: 0.7rem 1rem; display: block; }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-signup { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-brand .footer-desc { margin: 0.75rem auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        background: #060606;
        border-top: 1px solid var(--border-color);
        padding: 10px 12px;
        z-index: 1005;
        gap: 10px;
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center;
        padding: 12px 0;
        font-family: 'Manrope', sans-serif;
        font-weight: 800;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 6px;
        transition: var(--transition);
    }
    .mobile-bottom-bar .btn-login { border: 1px solid var(--primary-color); color: var(--primary-color); }
    .mobile-bottom-bar .btn-login:hover { background: rgba(16,185,129,0.08); }
    .mobile-bottom-bar .btn-register { background: var(--primary-color); color: #000; font-weight: 800; box-shadow: 0 0 14px var(--primary-glow); }
    body { padding-bottom: 68px; }
}
