/* =========================================
   GLOBAL.CSS — conch.gg theme vars, navbar, shared utilities
   ========================================= */

:root {
    /* Page backgrounds */
    --bg-deep:       #05080f;
    --bg-surface:    #0d1117;
    --bg-glass:      rgba(10, 16, 30, 0.75);

    /* Borders */
    --border-glow:   rgba(0, 200, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Accent palette */
    --accent-cyan:   #00c8ff;
    --accent-purple: #7c3aed;
    --accent-green:  #00ff88;
    --accent-amber:  #f59e0b;
    --accent-red:    #ff3366;

    /* Text */
    --text-primary:  #e2e8f0;
    --text-muted:    #64748b;

    /* Nav height — used for page-top padding */
    --nav-h: 56px;
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
}


/* =========================================
   NAVBAR
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glow);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
    transition: text-shadow 0.2s;
}

.nav-brand:hover {
    text-shadow: 0 0 32px rgba(0, 200, 255, 0.9);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Active link — set by nav.js matching data-page on <body> */
.nav-links a.active {
    color: var(--accent-cyan);
    background: rgba(0, 200, 255, 0.08);
    box-shadow: inset 0 -2px 0 var(--accent-cyan);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(5, 8, 15, 0.97);
        border-bottom: 1px solid var(--border-glow);
        padding: 8px 0;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 12px 24px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links li:last-child a { border-bottom: none; }
}


/* =========================================
   SHARED UTILITIES
   ========================================= */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    background: var(--accent-cyan);
    color: #05080f;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.35);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.55);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}
