:root {
    --bg: #0e1015;
    --panel: #141824;
    --panel-2: #181c29;
    --text: #e7e9ee;
    --muted: #aab0bd;
    --line: #272c3b;
    /* default accent (cyan) */
    --accent: #5bd4ff;
    --accent-600: #2aaed4;
    --accent-700: #1e8eb0;
    --danger: #ff6b6b;
    --warning: #f4b95a;
    --success: #4bd38a;
    --radius: 10px;
    --shadow-soft: 0 6px 20px rgba(0,0,0,.35);
    --shadow-glow: 0 0 0 rgba(0,0,0,0);
}

body[data-accent="violet"] {
    --accent: #9b8cff;
    --accent-600: #7b6cf2;
    --accent-700: #5c50c8;
}

body[data-accent="teal"] {
    --accent: #5de0c1;
    --accent-600: #3fc4a6;
    --accent-700: #2b9f87;
}

body[data-accent="amber"] {
    --accent: #f3c969;
    --accent-600: #e0ae3b;
    --accent-700: #ba8b2c;
}

body[data-accent="rose"] {
    --accent: #ff8bb0;
    --accent-600: #e66b93;
    --accent-700: #c05177;
}

/* ---------- Base ---------- */
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: radial-gradient(1200px 800px at 15% -10%, rgba(91,212,255,.06), transparent 60%), radial-gradient(900px 600px at 110% 10%, rgba(91,212,255,.04), transparent 60%), var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
}

    /* Subtle texture (optional) */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image: url("https://www.transparenttextures.com/patterns/dark-mosaic.png");
        opacity: .12;
    }

/* ---------- Links ---------- */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

    a:hover {
        color: var(--accent-600);
    }

    a:active {
        color: var(--accent-700);
    }

    a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* ---------- Header / Nav ---------- */
header {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08)), var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 18px 28px;
}

    header h1 {
        margin: 0;
        font-family: 'Orbitron', 'Inter', sans-serif;
        letter-spacing: .5px;
        font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
    }

nav {
    margin-top: 10px;
}

    nav a {
        color: #c8cfdd;
        font-weight: 600;
        margin-right: 16px;
        padding: 6px 10px;
        border-radius: 8px;
    }

        nav a:hover {
            color: var(--text);
            background: rgba(255,255,255,.04);
        }

/* ---------- Layout ---------- */
main {
    padding: 28px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- Cards / Panels ---------- */
.card,
.forum-card,
.post {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0)), var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card {
    padding: 18px;
}

.forum-card {
    padding: 18px 20px;
    margin-bottom: 18px;
}

.post {
    padding: 16px;
    margin-bottom: 16px;
}

/* Accent edge for key items (soft, not neon) */
.forum-card--accent,
.post--accent {
    position: relative;
    border-left: 3px solid var(--accent);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

    .forum-card--accent:hover,
    .post--accent:hover {
        box-shadow: 0 6px 22px rgba(0,0,0,.38), 0 0 24px rgba(91,212,255,.07);
    }

.forum-card h3, .card h3 {
    margin: 0 0 6px 0;
    color: var(--text);
    font-weight: 700;
}

.forum-card p {
    margin: 0;
    color: var(--muted);
}

/* ---------- Typography ---------- */
h2 {
    margin: 0 0 14px 0;
    font-size: clamp(1.2rem, 1rem + .8vw, 1.75rem);
}

.muted {
    color: var(--muted);
}

/* ---------- Forms ---------- */
input, textarea, select {
    background: #121522;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

    input:focus, textarea:focus, select:focus {
        outline: 2px solid rgba(91,212,255,.3);
        border-color: var(--accent-600);
    }

label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
}

/* ---------- Buttons ---------- */
button, .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    border: none;
    color: #0c1220;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .08s ease, filter .2s ease, box-shadow .2s ease;
}

    button:hover, .btn:hover {
        filter: brightness(1.05);
    }

    button:active, .btn:active {
        transform: translateY(1px) scale(0.98);
    }

    button:focus-visible, .btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }

    .btn.secondary {
        background: linear-gradient(180deg, #23283a, #1b2030);
        color: var(--text);
        border: 1px solid var(--line);
    }

    .btn.danger {
        background: linear-gradient(180deg, var(--danger), #e24d4d);
        color: #190b0b;
    }

/* ---------- Badges / Pills ---------- */
.badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #161a27;
    color: var(--muted);
}

.badge-accent {
    background: rgba(91,212,255,.12);
    color: var(--accent-600);
    border-color: rgba(91,212,255,.25);
}

.badge-warning {
    background: rgba(244,185,90,.12);
    color: var(--warning);
    border-color: rgba(244,185,90,.25);
}

.badge-danger {
    background: rgba(255,107,107,.12);
    color: var(--danger);
    border-color: rgba(255,107,107,.25);
}

.badge-success {
    background: rgba(75,211,138,.12);
    color: var(--success);
    border-color: rgba(75,211,138,.25);
}

/* ---------- Forum-specific helpers ---------- */
.topic-meta {
    color: var(--muted);
    font-size: .9rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .topic-list li + li {
        margin-top: 10px;
    }

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    object-fit: cover;
    background: #0d101a;
}

.post-content {
    white-space: pre-wrap;
}

.post-image img {
    display: block;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    margin-top: 8px;
}

/* ---------- Tables (for admin lists, etc.) ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .table th, .table td {
        padding: 12px 14px;
        text-align: left;
    }

    .table thead th {
        background: #151a27;
        color: #cfd5e3;
    }

    .table tbody tr {
        background: #121728;
        border-top: 1px solid var(--line);
    }

        .table tbody tr:hover {
            background: #161c2d;
        }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.06));
}

/* ---------- Small responsive tweaks ---------- */
@media (max-width: 720px) {
    main {
        padding: 20px;
    }

    nav a {
        margin-right: 10px;
    }
}
