/* ============================================================================
 * Overheid Website - Main Stylesheet
 * ========================================================================= */

/* ---------- Tokens --------------------------------------------------------- */
:root {
    --primary: #01a3e3;
    --accent: #00d4ff;
    --accent-pink: #ff006e;
    --accent-green: #00ff41;
    --white: #ffffff;
    --bg: #0a0e27;
    --bg-2: #1a1a2e;
    --border: #16213e;
    --border-on: #0f3460;
    --silver: #b0b0b0;
    --silver-dim: #999999;
    --silver-mute: #666666;
    --glow: #00d4ff;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--silver);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--white); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--primary); color: var(--bg); }

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
}

/* ---------- Layout primitives -------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main { position: relative; z-index: 1; }

/* ---------- Header -------------------------------------------------------- */
.site-header {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; gap: 30px; align-items: center; }

.nav-link {
    color: var(--silver);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav-link:hover { color: var(--white); }

.nav-link.is-active {
    color: var(--accent);
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease);
    display: inline-block;
    text-align: center;
}

.btn-lg { padding: 17px 30px; font-size: 14px; }
.btn-small { padding: 8px 16px; font-size: 12px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--bg);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--silver);
    border: 1px solid var(--silver);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--white);
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    border: none;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #7289da, #5865f2);
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-title .accent {
    color: var(--accent);
    font-style: italic;
}

.hero-sub {
    font-size: 18px;
    color: var(--silver);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---------- Section base ------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title em {
    color: var(--accent);
    font-style: italic;
}

.section-lead {
    font-size: 16px;
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Feature cards ------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s var(--ease);
    position: relative;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(1, 163, 227, 0.1);
    transform: translateY(-5px);
}

.feature-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-box svg { width: 28px; height: 28px; color: var(--accent); }

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--silver-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Dashboard ---------------------------------------------------- */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: calc(100vh - 200px);
}

.sidebar {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-link {
    display: block;
    padding: 10px 12px;
    color: var(--silver);
    border-radius: 4px;
    transition: all 0.2s var(--ease);
    font-size: 13px;
}

.sidebar-link:hover, .sidebar-link.is-active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
}

.dashboard-content {
    padding: 20px;
}

.dashboard-info {
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.quick-links {
    margin: 30px 0;
}

.quick-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quick-links li a {
    display: block;
    padding: 15px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--silver);
    transition: all 0.2s var(--ease);
}

.quick-links li a:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(1, 163, 227, 0.1);
    color: var(--accent);
}

/* ---------- Forms -------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(1, 163, 227, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* ---------- Tables ------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--bg-2);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    color: var(--white);
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* ---------- Alerts ------------------------------------------------------- */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li { margin: 10px 0; font-size: 13px; color: var(--silver-dim); }

.footer-col a { color: var(--silver-dim); }

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--silver-mute);
}

/* ---------- Information blocks ------------------------------------------- */
.info-block {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-block summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    user-select: none;
    transition: background 0.2s var(--ease);
}

.info-block summary:hover {
    background: rgba(0, 212, 255, 0.1);
}

.info-content {
    padding: 15px;
    color: var(--silver);
    border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .quick-links ul {
        grid-template-columns: 1fr;
    }

    .nav-list {
        gap: 15px;
    }

    table {
        font-size: 12px;
    }

    table th, table td {
        padding: 8px;
    }
}
