/* ===== PURPLE NATION - SHARED STYLES ===== */

:root {
    --bg: #0A0A0A;
    --bg-card: #111111;
    --bg-elevated: #161616;
    
    --purple: #8B5CF6;
    --purple-dark: #7C3AED;
    --gold: #F5C518;
    
    --white: #FFFFFF;
    --gray-100: #F4F4F5;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    
    --font: 'Inter', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== BANNER ===== */
.banner {
    background: var(--purple);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.banner button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.banner.hidden { display: none; }

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 37px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: top 0.3s;
}

header.no-banner { top: 0; }

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: 44px; }

nav { display: flex; align-items: center; gap: 32px; }

nav a {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--white); }

.btn-nav {
    background: var(--gold);
    color: var(--bg);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
}

.btn-nav:hover { opacity: 0.9; }

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 1001;
    padding: 80px 24px 40px;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    display: block;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.mobile-menu a:hover { background: var(--bg-card); }

.mobile-menu .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav { display: none; }
    .menu-btn { display: block; }
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 140px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}

.page-header h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 20px;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-head h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
}

.btn-primary:hover { background: var(--purple-dark); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.btn-outline:hover { border-color: var(--gray-400); }

.btn-gold {
    background: var(--gold);
    color: var(--bg);
}

.btn-gold:hover { opacity: 0.9; }

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-4px); }

/* ===== FOOTER ===== */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img { height: 50px; }

.footer-links {
    display: flex;
    gap: 8px;
}

.footer-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s;
}

.footer-links a:hover {
    background: var(--purple);
    color: var(--white);
}

.footer-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-bottom {
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-500);
}

.footer-bottom a { color: var(--gold); }

@media (max-width: 600px) {
    .footer-inner, .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 0 20px;
    justify-content: space-around;
    z-index: 998;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav a.active { color: var(--gold); }

.bottom-nav svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
}

/* ===== ANIMATIONS ===== */
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple); }
.text-gray { color: var(--gray-400); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .grid-4 { grid-template-columns: 1fr; }
}
