/*
 * Member-selectable themes. Each one overrides the colour and font variables
 * from site.css, plus a few touches of its own. The picker is in the footer
 * and on Edit profile; apps/accounts/themes.py lists the themes and fonts.
 */

/* ------------------------------------------------------------------ */
/* Warbird: brushed aluminium, olive drab, signal red, stencil type,   */
/* blueprint grid.                                                      */
/* ------------------------------------------------------------------ */
[data-theme="warbird"] {
  --brand: #4b5320;
  --brand-dark: #3a4119;
  --accent: #4b5320;
  --page: #dfe3e6;
  --box: #f4f5f2;
  --box-alt: #e8eae3;
  --bubble: #e3e6d8;
  --line: #c9cdc2;
  --text: #22261a;
  --text-soft: #3a3f2e;
  --muted: #6a7060;
  --link: #22261a;
  --link-accent: #b3261e;
  --button: #b3261e;
  --button-text: #ffffff;
  --radius: 2px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 3px rgba(34, 38, 26, 0.25);
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --heading-font: "Black Ops One", "Stencil", Impact, sans-serif;
  --nav-text: #e9ecd9;
  --nav-text-active: #ffd24a;
  --chat-name: #b3261e;
  --pinned-bg: #eef0e2;
  --event-bg: #e1e6c9;
  --event-text: #3a4119;
  --bday-bg: #f6dcd7;
  --bday-text: #8b1d16;
}
[data-theme="warbird"] body {
  /* Blueprint grid over a cool aluminium wash. */
  background:
    linear-gradient(rgba(36, 76, 120, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(36, 76, 120, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, #e7eaec, #d4d9dc);
  background-attachment: fixed;
}
[data-theme="warbird"] .main-nav { background: linear-gradient(180deg, #57602a, #3e4519); border-bottom: 3px solid #b3261e; }
[data-theme="warbird"] .site-header, [data-theme="warbird"] .sub-nav {
  background: linear-gradient(180deg, #f2f3f1 0%, #d9dcd9 48%, #e9ebe8 52%, #cfd3cf 100%);
}
[data-theme="warbird"] h1, [data-theme="warbird"] .box-title { letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; }
[data-theme="warbird"] .box-title { border-left: 6px solid #b3261e; background: #e6e8df; }
[data-theme="warbird"] .box-title.accent { background: repeating-linear-gradient(135deg, #4b5320 0 18px, #444c1d 18px 36px); border-left-color: #ffd24a; }
[data-theme="warbird"] .box { border: 1px solid #c3c7bb; }
[data-theme="warbird"] .button.primary { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
[data-theme="warbird"] .forum-icon { border: 3px solid #f4f5f2; box-shadow: 0 0 0 2px #4b5320; }

/* ------------------------------------------------------------------ */
/* Barnstormer: sepia, parchment, leather brown, travel-poster serifs. */
/* ------------------------------------------------------------------ */
[data-theme="barnstormer"] {
  --brand: #6b3e1f;
  --brand-dark: #55301a;
  --accent: #8a4b22;
  --page: #e9dcc0;
  --box: #fbf5e6;
  --box-alt: #f3e9d2;
  --bubble: #f0e2c4;
  --line: #dccaa3;
  --text: #3b2a1a;
  --text-soft: #4d3622;
  --muted: #8a7458;
  --link: #3b2a1a;
  --link-accent: #a2471b;
  --button: #a2471b;
  --button-text: #fff8ea;
  --radius: 6px;
  --shadow: 0 2px 6px rgba(80, 50, 20, 0.15);
  --font: "Lora", Georgia, "Times New Roman", serif;
  --heading-font: "Abril Fatface", "Playfair Display", Georgia, serif;
  --nav-text: #f3e2c0;
  --nav-text-active: #ffffff;
  --on-accent: #fff8ea;
  --input-bg: #fffaf0;
  --chat-name: #a2471b;
  --pinned-bg: #f2ead2;
  --event-bg: #f0dcc0;
  --event-text: #6b3e1f;
  --bday-bg: #e8e3c3;
  --bday-text: #5a5220;
}
[data-theme="barnstormer"] body {
  background:
    radial-gradient(ellipse at top, rgba(255, 248, 230, 0.7), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(120, 80, 40, 0.12), transparent 50%),
    #e9dcc0;
  background-attachment: fixed;
}
[data-theme="barnstormer"] .main-nav { background: linear-gradient(180deg, #7a4826, #5a321b); border-top: 2px solid #c99a5b; border-bottom: 2px solid #c99a5b; }
[data-theme="barnstormer"] .site-header, [data-theme="barnstormer"] .sub-nav { background: #f6ecd5; }
[data-theme="barnstormer"] h1, [data-theme="barnstormer"] .box-title { font-weight: 400; letter-spacing: 0.01em; }
[data-theme="barnstormer"] h1 { font-size: 28px; }
[data-theme="barnstormer"] .box { border: 1px solid #d8c49b; }
[data-theme="barnstormer"] .box-title { background: #f6ecd5; border-bottom: 1px dashed #c9ab78; }
[data-theme="barnstormer"] .box-title.accent { background: #8a4b22; }
/* Postcard edge on posts and boxes. */
[data-theme="barnstormer"] .post, [data-theme="barnstormer"] .chatbox {
  outline: 1px solid #d8c49b; outline-offset: -6px;
}
[data-theme="barnstormer"] img.avatar { filter: sepia(0.35); }

/* ------------------------------------------------------------------ */
/* Cold War: slate, midnight navy, safety orange, technical monospace. */
/* ------------------------------------------------------------------ */
[data-theme="coldwar"] {
  --brand: #1b2a41;
  --brand-dark: #121d2e;
  --accent: #1b2a41;
  --page: #d5dade;
  --box: #f3f5f6;
  --box-alt: #e6eaed;
  --bubble: #e1e7ec;
  --line: #bcc5cc;
  --text: #17202b;
  --text-soft: #2b3746;
  --muted: #5d6b79;
  --link: #17202b;
  --link-accent: #e0590b;
  --button: #ff6a13;
  --button-text: #101820;
  --radius: 0;
  --shadow: none;
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --heading-font: "IBM Plex Mono", "Consolas", monospace;
  --nav-text: #b8c4d2;
  --nav-text-active: #ff8a3d;
  --chat-name: #e0590b;
  --pinned-bg: #fff1e6;
  --event-bg: #1b2a41;
  --event-text: #ffd3b5;
  --bday-bg: #ffe2cc;
  --bday-text: #7a2e00;
}
[data-theme="coldwar"] body { background: repeating-linear-gradient(0deg, #d5dade 0 2px, #d1d6db 2px 4px); }
[data-theme="coldwar"] .main-nav { border-bottom: 4px solid #ff6a13; }
[data-theme="coldwar"] .box { border: 1px solid #9aa6b1; }
[data-theme="coldwar"] .box-title { text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; background: #e1e6ea; border-bottom: 1px solid #9aa6b1; }
[data-theme="coldwar"] .box-title:not(summary)::before { content: "// "; color: #ff6a13; }
[data-theme="coldwar"] summary.box-title > :first-child::before, [data-theme="coldwar"] summary.box-title::marker { color: #ff6a13; }
[data-theme="coldwar"] .box-title.accent { background: #1b2a41; }
[data-theme="coldwar"] h1 { text-transform: uppercase; letter-spacing: 0.06em; }
[data-theme="coldwar"] .row-stats strong, [data-theme="coldwar"] .stat-list dd, [data-theme="coldwar"] .chat-time, [data-theme="coldwar"] .cal-day { font-family: "IBM Plex Mono", monospace; }
[data-theme="coldwar"] .button { text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; font-weight: 600; }
[data-theme="coldwar"] .badge { border-radius: 0; }
[data-theme="coldwar"] .forum-icon { border-radius: 0; }

/* ------------------------------------------------------------------ */
/* Flight Ops: dark instrument panel with radar green, cyan, amber.   */
/* ------------------------------------------------------------------ */
[data-theme="flightops"] {
  color-scheme: dark;
  --brand: #0b1622;
  --brand-dark: #08111a;
  --accent: #0f2a33;
  --page: #070d13;
  --box: #0f1a24;
  --box-alt: #13212d;
  --bubble: #142a35;
  --line: #1f3341;
  --text: #d6e4ee;
  --text-soft: #b5c7d4;
  --muted: #7f98aa;
  --link: #d6e4ee;
  --link-accent: #3ee6c1;
  --button: #18c29c;
  --button-text: #041016;
  --pin: #2fbf71;
  --lock: #e0a320;
  --danger: #ff6b6b;
  --radius: 8px;
  --shadow: 0 0 0 1px #1f3341, 0 6px 18px rgba(0, 0, 0, 0.35);
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
  --heading-font: "Rajdhani", "Barlow", Arial, sans-serif;
  --nav-text: #8fb3c7;
  --nav-text-active: #3ee6c1;
  --on-accent: #3ee6c1;
  --input-bg: #0a141c;
  --chat-name: #ffb238;
  --pinned-bg: #10261f;
  --event-bg: #0e2e3a;
  --event-text: #5fe3ff;
  --bday-bg: #33270e;
  --bday-text: #ffc861;
}
[data-theme="flightops"] .site-header, [data-theme="flightops"] .sub-nav { background: #0b1520; }
[data-theme="flightops"] .main-nav { border-top: 1px solid #1f3341; border-bottom: 1px solid #1f3341; }
[data-theme="flightops"] .nav-search input { background: #0a141c; color: var(--text); box-shadow: inset 0 0 0 1px #24404f; }
[data-theme="flightops"] .nav-search button { color: var(--muted); }
[data-theme="flightops"] h1, [data-theme="flightops"] .box-title { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
[data-theme="flightops"] .box-title { background: #0c1720; color: #9fd8ea; font-size: 16px; }
[data-theme="flightops"] .box-title.accent { background: linear-gradient(90deg, #0f2a33, #0c1720); border-left: 3px solid #3ee6c1; }
[data-theme="flightops"] .row-stats strong, [data-theme="flightops"] .stat-list dd, [data-theme="flightops"] .chat-time, [data-theme="flightops"] .cal-day {
  font-family: "JetBrains Mono", monospace; color: #ffb238;
}
[data-theme="flightops"] .forum-icon { background: #0e2e3a; color: #3ee6c1; box-shadow: 0 0 0 1px #24505f, 0 0 12px rgba(62, 230, 193, 0.15); }
[data-theme="flightops"] .chat-bubble { border: 1px solid #1f4250; }
[data-theme="flightops"] .button { background: #13212d; color: var(--text); border-color: #24404f; }
[data-theme="flightops"] .button.primary { background: var(--button); color: var(--button-text); border-color: var(--button); }
[data-theme="flightops"] .ql-toolbar.ql-snow { background: #13212d; }
[data-theme="flightops"] .ql-snow .ql-stroke { stroke: #b5c7d4; }
[data-theme="flightops"] .ql-snow .ql-fill { fill: #b5c7d4; }
[data-theme="flightops"] .ql-snow .ql-picker { color: #b5c7d4; }
[data-theme="flightops"] img.emoticon { filter: none; }
