/* public_html/assets/css/ui.css */

:root{
  --bg0:#f3f6ff;
  --bg1:#eef6f1;
  --panel: rgba(255,255,255,.78);
  --border: rgba(20,30,40,.08);
  --shadow: 0 18px 45px rgba(12, 18, 28, .10);

  --text:#0f172a;
  --muted:#64748b;

  --wa:#25D366;
  --wa2:#20c35d;
  --waDark:#1aa84f;

  --radius2: 22px;
}

html, body{ height:100%; }
body{
  color: var(--text);
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 60%, #f5f7ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: #2563eb; }
a:hover{ color:#1d4ed8; }

.app-bg{ min-height:100vh; }

/* Nav */
.nav-lite{
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-lite .container{ min-height:64px; }

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  padding: 10px 0;
}
.brand:hover{ color: var(--text); }

.brand-logo{
  width:70px;
  height:40px;
  object-fit:contain;
  display:block;
}
.brand-name{
  font-weight:700;
  letter-spacing:-0.01em;
}

/* Hero */
.hero{ padding-top: 14px; }
.hero-title{
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0;
  font-size: clamp(34px, 6.6vw, 56px);
  line-height: 1.02;
}
.hero-sub{
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* Panels */
.panel{
  border-radius: var(--radius2);
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.shadow-soft{ box-shadow: var(--shadow); }
.panel-inner{ padding: 16px; }
@media (min-width: 768px){ .panel-inner{ padding: 22px; } }

/* Input */
.input-wrap{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20,30,40,.10);
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.input-chip{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(20,30,40,.10);
  background: rgba(255,255,255,.80);
  flex: 0 0 auto;
}
.input-main{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100%;
  font-size: 16px;
  padding: 0 !important;
}
.input-main::placeholder{ color: rgba(100,116,139,.85); }

.panel-actions{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

/* Buttons */
.btn{
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.btn-lg{ padding: 12px 16px; }

.btn-wa-solid{
  border: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa2) 100%);
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(37,211,102,.20);
}
.btn-wa-solid:hover{
  background: linear-gradient(180deg, var(--wa2) 0%, var(--waDark) 100%);
  color:#fff !important;
}
.btn-wa-solid:active{ transform: translateY(1px); }

.btn-wa-outline{
  border: 1px solid rgba(37,211,102,.45);
  background: rgba(255,255,255,.74);
  color: #0f172a;
}
.btn-wa-outline:hover{
  border-color: rgba(37,211,102,.65);
  background: rgba(255,255,255,.88);
}

.btn-ghost{
  border: 1px solid rgba(20,30,40,.12);
  background: rgba(255,255,255,.66);
  color: var(--text);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.86);
  border-color: rgba(20,30,40,.16);
}

.btn-ghost-dark{
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.62);
  color: var(--text);
}
.btn-ghost-dark:hover{
  background: rgba(255,255,255,.86);
  border-color: rgba(15,23,42,.22);
}

.btn.is-loading{
  position: relative;
  pointer-events: none;
  opacity: .92;
}
.btn.is-loading::after{
  content:"";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.65);
  border-top-color: rgba(255,255,255,1);
  display:inline-block;
  margin-left: 10px;
  vertical-align: -3px;
  animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg);} }

/* Trust line */
.trust-line{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.trust-spark{
  display:inline-flex;
  width: 22px;
  height: 22px;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(20,30,40,.10);
}

/* Callouts */
.callout{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20,30,40,.10);
  background: rgba(255,255,255,.72);
}
.callout-title{
  font-weight: 800;
  letter-spacing: -0.01em;
}
.callout-sub{
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.callout-wa{
  border-color: rgba(37,211,102,.24);
  background: rgba(37,211,102,.07);
}
.callout code{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(20,30,40,.10);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
}

/* RSVP polish */
.btn-success, .btn-warning, .btn-danger{ border-radius: 16px; }
.btn-success{
  background: rgba(37,211,102,.14);
  border-color: rgba(37,211,102,.30);
  color: var(--text);
}
.btn-success:hover{
  background: rgba(37,211,102,.20);
  border-color: rgba(37,211,102,.38);
  color: var(--text);
}
.btn-warning{
  background: rgba(250,204,21,.18);
  border-color: rgba(250,204,21,.30);
  color: var(--text);
}
.btn-warning:hover{
  background: rgba(250,204,21,.24);
  border-color: rgba(250,204,21,.40);
  color: var(--text);
}
.btn-danger{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.30);
  color: var(--text);
}
.btn-danger:hover{
  background: rgba(239,68,68,.20);
  border-color: rgba(239,68,68,.38);
  color: var(--text);
}

/* ✅ Selected state */
[data-rsvp-link="1"].is-selected{
  box-shadow: 0 14px 26px rgba(15,23,42,.12);
  transform: translateY(-1px);
  border-width: 2px !important;
}
[data-rsvp-link="1"].is-selected.btn-success{ border-color: rgba(37,211,102,.55) !important; }
[data-rsvp-link="1"].is-selected.btn-warning{ border-color: rgba(250,204,21,.55) !important; }
[data-rsvp-link="1"].is-selected.btn-danger{ border-color: rgba(239,68,68,.55) !important; }

.rsvp-selected-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(20,30,40,.10);
  font-size: 13px;
}

/* ✅ Filter chips */
.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.chip{
  border: 1px solid rgba(20,30,40,.12);
  background: rgba(255,255,255,.70);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
}
.chip:hover{
  background: rgba(255,255,255,.88);
  border-color: rgba(20,30,40,.16);
}
.chip.is-active{
  border-color: rgba(37,211,102,.35);
  background: rgba(37,211,102,.08);
}
.chip .chip-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(20,30,40,.10);
  background: rgba(255,255,255,.85);
  font-weight: 800;
  font-size: 12px;
}

/* Details labels */
.meta-line{
  color: var(--muted);
  font-size: 14px;
}

/* Footer links with visible pipe */
.footer-links{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.footer-links .pipe{
  color: rgba(100,116,139,.9);
}

/* General tweaks */
.badge{ border-radius: 999px; }
.text-muted{ color: var(--muted) !important; }
.border-top{ border-top-color: rgba(20,30,40,.08) !important; }
.border-bottom{ border-bottom-color: rgba(20,30,40,.08) !important; }
.alert{ border-radius: 16px; }

/* Toasts */
.toast-host{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 1080;
  display:flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 768px){
  .toast-host{
    left: auto;
    right: 18px;
    bottom: 18px;
    width: 340px;
  }
}
.toast-lite{
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  background: rgba(15,23,42,.90);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  font-size: 13px;
}
.toast-lite.is-in{
  opacity: 1;
  transform: translateY(0);
}
.toast-lite.is-ok{ background: rgba(16, 120, 70, .92); }
.toast-lite.is-bad{ background: rgba(160, 35, 35, .92); }