/* One Body — color themes.
   Each theme is one block of CSS variables, picked with <html data-theme="key">.
   The "@theme key | Name | Description" comment above each block is read by the app
   (src/Themes.php) to list the themes in Settings and to color the emails,
   so this file is the single place where theme colors live. To add a theme, copy a block,
   give it a new key and colors, and it appears in Settings automatically. */

/* @theme classic | Classic Red | Warm red on soft cream, calm and familiar. */
[data-theme="classic"] {
  --accent: #bd3c2b; --brand-dark: #6f0e00; --brand-blush: #fce8e1; --accent-ink: #ffffff;
  --bg: #f5f2ed; --surface: #ffffff; --surface-2: #fbf9f6;
  --ink: #1c1917; --ink-2: #44403c; --muted: #78716c; --faint: #a8a29e;
  --line: #ece7df; --line-2: #f3efe9; --line-3: #ddd6cb;
  --glow-1: #f6dcd2; --glow-2: #fbe9d7; --verse-ink: #3f2a24; --accent-ink-soft: #7a4a40;
  --hero-1: #6f0e00; --hero-2: #bd3c2b;
}

/* @theme ocean | Living Water | Deep teal and sea blue, calm and fresh. */
[data-theme="ocean"] {
  --accent: #0e7490; --brand-dark: #0b3b52; --brand-blush: #dff3f8; --accent-ink: #ffffff;
  --bg: #eef4f6; --surface: #ffffff; --surface-2: #f6fafb;
  --ink: #0f1f29; --ink-2: #33464f; --muted: #667a84; --faint: #9aabb3;
  --line: #dfe9ed; --line-2: #ebf2f4; --line-3: #cbdbe1;
  --glow-1: #cdeaf2; --glow-2: #dde7fb; --verse-ink: #12384a; --accent-ink-soft: #2f5d6f;
  --hero-1: #0b3b52; --hero-2: #0e7490;
  --red-line: #f1cfcf; --pending: #e9b14f;
}

/* @theme olive | Olive Grove | Sage and olive greens with warm sand. */
[data-theme="olive"] {
  --accent: #4d7c3a; --brand-dark: #24401b; --brand-blush: #e8f1df; --accent-ink: #ffffff;
  --bg: #f2f2ea; --surface: #ffffff; --surface-2: #f9f9f3;
  --ink: #1b2216; --ink-2: #3d4636; --muted: #707a66; --faint: #a3ab98;
  --line: #e4e6d9; --line-2: #eef0e6; --line-3: #d3d8c4;
  --glow-1: #dcebcf; --glow-2: #f1e8cf; --verse-ink: #2a3a1f; --accent-ink-soft: #4d5e3c;
  --hero-1: #24401b; --hero-2: #5b8c45;
}

/* @theme royal | Royal Purple | Regal purple with a touch of gold. */
[data-theme="royal"] {
  --accent: #6b3fa0; --brand-dark: #2e1452; --brand-blush: #efe6fa; --accent-ink: #ffffff;
  --bg: #f4f1f8; --surface: #ffffff; --surface-2: #faf8fd;
  --ink: #1d1626; --ink-2: #433a4f; --muted: #776e84; --faint: #aaa2b6;
  --line: #e7e1ef; --line-2: #f1edf6; --line-3: #d7cee3;
  --glow-1: #e5d8f7; --glow-2: #f6ead0; --verse-ink: #33204d; --accent-ink-soft: #5c4a74;
  --hero-1: #2e1452; --hero-2: #8a5a2b;
  --pending: #d4a43a;
}

/* @theme sunrise | Sunrise | Glowing amber and coral, bright and welcoming. */
[data-theme="sunrise"] {
  --accent: #d0551f; --brand-dark: #7a2a0c; --brand-blush: #fdebdc; --accent-ink: #ffffff;
  --bg: #fbf5ee; --surface: #ffffff; --surface-2: #fffaf4;
  --ink: #23170f; --ink-2: #4a3a2e; --muted: #85715f; --faint: #b3a291;
  --line: #f0e5d8; --line-2: #f7efe5; --line-3: #e4d5c3;
  --glow-1: #fde0c4; --glow-2: #fbd9d4; --verse-ink: #4a2511; --accent-ink-soft: #8a4a2a;
  --hero-1: #b33c12; --hero-2: #f08a3c;
}

/* @theme midnight | Midnight | A dark theme that is easy on the eyes in the evening. */
[data-theme="midnight"] {
  --scheme: dark;
  --accent: #f0775d; --brand-dark: #ffb4a1; --brand-blush: #3a2522; --accent-ink: #1a0f0c;
  --bg: #0f1217; --surface: #181c23; --surface-2: #1e232b;
  --ink: #eceef2; --ink-2: #c9ced8; --muted: #8e96a4; --faint: #6b7381;
  --line: #2a303a; --line-2: #232831; --line-3: #39404c;
  --sheen: rgba(255, 255, 255, .05);
  --glow-1: #2a1d2b; --glow-2: #1a2633; --verse-ink: #f3dcd4; --accent-ink-soft: #e2b6a9;
  --hero-1: #3a1610; --hero-2: #a8432f;
  --inverse: #000000; --wa-bubble: #1f3b2a; --pending: #e0a648;
  --green: #4ade80;  --green-bg: #12291c;
  --amber: #fbbf24;  --amber-bg: #2c2210;
  --red: #f87171;    --red-bg: #2e1616;  --red-line: #5b2626;
  --blue: #93b4ff;   --blue-bg: #17213a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
[data-theme="midnight"] img.logo-img { background: #fff; }
[data-theme="midnight"] .btn-dark { background: linear-gradient(180deg, #3b4250 0%, #2a303a 100%); border-color: #444c5a; }
[data-theme="midnight"] .team-tag { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
[data-theme="midnight"] .pill-wa { background: #3a1f1a; color: #ffb4a1; }
[data-theme="midnight"] .chan-wa { background: #12291c; border-color: #1f4a30; color: #6ee7a0; }
[data-theme="midnight"] .wa-link { color: #6ee7a0; }
[data-theme="midnight"] .preview-frame { background: #fff; }

/* Theme picker cards (Settings + My account) — they render in their own theme. */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.theme-card { position: relative; display: block; cursor: pointer; margin: 0; height: 100%; }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card .tc-in { display: flex; flex-direction: column; height: 100%; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.theme-card:hover .tc-in { transform: translateY(-2px); box-shadow: var(--shadow); }
.theme-card input:checked + .tc-in { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.theme-card .tc-hero { display: block; height: 46px; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); position: relative; }
.theme-card .tc-hero::after { content: ""; position: absolute; right: 12px; bottom: -12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.theme-card .tc-body { display: flex; flex-direction: column; flex: 1; padding: 12px; color: var(--ink); }
.theme-card .tc-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.theme-card .tc-desc { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.theme-card .tc-dots { display: flex; gap: 5px; margin-top: auto; padding-top: 9px; }
.theme-card .tc-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-3); }
.theme-card .tc-dots i:nth-child(1) { background: var(--accent); }
.theme-card .tc-dots i:nth-child(2) { background: var(--brand-dark); }
.theme-card .tc-dots i:nth-child(3) { background: var(--brand-blush); }
.theme-card .tc-dots i:nth-child(4) { background: var(--surface); }
.theme-card .tc-check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--accent); display: none; place-items: center; box-shadow: var(--shadow); }
.theme-card input:checked ~ .tc-check { display: grid; }
.theme-card.tc-default .tc-hero { background: repeating-linear-gradient(45deg, var(--line-2) 0 10px, var(--surface) 10px 20px); }
