/* NotPlex site-wide shell — landing, dashboard, admin.
   Dark slate + gold, matching the TV app's identity. */

:root {
    --bg: #0F172A;
    --bg-deep: #0A0F1E;
    --card: #1E293B;
    --card-soft: rgba(30, 41, 59, 0.55);
    --gold: #E5A00D;
    --gold-soft: rgba(229, 160, 13, 0.14);
    --text: #F1F5F9;
    --text-dim: #94A3B8;
    --text-faint: #64748B;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--gold);
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 600;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--gold); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none !important;
}

.btn-gold {
    background: var(--gold);
    color: #000;
}
.btn-gold:hover {
    background: #f5b82e;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(229, 160, 13, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-small { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ── Layout primitives ─────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-sub {
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 36px;
}

.card {
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ── Tables (dashboard/admin) ───────────────────────── */
.site-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.site-table th {
    text-align: left;
    color: var(--text-faint);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.site-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}
.site-table tr:hover td { background: rgba(255, 255, 255, 0.02); color: var(--text); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot-green { background: #22C55E; }
.dot-red { background: #EF4444; }
.dot-gray { background: #64748B; }

/* ── Forms ──────────────────────────────────────────── */
.field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 12px 14px;
    font-size: 0.95rem;
}
.field:focus { outline: none; border-color: var(--gold); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.site-footer a { color: var(--text-dim); margin-left: 18px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 820px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .site-nav { gap: 14px; }
    .site-nav .nav-link-optional { display: none; }
}
