/* =====================================================================
   Wedding themes. Colours come from themes.tokens in the database
   (applied as CSS variables); these rules add each theme's character.
   <html data-theme="royal|minimal|floral|traditional|palace">
   ===================================================================== */

/* ---------- Minimal Ivory: quiet, no ornaments ---------- */
[data-theme="minimal"] body { background-image: none; }
[data-theme="minimal"] .section--alt { background: color-mix(in srgb, var(--blush) 45%, transparent); }
[data-theme="minimal"] .section--alt::before, [data-theme="minimal"] .section--alt::after,
[data-theme="minimal"] .section__ornament { display: none; }
[data-theme="minimal"] .section__title { font-weight: 500; letter-spacing: .04em; }
[data-theme="minimal"] .section__title::after { width: 48px; background: var(--champagne); height: 1px; }
[data-theme="minimal"] .hero__names, [data-theme="minimal"] .footer__names, [data-theme="minimal"] .topbar__brand { font-family: var(--font-heading); font-weight: 500; letter-spacing: .02em; }
[data-theme="minimal"] .hero__photo-wrap { background: var(--champagne); padding: 3px; border-radius: 16px; }
[data-theme="minimal"] .hero__photo, [data-theme="minimal"] .hero__photo-wrap .img-fallback { border-radius: 13px; border: 0; }
[data-theme="minimal"] .card { box-shadow: none; }
[data-theme="minimal"] .btn--gold { background: var(--maroon); }

/* ---------- Floral Pink: blooms on headings and cards ---------- */
[data-theme="floral"] body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23f7c6d0' opacity='.35'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='28' cy='14' r='6'/%3E%3Ccircle cx='28' cy='26' r='6'/%3E%3Ccircle cx='12' cy='26' r='6'/%3E%3Ccircle cx='12' cy='14' r='6'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3' fill='%23f3a9b9' opacity='.5'/%3E%3C/svg%3E"),
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--blush) 80%, transparent), transparent 45%);
}
[data-theme="floral"] .section__ornament { font-size: 0; width: 64px; height: 40px; margin: 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cg fill='%23d6336c'%3E%3Ccircle cx='32' cy='10' r='7'/%3E%3Ccircle cx='42' cy='17' r='7'/%3E%3Ccircle cx='38' cy='29' r='7'/%3E%3Ccircle cx='26' cy='29' r='7'/%3E%3Ccircle cx='22' cy='17' r='7'/%3E%3C/g%3E%3Ccircle cx='32' cy='20' r='5' fill='%23ffd54f'/%3E%3Cpath d='M4 30 Q14 20 20 24 M60 30 Q50 20 44 24' stroke='%234caf50' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="floral"] .card { border-radius: 26px; }
[data-theme="floral"] .event__icon, [data-theme="floral"] .countdown__cell { border-color: var(--champagne); }

/* ---------- Traditional Indian: sindoor, marigold, temple borders ---------- */
[data-theme="traditional"] .section--alt { background: color-mix(in srgb, var(--blush) 55%, transparent); }
[data-theme="traditional"] .section--alt::before, [data-theme="traditional"] .section--alt::after {
  height: 16px; opacity: 1;
  background: linear-gradient(135deg, var(--maroon) 25%, transparent 25%) -8px 0 / 16px 16px, linear-gradient(225deg, var(--maroon) 25%, transparent 25%) -8px 0 / 16px 16px, var(--champagne);
}
[data-theme="traditional"] .section__ornament { color: var(--maroon); }
[data-theme="traditional"] .card { border: 2px solid color-mix(in srgb, var(--champagne) 70%, transparent); }
[data-theme="traditional"] .topbar { border-bottom: 3px solid var(--champagne); }
[data-theme="traditional"] .footer { background: linear-gradient(180deg, var(--maroon), color-mix(in srgb, var(--maroon) 70%, #000)); border-top: 6px solid var(--champagne); }

/* ---------- Luxury Palace: midnight & gold (dark) ---------- */
[data-theme="palace"] { color-scheme: dark; --card: #15233b; --line: color-mix(in srgb, var(--champagne) 40%, transparent); --shadow: 0 14px 36px rgba(0,0,0,.45); }
[data-theme="palace"] body { background-image: radial-gradient(circle at 20% 0%, #1c3157 0, transparent 40%), radial-gradient(circle at 90% 60%, #0f3b33 0, transparent 40%); }
[data-theme="palace"] .topbar { background: rgba(10, 18, 34, .85); }
[data-theme="palace"] .nav { background: #0f1a2e; }
[data-theme="palace"] .nav__list a { color: var(--text); }
[data-theme="palace"] .nav__list a:hover, [data-theme="palace"] .nav__list a.is-active { background: #1c2c49; color: var(--champagne); }
[data-theme="palace"] .icon-btn { background: #15233b; color: var(--champagne); }
[data-theme="palace"] .nav-toggle__bars, [data-theme="palace"] .nav-toggle__bars::before, [data-theme="palace"] .nav-toggle__bars::after { background: var(--champagne); }
[data-theme="palace"] .section--alt { background: rgba(255, 255, 255, .03); }
[data-theme="palace"] .field input[type="text"], [data-theme="palace"] .field input[type="tel"], [data-theme="palace"] .field select,
[data-theme="palace"] .field textarea, [data-theme="palace"] .choice { background: #0f1a2e; color: var(--text); }
[data-theme="palace"] .btn--gold { color: #1b1404; }
[data-theme="palace"] .btn--maroon { background: var(--champagne); color: #1b1404; }
[data-theme="palace"] .btn--outline { color: var(--champagne); }
[data-theme="palace"] .event__dress { background: #1c2c49; color: var(--champagne); }
[data-theme="palace"] .footer { background: #08101e; }
[data-theme="palace"] .loader { background: #0f1a2e; }
[data-theme="palace"] .floater--music { background: #15233b; color: var(--champagne); }
[data-theme="palace"] .hero__photo, [data-theme="palace"] .hero__photo-wrap .img-fallback { border-color: #0f1a2e; }
