/* Party themes. "Rose & Balloons" is the ORIGINAL look (styles.css as it always was) and has no rules here at all:
   every rule below is scoped to :root[data-theme="…"] (or an element carrying data-theme, for the dashboard's cards),
   so a page in the rose theme — Chitra's — renders exactly as before.
   Each theme sets the variables of BOTH style sheets (styles.css: --ivory/--blush/…; rsvp.html, show.html, the
   account pages: --bg/--paper/…), its fonts (loaded by theme.js from Google Fonts), and background art drawn in
   inline SVG — no external images. */

/* ------------------------------------------------------------------ Midnight Gold: deep navy, gold, an elegant serif */
[data-theme="midnight"] {
  --ivory: #0e1830; --bg: #0e1830; --paper: #15223f; --cream: #1b2a4c; --blush: #2a3a62; --blush-2: #22325a; --champ: #3a4a70; --nude: #2c3b60;
  --rose: #d8b25c; --rose-2: #e8c878; --gold: #c9a24a; --gold-2: #e5cb86; --ink: #f4ecd8; --muted: #b8b3a2; --line: #2d3d61; --sage: #8fa0b8;
  --gold-grad: linear-gradient(135deg, #f1d991 0%, #c9a24a 50%, #f3dc9a 100%);
  --serif: "Playfair Display", Georgia, serif; --script: "Great Vibes", "Snell Roundhand", cursive; --sans: "Josefin Sans", system-ui, sans-serif;
}
:root[data-theme="midnight"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23e5cb86'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='88' cy='42' r='.8'/%3E%3Ccircle cx='140' cy='12' r='1.2'/%3E%3Ccircle cx='52' cy='96' r='.7'/%3E%3Ccircle cx='120' cy='130' r='1'/%3E%3Ccircle cx='24' cy='146' r='.8'/%3E%3C/g%3E%3Cpath d='M70 70l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' fill='%23e5cb86' opacity='.55'/%3E%3C/svg%3E"),
    radial-gradient(800px 480px at 100% 0%, rgba(216, 178, 92, 0.22), transparent 65%),
    radial-gradient(700px 480px at 0% 100%, rgba(120, 140, 200, 0.18), transparent 65%), var(--bg);
  background-attachment: fixed;
}
:root[data-theme="midnight"] .appbar { background: linear-gradient(180deg, rgba(14, 24, 48, 0.96), rgba(14, 24, 48, 0.8) 70%, rgba(14, 24, 48, 0)); }
:root[data-theme="midnight"] .tabbar { background: rgba(21, 34, 63, 0.94); }
:root[data-theme="midnight"] .btn-primary, :root[data-theme="midnight"] .icon-btn, :root[data-theme="midnight"] .seal,
:root[data-theme="midnight"] .rec-btn span, :root[data-theme="midnight"] .go, :root[data-theme="midnight"] .start { color: #0e1830; }
:root[data-theme="midnight"] .c-pink, :root[data-theme="midnight"] .c-coral, :root[data-theme="midnight"] .c-gold, :root[data-theme="midnight"] .c-mint,
:root[data-theme="midnight"] .c-sky, :root[data-theme="midnight"] .c-lilac, :root[data-theme="midnight"] .c-peach { background: #1a2848; }
:root[data-theme="midnight"] .cta-icon { background: #22325a !important; color: var(--gold-2) !important; }

/* ------------------------------------------------------------------ Garden Party: sage + cream, botanical line art */
[data-theme="garden"] {
  --ivory: #f5f2e6; --bg: #f5f2e6; --paper: #fcfbf4; --cream: #ece8d6; --blush: #dfe6cf; --blush-2: #e8eedc; --champ: #e6e0c6; --nude: #d8d2b4;
  --rose: #5d7a52; --rose-2: #7f9a6f; --gold: #8c8a4e; --gold-2: #c3c69a; --ink: #2e3829; --muted: #6c7462; --line: #dde2cc; --sage: #9db08a;
  --gold-grad: linear-gradient(135deg, #c9d3a6 0%, #7f9a6f 50%, #c9d3a6 100%);
  --serif: "Lora", Georgia, serif; --script: "Dancing Script", "Snell Roundhand", cursive; --sans: "Nunito Sans", system-ui, sans-serif;
}
:root[data-theme="garden"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%237f9a6f' stroke-width='1.2' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M0 250 C60 200 90 150 100 60'/%3E%3Cpath d='M100 60 c-20 4-34 18-36 38 20-2 34-16 36-38z'/%3E%3Cpath d='M86 120 c-22-2-40 8-48 28 22 4 40-6 48-28z'/%3E%3Cpath d='M70 175 c-18-8-38-4-50 12 18 10 38 6 50-12z'/%3E%3Cpath d='M96 95 c16-12 34-14 50-6-14 14-32 16-50 6z'/%3E%3C/svg%3E") left bottom / 260px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke='%238c8a4e' stroke-width='1.1' stroke-linecap='round' opacity='.45'%3E%3Cpath d='M220 0 C170 40 150 90 150 170'/%3E%3Cpath d='M150 170 c18-6 30-22 30-42-18 4-30 20-30 42z'/%3E%3Cpath d='M162 100 c20 0 36-12 42-32-20-2-36 10-42 32z'/%3E%3Ccircle cx='150' cy='178' r='5'/%3E%3Ccircle cx='150' cy='178' r='1.5' fill='%238c8a4e'/%3E%3C/svg%3E") right top / 220px no-repeat,
    radial-gradient(800px 480px at 100% 0%, rgba(157, 176, 138, 0.28), transparent 65%), var(--bg);
  background-attachment: fixed;
}
:root[data-theme="garden"] .appbar { background: linear-gradient(180deg, rgba(245, 242, 230, 0.96), rgba(245, 242, 230, 0.8) 70%, rgba(245, 242, 230, 0)); }
:root[data-theme="garden"] .c-pink { background: #e8eedc; } :root[data-theme="garden"] .c-coral { background: #f1ecd8; } :root[data-theme="garden"] .c-gold { background: #f6f3e2; }
:root[data-theme="garden"] .c-mint { background: #e2ead6; } :root[data-theme="garden"] .c-sky { background: #e5ebe3; } :root[data-theme="garden"] .c-lilac { background: #ece9da; }
:root[data-theme="garden"] .c-peach { background: #efe8d4; }

/* ------------------------------------------------------------------ Confetti Pop: bright, playful, rounded sans */
[data-theme="confetti"] {
  --ivory: #fff8ec; --bg: #fff8ec; --paper: #ffffff; --cream: #fff0d6; --blush: #ffd6e5; --blush-2: #ffe3ee; --champ: #ffe7a8; --nude: #c9ecfb;
  --rose: #ff3f86; --rose-2: #ff7aa9; --gold: #f59e0b; --gold-2: #6cc8f2; --ink: #2a2250; --muted: #6d6690; --line: #f2e4cf; --sage: #6fd3a8;
  --gold-grad: linear-gradient(90deg, #ff3f86, #ffb300, #36c2f0, #6fd3a8);
  --serif: "Fredoka", system-ui, sans-serif; --script: "Pacifico", cursive; --sans: "Nunito", system-ui, sans-serif;
}
:root[data-theme="confetti"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Crect x='14' y='20' width='10' height='4' rx='2' fill='%23ff3f86' transform='rotate(25 19 22)'/%3E%3Crect x='120' y='34' width='10' height='4' rx='2' fill='%2336c2f0' transform='rotate(-30 125 36)'/%3E%3Ccircle cx='70' cy='60' r='3' fill='%23ffb300'/%3E%3Crect x='40' y='130' width='10' height='4' rx='2' fill='%236fd3a8' transform='rotate(60 45 132)'/%3E%3Ccircle cx='150' cy='120' r='3.5' fill='%23ff7aa9'/%3E%3Ccircle cx='100' cy='160' r='2.5' fill='%2336c2f0'/%3E%3Crect x='160' y='80' width='9' height='4' rx='2' fill='%23ffb300' transform='rotate(-50 164 82)'/%3E%3C/svg%3E"),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 63, 134, 0.16), transparent 65%),
    radial-gradient(700px 420px at 0% 100%, rgba(54, 194, 240, 0.16), transparent 65%), var(--bg);
  background-attachment: fixed;
}
:root[data-theme="confetti"] .appbar { background: linear-gradient(180deg, rgba(255, 248, 236, 0.96), rgba(255, 248, 236, 0.8) 70%, rgba(255, 248, 236, 0)); }
:root[data-theme="confetti"] .btn, :root[data-theme="confetti"] .go, :root[data-theme="confetti"] .start { border-radius: 18px; letter-spacing: 0.06em; }
:root[data-theme="confetti"] .card, :root[data-theme="confetti"] .cta, :root[data-theme="confetti"] .panel { border-radius: 24px; }
:root[data-theme="confetti"] .c-pink { background: #ffe3ee; } :root[data-theme="confetti"] .c-coral { background: #ffe9d6; } :root[data-theme="confetti"] .c-gold { background: #fff3c4; }
:root[data-theme="confetti"] .c-mint { background: #dcf7ea; } :root[data-theme="confetti"] .c-sky { background: #ddf3fd; } :root[data-theme="confetti"] .c-lilac { background: #ece6ff; }
:root[data-theme="confetti"] .c-peach { background: #ffe4dc; }

/* every non-rose theme: its own art instead of the balloon garland */
:root[data-theme="midnight"] .garland-frame, :root[data-theme="garden"] .garland-frame, :root[data-theme="confetti"] .garland-frame { display: none; }
:root[data-theme="midnight"] .arch, :root[data-theme="garden"] .arch, :root[data-theme="confetti"] .arch { background: var(--paper); }
:root[data-theme="midnight"] .lock-script, :root[data-theme="garden"] .lock-script, :root[data-theme="confetti"] .lock-script { font-family: var(--script); }
:root[data-theme="confetti"] .lock-40 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
:root[data-theme="midnight"] .lock-40 { font-family: var(--serif); font-weight: 500; }

/* The in-flow dinner reply (customer parties) and the retention notice. */
.dinner { text-align: left; margin: 22px 0 8px; }
.dinner .script-line, .dinner .panel-title { text-align: center; }
.dn-choice { margin: 0 0 16px; }
.dn-choice button { flex: 1; }
.dn-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.retention { font-family: var(--serif); font-size: 18px; text-align: center; color: var(--rose); }

/* The theme picker in the organiser's settings: four live sample cards. */
.theme-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 18px; }
.theme-pick { border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; cursor: pointer; background: var(--bg, #faf6f1); color: var(--ink); font: inherit; }
.theme-pick[aria-pressed="true"] { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.theme-pick .tp-script { display: block; font-family: var(--script); font-size: 30px; line-height: 1.1; color: var(--rose); }
.theme-pick .tp-serif { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; margin-top: 2px; }
.theme-pick .tp-name { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.theme-pick .tp-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.theme-pick .tp-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }

/* styles.css darkens the rose button on hover with a fixed colour: in the other themes, darken their own accent. */
:root[data-theme="midnight"] .btn-primary:hover, :root[data-theme="garden"] .btn-primary:hover, :root[data-theme="confetti"] .btn-primary:hover {
  background: var(--rose); filter: brightness(0.92); }
