/* 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 | Rich crimson on warm parchment, timeless and familiar. */
[data-theme="classic"] {
  --accent: #b91c1c; --brand-dark: #6f0e00; --brand-blush: #fde8e8; --accent-ink: #ffffff;
  --bg: #f4efe6; --surface: #ffffff; --surface-2: #faf7f2;
  --ink: #1c1917; --ink-2: #44403c; --muted: #635d58; --faint: #96908a;
  --line: #eae3d7; --line-2: #f3eee6; --line-3: #d9d0c1;
  --glow-1: #f7d8d4; --glow-2: #fae7d4; --verse-ink: #4a1d1a; --accent-ink-soft: #882b24;
  --hero-1: #7f1d1d; --hero-2: #dc2626;
}

/* @theme navy | Cobalt Blue | Crisp cobalt blue on cool ice, sharp and modern. */
[data-theme="navy"] {
  --accent: #1d4ed8; --brand-dark: #172554; --brand-blush: #dbeafe; --accent-ink: #ffffff;
  --bg: #eef3fb; --surface: #ffffff; --surface-2: #f6f9fe;
  --ink: #0f172a; --ink-2: #334155; --muted: #475569; --faint: #8492a6;
  --line: #d6e2f5; --line-2: #e7effb; --line-3: #bfd1ee;
  --glow-1: #dbeafe; --glow-2: #e0e7ff; --verse-ink: #1e3a8a; --accent-ink-soft: #1e40af;
  --hero-1: #1e3a8a; --hero-2: #3b82f6;
}

/* @theme ocean | Living Water | Fresh seafoam and deep emerald-teal, calm and restorative. */
[data-theme="ocean"] {
  --accent: #0f766e; --brand-dark: #134e4a; --brand-blush: #ccfbf1; --accent-ink: #ffffff;
  --bg: #ebf7f4; --surface: #ffffff; --surface-2: #f4fbf9;
  --ink: #0d211f; --ink-2: #284b47; --muted: #436661; --faint: #7fa09b;
  --line: #d2eae4; --line-2: #e4f3ef; --line-3: #b8dbd2;
  --glow-1: #ccfbf1; --glow-2: #d1fae5; --verse-ink: #115e59; --accent-ink-soft: #0f766e;
  --hero-1: #115e59; --hero-2: #14b8a6;
  --red-line: #f1cfcf; --pending: #d97706;
}

/* @theme olive | Olive Grove | Botanical moss and sage green with warm oat. */
[data-theme="olive"] {
  --accent: #4d7c0f; --brand-dark: #2c4a0a; --brand-blush: #ecfccb; --accent-ink: #ffffff;
  --bg: #f3f3e8; --surface: #ffffff; --surface-2: #fafaf2;
  --ink: #1a2310; --ink-2: #3b472c; --muted: #546144; --faint: #8b977b;
  --line: #e2e4d3; --line-2: #eeefe2; --line-3: #cfd4bc;
  --glow-1: #e4f5c4; --glow-2: #f3ebd0; --verse-ink: #365314; --accent-ink-soft: #4d7c0f;
  --hero-1: #365314; --hero-2: #65a30d;
}

/* @theme royal | Royal Plum | Deep violet and warm gold, expressive and celebratory. */
[data-theme="royal"] {
  --accent: #7e22ce; --brand-dark: #3b0764; --brand-blush: #f3e8ff; --accent-ink: #ffffff;
  --bg: #f5effa; --surface: #ffffff; --surface-2: #faf7fd;
  --ink: #1e122b; --ink-2: #443159; --muted: #5e4b75; --faint: #9583ab;
  --line: #e6daf2; --line-2: #f1eaf8; --line-3: #d4c1e8;
  --glow-1: #ead5ff; --glow-2: #fef0c7; --verse-ink: #4c1d95; --accent-ink-soft: #6b21a8;
  --hero-1: #4c1d95; --hero-2: #d97706;
  --pending: #d97706;
}

/* @theme sunrise | Golden Sunrise | Warm marigold and honey-gold, bright and welcoming. */
[data-theme="sunrise"] {
  --accent: #b45309; --brand-dark: #632806; --brand-blush: #fef3c7; --accent-ink: #ffffff;
  --bg: #fdf7e9; --surface: #ffffff; --surface-2: #fffcf3;
  --ink: #24190a; --ink-2: #4d3b21; --muted: #6e593a; --faint: #a38e6d;
  --line: #efe3c8; --line-2: #f7f0de; --line-3: #dfd0ae;
  --glow-1: #fde68a; --glow-2: #fed7aa; --verse-ink: #78350f; --accent-ink-soft: #92400e;
  --hero-1: #b45309; --hero-2: #f59e0b;
}

/* @theme slate | Graphite Slate | Crisp neutral monochrome that pairs with any logo. */
[data-theme="slate"] {
  --accent: #334155; --brand-dark: #0f172a; --brand-blush: #e2e8f0; --accent-ink: #ffffff;
  --bg: #f1f3f6; --surface: #ffffff; --surface-2: #f8fafc;
  --ink: #111827; --ink-2: #374151; --muted: #525b68; --faint: #8b93a1;
  --line: #e2e6ec; --line-2: #eef1f4; --line-3: #cbd2dc;
  --glow-1: #e2e8f0; --glow-2: #e5e7eb; --verse-ink: #1e293b; --accent-ink-soft: #475569;
  --hero-1: #1e293b; --hero-2: #64748b;
}

/* @theme midnight | Midnight Indigo | Deep evening indigo with soft sky-blue highlights. */
[data-theme="midnight"] {
  --scheme: dark;
  --accent: #60a5fa; --brand-dark: #bfdbfe; --brand-blush: #1e2d4a; --accent-ink: #081226;
  --bg: #0b101b; --surface: #131b2b; --surface-2: #1a2438;
  --ink: #eef2f9; --ink-2: #c7d2e5; --muted: #93a3be; --faint: #6b7c99;
  --line: #253147; --line-2: #1e283b; --line-3: #364663;
  --sheen: rgba(255, 255, 255, .05);
  --glow-1: #172554; --glow-2: #1e1b4b; --verse-ink: #dbeafe; --accent-ink-soft: #93c5fd;
  --hero-1: #1e1b4b; --hero-2: #2563eb;
  --inverse: #000000; --wa-bubble: #173626; --pending: #f5b942;
  --green: #4ade80;  --green-bg: #102a1d;
  --amber: #fbbf24;  --amber-bg: #2b210e;
  --red: #f87171;    --red-bg: #2d1519;  --red-line: #5b252d;
  --blue: #93c5fd;   --blue-bg: #172544;
  --shadow: 0 1px 2px rgba(0, 0, 0, .38), 0 4px 16px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
  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: #1e2d4a; color: #bfdbfe; }
[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); }
