/* Wedify — landing, dashboard, invite (warm neutral palette) */
:root {
  --ink: #1f1a14;
  --muted: #5c534c;
  --cream: #faf7f2;
  --sand: #e8dfd3;
  --gold: #9a7342;
  --gold-soft: rgba(154, 115, 66, 0.2);
  --card: rgba(255, 252, 248, 0.94);
  --radius: 1rem;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -20%, #fff 0%, var(--cream) 45%, var(--sand) 100%);
  -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: var(--font-serif); }

.wedify-shell { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }

.wedify-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 1.5rem;
}

.wedify-logo { display: block; height: auto; /* width set inline from platform logo width setting */ }

.wedify-lang {
  display: inline-flex;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.wedify-lang a {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}
.wedify-lang a.is-active {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 600;
}

.wedify-hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.wedify-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.wedify-hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.wedify-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 2rem 0;
}

.wedify-card {
  background: var(--card);
  border: 1px solid rgba(31, 26, 20, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 12px 40px rgba(45, 36, 28, 0.06);
}
.wedify-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--gold);
}

.wedify-features .wedify-features-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.wedify-features-toggle {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.wedify-features-toggle:hover {
  color: var(--ink);
}

.wedify-features-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wedify-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-wedify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-wedify:active { transform: scale(0.98); }

.btn-wedify-gold {
  background: linear-gradient(135deg, #b8894a, var(--gold));
  color: #fff;
  box-shadow: 0 4px 18px rgba(154, 115, 66, 0.35);
}
.btn-wedify-gold:hover { filter: brightness(1.05); color: #fff; }

.btn-wedify-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(31, 26, 20, 0.15);
}
.btn-wedify-ghost:hover { background: var(--cream); color: var(--ink); }

.wedify-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
  color: var(--ink);
}
.wedify-form input, .wedify-form textarea, .wedify-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(31, 26, 20, 0.15);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}
.wedify-form textarea { min-height: 100px; resize: vertical; }

.wedify-foot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 26, 20, 0.08);
}

.wedify-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.wedify-alert.ok { background: #e8f5e9; color: #1b5e20; }
.wedify-alert.err { background: #ffebee; color: #b71c1c; }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; min-height: 100dvh; }
@media (max-width: 840px) {
  .dash-layout { grid-template-columns: 1fr; }
}
.dash-nav {
  background: #fff;
  border-right: 1px solid rgba(31, 26, 20, 0.08);
  padding: 1.25rem 1rem;
}
.dash-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.92rem;
}
.dash-nav a:hover, .dash-nav a.is-active { background: var(--gold-soft); }
.dash-main { padding: 1.25rem 1.5rem 2rem; max-width: 900px; }
.dash-main--wide { max-width: min(1200px, 100%); }
.dash-main h1 { font-family: var(--font-serif); font-size: 1.75rem; margin: 0 0 1rem; }

.table-simple { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-simple th, .table-simple td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(31, 26, 20, 0.08);
}
.table-simple code { font-size: 0.8rem; word-break: break-all; }

/* Invite page */
.page-invite {
  background: linear-gradient(180deg, #faf7f2 0%, #e5dcd0 100%);
}
.invite-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.invite-header h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0; }
.invite-section {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}
.invite-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(31, 26, 20, 0.08);
  margin-bottom: 1rem;
}
.invite-card h2 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 0.75rem; color: var(--gold); }
.map-embed { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: 0.5rem; }

.schedule-row { display: grid; grid-template-columns: 5rem 1fr; gap: 0.5rem 1rem; margin-bottom: 0.65rem; font-size: 0.95rem; }
.schedule-time { font-weight: 600; color: var(--gold); }

.honor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .honor-grid { grid-template-columns: 1fr; } }
.honor-list { margin: 0; padding-left: 1.1rem; color: var(--muted); }

/* Platform admin */
.platform-table-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Invitation requests — readable long messages (Greek/English) */
.platform-request-list { display: flex; flex-direction: column; gap: 1.25rem; }
.platform-request-card {
  background: var(--card);
  border: 1px solid rgba(31, 26, 20, 0.1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 28px rgba(45, 36, 28, 0.06);
}
.platform-request-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(31, 26, 20, 0.08);
  margin-bottom: 0.85rem;
}
.platform-request-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.35rem 1.5rem;
  font-size: 0.9rem;
  flex: 1;
  min-width: min(100%, 20rem);
}
.platform-request-card__meta dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.platform-request-card__meta dd {
  margin: 0 0 0.5rem;
  word-break: break-word;
}
.platform-request-card__status { flex-shrink: 0; }
.platform-request-card__message-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.platform-request-card__message {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* —— Landing only: soft romantic animated backdrop —— */
body.wedify-home {
  background: var(--cream);
}

body.wedify-home .wedify-shell {
  position: relative;
  z-index: 1;
}

.wedify-bg-romantic {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wedify-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 75% at 12% 18%, rgba(255, 228, 232, 0.65) 0%, transparent 58%),
    radial-gradient(ellipse 85% 70% at 92% 12%, rgba(255, 245, 230, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse 70% 85% at 78% 88%, rgba(235, 210, 195, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 40% 95%, rgba(255, 236, 240, 0.35) 0%, transparent 50%),
    linear-gradient(168deg, #fffefb 0%, var(--cream) 42%, #ebe0d4 100%);
  background-size: 140% 140%, 130% 130%, 120% 120%, 150% 150%, 100% 100%;
  animation: wedify-romantic-sky 36s ease-in-out infinite alternate;
}

@keyframes wedify-romantic-sky {
  0% {
    background-position: 0% 20%, 100% 10%, 90% 90%, 30% 100%, 0 0;
  }
  100% {
    background-position: 85% 60%, 15% 80%, 20% 30%, 70% 40%, 0 0;
  }
}

.wedify-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
  will-change: transform;
  animation: wedify-orb-drift 24s ease-in-out infinite;
}

.wedify-bg-orb--1 {
  width: min(58vw, 380px);
  height: min(58vw, 380px);
  top: -12%;
  left: -18%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 210, 218, 0.75), rgba(255, 200, 210, 0.2) 55%, transparent 72%);
  animation-duration: 28s;
  animation-delay: -4s;
}

.wedify-bg-orb--2 {
  width: min(48vw, 320px);
  height: min(48vw, 320px);
  bottom: -8%;
  right: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 236, 214, 0.7), rgba(232, 200, 175, 0.25) 50%, transparent 70%);
  animation-duration: 32s;
  animation-delay: -10s;
}

.wedify-bg-orb--3 {
  width: min(42vw, 260px);
  height: min(42vw, 260px);
  top: 38%;
  right: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(200, 165, 140, 0.35), rgba(154, 115, 66, 0.12) 45%, transparent 68%);
  opacity: 0.35;
  animation-duration: 22s;
  animation-delay: -2s;
}

@keyframes wedify-orb-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -36px) scale(1.06);
  }
  66% {
    transform: translate(-22px, 24px) scale(0.96);
  }
}

/* Falling petals (landing only) */
.wedify-petal {
  position: absolute;
  top: -10vh;
  z-index: 1;
  width: 11px;
  height: 16px;
  border-radius: 50% 50% 42% 42% / 68% 68% 32% 32%;
  background: linear-gradient(148deg, #fce8ec 0%, #e8aeb8 42%, #c47a84 100%);
  box-shadow: 0 1px 2px rgba(45, 36, 28, 0.08);
  opacity: 0;
  pointer-events: none;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes wedify-petal-fall-r {
  0% {
    transform: translateY(0) translateX(0) rotate(-12deg);
    opacity: 0;
  }
  5% {
    opacity: 0.52;
  }
  28% {
    transform: translateY(32vh) translateX(20px) rotate(52deg);
  }
  52% {
    transform: translateY(56vh) translateX(-6px) rotate(130deg);
  }
  76% {
    transform: translateY(82vh) translateX(26px) rotate(210deg);
  }
  95% {
    opacity: 0.48;
  }
  100% {
    transform: translateY(115vh) translateX(10px) rotate(300deg);
    opacity: 0;
  }
}

@keyframes wedify-petal-fall-l {
  0% {
    transform: translateY(0) translateX(0) rotate(10deg);
    opacity: 0;
  }
  5% {
    opacity: 0.5;
  }
  28% {
    transform: translateY(30vh) translateX(-18px) rotate(-48deg);
  }
  52% {
    transform: translateY(54vh) translateX(10px) rotate(-125deg);
  }
  76% {
    transform: translateY(80vh) translateX(-24px) rotate(-205deg);
  }
  95% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(115vh) translateX(-8px) rotate(-295deg);
    opacity: 0;
  }
}

.wedify-petal--1 {
  left: 8%;
  animation: wedify-petal-fall-r 20s linear infinite;
  animation-delay: 0s;
}

.wedify-petal--2 {
  left: 22%;
  width: 9px;
  height: 14px;
  animation: wedify-petal-fall-l 24s linear infinite;
  animation-delay: -9s;
}

.wedify-petal--3 {
  left: 38%;
  animation: wedify-petal-fall-r 17s linear infinite;
  animation-delay: -4s;
}

.wedify-petal--4 {
  left: 52%;
  width: 10px;
  height: 15px;
  animation: wedify-petal-fall-l 22s linear infinite;
  animation-delay: -14s;
}

.wedify-petal--5 {
  left: 66%;
  animation: wedify-petal-fall-r 26s linear infinite;
  animation-delay: -11s;
}

.wedify-petal--6 {
  left: 78%;
  width: 8px;
  height: 12px;
  animation: wedify-petal-fall-l 19s linear infinite;
  animation-delay: -2s;
}

.wedify-petal--7 {
  left: 91%;
  animation: wedify-petal-fall-r 21s linear infinite;
  animation-delay: -16s;
}

@media (prefers-reduced-motion: reduce) {
  .wedify-bg-gradient {
    animation: none;
    background-position: 0% 30%, 100% 20%, 80% 85%, 50% 100%, 0 0;
  }

  .wedify-bg-orb {
    animation: none;
    opacity: 0.22;
  }

  .wedify-petal {
    display: none;
  }
}
