/* ============================================
   ReNet.dk — Themes
   Dark = default, Light = alternate
   ============================================ */

/* ---------- Dark Theme (Default) ---------- */
:root,
[data-theme="dark"] {
    /* Backgrounds */
    --bg-primary: #09090F;
    --bg-secondary: #0F0F1A;
    --bg-tertiary: #14141F;
    --bg-elevated: #1A1A28;
    --bg-card: rgba(255, 255, 255, 0.04);

    /* Text */
    --text-primary: #F0F0FF;
    --text-secondary: rgba(240, 240, 255, 0.65);
    --text-tertiary: rgba(240, 240, 255, 0.38);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Header */
    --header-bg: rgba(9, 9, 15, 0.75);
    --header-border: rgba(255, 255, 255, 0.06);
    --header-scrolled-bg: rgba(9, 9, 15, 0.95);

    /* Cards */
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(99, 102, 241, 0.45);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 12px 40px rgba(99, 102, 241, 0.2);

    /* Hero */
    --hero-overlay: linear-gradient(to bottom, rgba(9, 9, 15, 0.3) 0%, rgba(9, 9, 15, 0.0) 50%, rgba(9, 9, 15, 0.7) 100%);

    /* Stats */
    --stat-bg: var(--gradient-primary);
    --stat-text: #FFFFFF;

    /* Forms */
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-border-focus: rgba(99, 102, 241, 0.6);
    --input-shadow-focus: 0 0 0 3px rgba(99, 102, 241, 0.15);
    --input-text: var(--text-primary);
    --input-placeholder: rgba(240, 240, 255, 0.35);

    /* Footer */
    --footer-bg: #050508;
    --footer-text: rgba(240, 240, 255, 0.5);
    --footer-heading: rgba(240, 240, 255, 0.85);

    /* Tags */
    --tag-bg: rgba(255, 255, 255, 0.06);
    --tag-border: rgba(255, 255, 255, 0.1);
    --tag-text: var(--text-secondary);
    --tag-hover-bg: var(--accent-soft);
    --tag-hover-border: rgba(99, 102, 241, 0.35);
    --tag-hover-text: var(--accent-light);

    /* Timeline */
    --timeline-line: rgba(99, 102, 241, 0.25);
    --timeline-dot: var(--accent);
    --timeline-dot-bg: rgba(9, 9, 15, 1);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
    /* Backgrounds */
    --bg-primary: #FAFAFA;
    --bg-secondary: #F3F4F6;
    --bg-tertiary: #E9EAEC;
    --bg-elevated: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.8);

    /* Text */
    --text-primary: #0F0F1A;
    --text-secondary: rgba(15, 15, 26, 0.62);
    --text-tertiary: rgba(15, 15, 26, 0.38);

    /* Borders */
    --border-color: rgba(15, 15, 26, 0.1);
    --border-light: rgba(15, 15, 26, 0.06);

    /* Header */
    --header-bg: rgba(250, 250, 250, 0.8);
    --header-border: rgba(15, 15, 26, 0.08);
    --header-scrolled-bg: rgba(250, 250, 250, 0.95);

    /* Cards */
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(15, 15, 26, 0.08);
    --card-border-hover: rgba(99, 102, 241, 0.3);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.12);

    /* Hero */
    --hero-overlay: linear-gradient(to bottom, rgba(250, 250, 250, 0.15) 0%, rgba(250, 250, 250, 0) 50%, rgba(250, 250, 250, 0.5) 100%);

    /* Stats */
    --stat-bg: var(--gradient-primary);
    --stat-text: #FFFFFF;

    /* Forms */
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(15, 15, 26, 0.15);
    --input-border-focus: rgba(99, 102, 241, 0.5);
    --input-shadow-focus: 0 0 0 3px rgba(99, 102, 241, 0.1);
    --input-text: var(--text-primary);
    --input-placeholder: rgba(15, 15, 26, 0.38);

    /* Footer */
    --footer-bg: #0F0F1A;
    --footer-text: rgba(240, 240, 255, 0.5);
    --footer-heading: rgba(240, 240, 255, 0.85);

    /* Tags */
    --tag-bg: rgba(15, 15, 26, 0.05);
    --tag-border: rgba(15, 15, 26, 0.1);
    --tag-text: var(--text-secondary);
    --tag-hover-bg: var(--accent-soft);
    --tag-hover-border: rgba(99, 102, 241, 0.25);
    --tag-hover-text: var(--accent);

    /* Timeline */
    --timeline-line: rgba(99, 102, 241, 0.2);
    --timeline-dot: var(--accent);
    --timeline-dot-bg: #FAFAFA;

    /* Override glass for light mode */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 15, 26, 0.1);
}