/* Lavender Romance — palette/fonts/motifs per input_12 Part A, matched
   against the uploaded public-wedding-invitation-updated.html /
   luxury-wedding-dashboard.html mockups. Same class vocabulary as
   Botanical Bloom's theme.css (bb-*) — this is a skin, not a
   restructure, so the guest scroll and admin page markup are unchanged;
   only these values differ. */
:root {
  --bb-cream: #f7efe3;       /* parchment, used where Botanical Bloom uses cream */
  --bb-cream-deep: #e9ddcd;  /* beige */
  --bb-rose: #755062;        /* mauve-dark, used where Botanical Bloom uses rose */
  --bb-rose-soft: #9c7185;   /* mauve */
  --bb-sage: #9c7185;
  --bb-ink: #4d372f;         /* brown */
  --bb-ivory: #fffdf9;
  --bb-lavender: #cbb8d0;
  --bb-radius: 26px;         /* one uniform corner radius, 24-28px per spec */
  /* input_20 Phase 4: alias so admin-shared.css's structural rules (which
     don't know this theme's own --bb-radius name) can reference one
     consistent variable name across all three themes. Same value as
     --bb-radius above — not a new, separate design decision. */
  --bb-admin-radius: var(--bb-radius);
}

html.bb-page, body.bb-page { background: var(--bb-cream); }
body.bb-page {
  margin: 0;
  color: var(--bb-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-image: radial-gradient(circle at 90% 15%, rgba(203, 184, 208, 0.28), transparent 30%);
}
body.bb-page * { box-sizing: border-box; }

.bb-script { font-family: 'Great Vibes', cursive; color: var(--bb-rose); font-weight: 400; }
.bb-label {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bb-rose);
  font-size: 0.75rem;
  font-weight: 700;
}
.bb-btn {
  display: inline-block;
  border: 1px solid rgba(117, 80, 98, 0.5);
  color: var(--bb-rose);
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--bb-radius);
  padding: 0.8em 1.9em;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bb-btn:hover { background: var(--bb-rose); color: #fff; transform: translateY(-1px); }

/* Large low-opacity "✽" marks — this theme's motif in place of a floral
   illustration image; pure CSS, no asset file needed. */
.bb-motif-mark {
  position: absolute;
  z-index: 0;
  color: rgba(156, 113, 133, 0.14);
  font-family: 'Cormorant Garamond', serif;
  font-size: 260px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
/* Light rings of dots — secondary decorative accent. */
.bb-dot-ring {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(117, 80, 98, 0.35) 1px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.bb-hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  padding: 10vh 6vw;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bb-hero-photo, .bb-hero-photo-placeholder {
  position: absolute;
  inset: 10vh 6vw;
  width: calc(100% - 12vw);
  height: calc(100% - 20vh);
  object-fit: cover;
  border-radius: var(--bb-radius);
  display: block;
}
.bb-hero-photo-placeholder { background: var(--bb-cream-deep); }
.bb-hero-panel {
  position: relative;
  z-index: 1;
  background: rgba(247, 239, 227, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--bb-radius);
  padding: 1.75rem 2rem;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 20px 50px rgba(75, 46, 38, 0.15);
}
.bb-hero-floral { display: none; } /* Lavender Romance uses the ✽ motif, not a floral image */
.bb-hero-names { margin: 0; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.bb-hero-meta { margin: 0; }
.bb-hero-panel .bb-btn { align-self: flex-start; margin-top: 0.6rem; }

@media (max-width: 760px) {
  .bb-hero { align-items: flex-end; padding: 6vh 5vw; }
  .bb-hero-photo, .bb-hero-photo-placeholder { inset: 6vh 5vw; width: calc(100% - 10vw); height: calc(100% - 12vh); }
  .bb-hero-panel { max-width: none; width: 100%; }
  .bb-hero-names { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* ---------- Passcode overlay ---------- */
.bb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(77, 55, 47, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
body.bb-locked { overflow: hidden; height: 100vh; }
.bb-overlay-card {
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--bb-radius);
  padding: 2.5rem 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
}
.bb-overlay-label { margin: 0 0 1rem; }
.bb-overlay-card input[type="text"] {
  width: 100%;
  padding: 0.7em 1em;
  margin-bottom: 1rem;
  border: 1px solid rgba(156, 113, 133, 0.4);
  border-radius: var(--bb-radius);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
}
.bb-error { color: #b3261e; margin: 0 0 1rem; }

/* ---------- Combined QR + message glass card (input_12 §5) ----------
   Lavender Romance's distinguishing treatment: whatever the guest's
   current state is (accept/decline, welcome-back, QR, expired) renders
   together with the invitation_message inside ONE bordered/rounded
   parchment-glass panel, styled after the mockup's "Dear [Guest]" card —
   rather than Botanical Bloom's two separate blocks. */
.bb-state-area {
  position: relative;
  max-width: 560px;
  margin: 3rem auto 1rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  background: rgba(255, 252, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--bb-radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(75, 46, 38, 0.13);
  overflow: hidden;
}
.bb-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.bb-banner {
  background: rgba(233, 221, 205, 0.6);
  border: 1px solid rgba(156, 113, 133, 0.3);
  border-radius: calc(var(--bb-radius) - 8px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.bb-qr { width: 180px; max-width: 100%; margin: 1rem auto; display: block; padding: 10px; background: var(--bb-ivory); border: 1px solid rgba(156, 113, 133, 0.3); border-radius: 12px; }

/* Message placeholder now lives inside .bb-state-area for this theme —
   still styled distinctly (italic, bordered-corner accents) so it reads
   as its own quoted note within the shared card. */
.bb-message-frame {
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(156, 113, 133, 0.25);
}
.bb-message-frame p { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem; }

/* ---------- Square button tiles ---------- */
.bb-tile-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 1.5rem auto 3rem;
  padding: 0 6vw;
  position: relative;
}
.bb-tile {
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(117, 80, 98, 0.4);
  border-radius: var(--bb-radius);
  background: rgba(255, 255, 255, 0.35);
  color: var(--bb-rose);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease;
}
.bb-tile:hover { background: var(--bb-rose); color: #fff; }

/* ---------- Itinerary / Contacts sections ---------- */
.bb-section {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 6vw;
  text-align: center;
  overflow: hidden;
}
.bb-section-motif { display: none; } /* replaced by .bb-motif-mark, injected via markup */
.bb-section h2 { position: relative; font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 2.4rem; color: var(--bb-rose); }
.bb-section ul { list-style: none; padding: 0; margin: 2rem 0 0; text-align: left; position: relative; }
.bb-section li {
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid rgba(156, 113, 133, 0.2);
  font-size: 1rem;
  position: relative;
}
.bb-section li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.35rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bb-rose-soft);
}
.bb-section li:last-child { border-bottom: none; }
.bb-section.bb-contacts { background: rgba(233, 221, 205, 0.4); border-radius: var(--bb-radius); }

/* ---------- Gallery / Cameos grids ---------- */
.bb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
  position: relative;
}
.bb-gallery-cell { position: relative; }
.bb-gallery-grid a { display: block; aspect-ratio: 1 / 1; border-radius: calc(var(--bb-radius) - 12px); overflow: hidden; border: 3px solid rgba(255, 253, 249, 0.7); }
.bb-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-gallery-download {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(77, 55, 47, 0.6);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1;
}
.bb-cameo-caption { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--bb-rose); text-align: center; font-weight: 700; }

/* =====================================================================
   Per-event admin page (shared markup — dashboard.ejs, assets.ejs —
   same class names as Botanical Bloom, values only differ here)
   input_20 Phase 4: structural/layout rules moved to
   public/assets/css/admin-shared.css, loaded before this file on the
   shared admin templates (edit-event.ejs, assets.ejs). Only this theme's
   own colors/fonts/backgrounds/borders/radii/shadows remain here.
   ===================================================================== */
.bb-admin {
  background: var(--bb-cream);
  color: var(--bb-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background-image: radial-gradient(circle at 92% 20%, rgba(178, 140, 160, 0.18), transparent 20%);
}
.bb-admin a { color: var(--bb-rose); }
.bb-admin h1 { font-family: 'Cormorant Garamond', serif; color: var(--bb-ink); font-weight: 600; font-size: 2.4rem; }
.bb-admin h2 { font-family: 'Cormorant Garamond', serif; color: var(--bb-ink); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 1.3rem; }

.bb-admin-header-inner {
  background: rgba(255, 250, 243, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(74, 48, 39, 0.08);
}
.bb-admin-header-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; color: var(--bb-ink); }
.bb-admin-nav a { color: var(--bb-ink); font-size: 0.8rem; font-weight: 600; border-radius: calc(var(--bb-radius) - 14px); }
.bb-admin-nav a:hover, .bb-admin-nav a.bb-admin-nav-active { color: var(--bb-rose); background: rgba(202, 181, 207, 0.35); }

.bb-admin-card, .bb-admin-tile {
  background: rgba(255, 251, 245, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(85, 55, 45, 0.06);
}

.bb-admin-photo-panel { background: var(--bb-cream-deep); }

.bb-details-grid label { font-size: 0.8rem; color: var(--bb-rose); font-weight: 700; }

.bb-admin-thumb { border-radius: calc(var(--bb-radius) - 10px); background: var(--bb-cream-deep); }

.bb-admin label { font-size: 0.9rem; }
.bb-admin input[type="text"], .bb-admin input[type="date"], .bb-admin input[type="email"],
.bb-admin input[type="password"], .bb-admin input[type="color"], .bb-admin input[type="file"],
.bb-admin textarea, .bb-admin select {
  border: 1px solid rgba(156, 113, 133, 0.4);
  border-radius: calc(var(--bb-radius) - 12px);
  background: #fff; color: var(--bb-ink);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
}
.bb-admin input[readonly] { background: var(--bb-cream-deep); }
.bb-admin th, .bb-admin td { border-bottom: 1px solid rgba(156, 113, 133, 0.15); }
.bb-admin th { color: var(--bb-rose); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; }
.bb-admin .bb-btn { border-radius: var(--bb-radius); font-size: 0.85rem; }
.bb-admin .bb-stats li { font-size: 0.95rem; }
.bb-admin .bb-stats strong { font-size: 1.7rem; color: var(--bb-rose); font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.bb-admin .bb-danger { border-color: rgba(117, 80, 98, 0.5); }
.bb-admin .bb-error { color: #b3261e; }

.bb-admin-gallery-item { border-radius: calc(var(--bb-radius) - 14px); }
.bb-admin-gallery-item button {
  background: rgba(77, 55, 47, 0.7); color: #fff; font-size: 0.9rem;
}
.bb-admin-gallery-caption { background: rgba(77, 55, 47, 0.6); color: #fff; font-size: 0.7rem; line-height: 1.2; }

/* =====================================================================
   Lavender Romance's OWN admin dashboard containers (input_13 Part A) —
   matches luxury-wedding-dashboard.html directly, not Botanical Bloom's
   square-tile grid. Only this theme uses these lr-* classes; the header
   above (.bb-admin-header etc.) is still shared markup.
   ===================================================================== */
.lr-topline { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.lr-intro { margin: 0; color: var(--bb-rose); font-size: 0.9rem; }
.lr-date-pill {
  padding: 13px 17px;
  border: 1px solid rgba(156, 113, 133, 0.32);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.52);
  color: var(--bb-rose);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.lr-dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lr-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--bb-radius);
  background: rgba(255, 251, 245, 0.62);
  box-shadow: 0 20px 55px rgba(85, 55, 45, 0.11), 0 4px 14px rgba(85, 55, 45, 0.05);
  backdrop-filter: blur(12px);
  padding: 25px;
}

.lr-profile { grid-column: span 2; display: flex; min-height: 258px; position: relative; }
.lr-profile-photo-wrap { align-self: center; position: relative; z-index: 1; flex: 0 0 138px; margin-right: 25px; }
.lr-profile-photo { width: 138px; height: 138px; display: block; object-fit: cover; border-radius: 50%; border: 5px solid rgba(255, 253, 249, 0.94); box-shadow: 0 0 0 2px var(--bb-lavender), 0 13px 26px rgba(104, 68, 72, 0.2); }
.lr-profile-photo-placeholder { background: var(--bb-cream-deep); }
.lr-monogram { position: absolute; right: -4px; bottom: 2px; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--bb-ivory); border-radius: 50%; background: var(--bb-rose); color: #fff; font: 600 20px 'Cormorant Garamond', serif; }
.lr-profile-content { z-index: 1; align-self: center; }
.lr-profile-content h2 { margin-bottom: 7px; font: 600 32px 'Cormorant Garamond', serif; letter-spacing: -0.02em; color: var(--bb-ink); }
.lr-profile-content > p { margin-bottom: 21px; color: var(--bb-rose-soft); font-size: 0.85rem; }
.lr-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lr-plain-btn { border: none; background: none; color: var(--bb-rose-soft); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.lr-plain-btn:hover { color: var(--bb-rose); }

.lr-hero-image { grid-column: span 2; position: relative; min-height: 258px; padding: 0; }
.lr-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.lr-hero-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(58, 39, 31, 0.5), rgba(58, 39, 31, 0.05)); }
.lr-hero-caption { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; color: #fff; }
.lr-hero-caption small { display: block; margin-bottom: 4px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.86; }
.lr-hero-caption strong { font: 600 1.4rem 'Cormorant Garamond', serif; }
.lr-round-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); color: #fff; text-decoration: none; }

.lr-stats { grid-column: span 4; }
.lr-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.lr-section-head h2 { margin: 0; font: 600 1.6rem 'Cormorant Garamond', serif; color: var(--bb-ink); }
.lr-section-head a { color: var(--bb-rose); font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.lr-bubble-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.lr-stat { min-height: 130px; display: flex; align-items: center; gap: 17px; padding: 16px; border-radius: calc(var(--bb-radius) - 10px); background: rgba(249, 244, 237, 0.62); }
.lr-bubble {
  flex: 0 0 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 24%, #fffafc, #eadde7 57%, #cfb4c3);
  color: var(--bb-rose);
  font: 600 1.7rem 'Cormorant Garamond', serif;
}
.lr-stat p { margin: 0 0 4px; color: var(--bb-ink); font-size: 0.85rem; font-weight: 700; }
.lr-stat span { display: block; color: var(--bb-rose-soft); font-size: 0.75rem; line-height: 1.4; }
.lr-stat span a { color: var(--bb-rose); }

.lr-itinerary { grid-column: span 2; }
.lr-timeline { display: grid; gap: 12px; margin-top: 1rem; }
.lr-event { padding: 0.6rem 0.9rem; border-radius: calc(var(--bb-radius) - 14px); background: rgba(233, 221, 205, 0.4); font-size: 0.9rem; }
.lr-event p { margin: 0; }

.lr-gallery { grid-column: span 2; }
.lr-gallery-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 11px; height: 200px; }
.lr-gallery-thumb { border-radius: calc(var(--bb-radius) - 12px); background-color: var(--bb-lavender); background-position: center; background-size: cover; }
.lr-gallery-main { grid-row: span 2; }

.lr-guests { grid-column: span 4; }
.lr-table-wrap { overflow: auto; border: 1px solid rgba(112, 78, 68, 0.09); border-radius: calc(var(--bb-radius) - 12px); background: rgba(255, 253, 249, 0.34); }
.lr-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.8rem; }
.lr-table-wrap th { padding: 13px 16px; text-align: left; color: var(--bb-rose-soft); background: rgba(230, 214, 196, 0.38); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lr-table-wrap td { padding: 15px 16px; border-top: 1px solid rgba(112, 78, 68, 0.08); color: var(--bb-ink); }
.lr-guest { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lr-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bb-lavender); color: var(--bb-rose); font-size: 0.7rem; font-weight: 700; }
.lr-code { color: var(--bb-rose); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.lr-status { color: #667958; font-size: 0.75rem; font-weight: 700; }
.lr-copy-code { padding: 7px 9px; border: 0; border-radius: 8px; color: var(--bb-rose); background: rgba(203, 184, 208, 0.24); font-size: 0.7rem; cursor: pointer; }
.lr-copy-code:hover { background: rgba(156, 113, 133, 0.28); }

@media (max-width: 1000px) {
  .lr-profile, .lr-hero-image, .lr-itinerary, .lr-gallery { grid-column: span 4; }
  .lr-bubble-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 690px) {
  .lr-profile { flex-direction: column; align-items: flex-start; }
  .lr-profile-photo-wrap { margin: 0 0 22px; }
  .lr-bubble-grid { grid-template-columns: 1fr; }
  .lr-gallery-grid { height: 220px; }
}
