/* ═══════════════════════════════════════════════════════════════
   DADDY NJOMO KEVIN — TRIBUTE APP STYLES
   Mobile-first · Gold & Navy · Production grade
═══════════════════════════════════════════════════════════════ */

:root {
  --navy:   #07162f;
  --navy2:  #0d2346;
  --gold:   #d8b25a;
  --gold2:  #f3d88a;
  --cream:  #fff7df;
  --ink:    #101522;
  --muted:  #677086;
  --card:   rgba(255,255,255,.88);
  --line:   rgba(216,178,90,.35);
  --shadow: 0 22px 70px rgba(4,12,26,.25);
  --r:      16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff3cb 0, #fffaf0 34%, #eef3ff 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── GLOW ── */
.site-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle at 80% 12%, rgba(216,178,90,.35), transparent 25%),
    radial-gradient(circle at 10% 50%, rgba(7,22,47,.12), transparent 28%);
}

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px clamp(14px, 4vw, 52px);
  background: rgba(255,250,237,.9); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),#fff1bb); box-shadow: 0 6px 20px rgba(216,178,90,.4); font-size: 20px; flex-shrink: 0; }
.brand strong { display: block; font-family: 'Playfair Display', serif; font-size: 17px; line-height: 1.1; }
.brand small  { display: block; font-size: 11px; color: var(--muted); }
nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 13px; }
nav a:hover { color: var(--gold); }
.nav-events-btn { font-size: 13px !important; padding: 7px 14px !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 13px 20px;
  font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: .18s transform, .18s box-shadow, .18s background;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg,var(--navy),#143567); color: #fff; box-shadow: 0 12px 28px rgba(7,22,47,.28); }
.btn.ghost   { background: rgba(255,255,255,.78); color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,1); }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px;
  align-items: center;
  padding: clamp(28px,6vw,80px) clamp(14px,5vw,70px);
}
.eyebrow { text-transform: uppercase; letter-spacing: .18em; color: #9b741f; font-weight: 900; font-size: 11px; margin-bottom: 10px; }
.hero h1, .section-heading h2, .thank-card h1, .login-card h1 {
  font-family: 'Playfair Display', serif; color: var(--navy);
  font-size: clamp(32px,6vw,68px); line-height: .96; margin: 12px 0;
}
.lead { font-size: clamp(16px,2.1vw,20px); line-height: 1.65; color: #293044; max-width: 680px; }

/* ── FLAG ROW ── */
.flag-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0;
}
.flag-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px; cursor: pointer;
  font-family: inherit; transition: all .18s; position: relative;
  min-width: 60px;
}
.flag-btn:hover { background: #fff; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216,178,90,.2); }
.flag-emoji { font-size: 24px; line-height: 1; }
.flag-label { font-size: 10px; font-weight: 700; color: var(--navy); text-align: center; }
.flag-tbd .flag-emoji { opacity: .55; }
.flag-tbd .flag-label { color: var(--muted); }
.flag-tbd-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #e0a000;
}

/* ── HERO ACTIONS ── */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.hero-actions.center { justify-content: center; }

/* ── EVENT CARD (compact) ── */
.event-card { display: grid; gap: 6px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 680px; }
.event-card span { font-weight: 700; font-size: 14px; }

/* ── HERO VISUAL ── */
.hero-visual { display: grid; place-items: center; gap: 12px; }
.portrait-frame {
  position: relative; padding: 12px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--gold), #fff4c8 40%, var(--navy));
  box-shadow: var(--shadow);
}
.portrait-frame img {
  display: block; width: min(400px, 76vw); height: 540px;
  object-fit: cover; object-position: top; border-radius: 30px;
}
.mic-badge {
  position: absolute; right: -18px; bottom: 30px;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#fff2bc,var(--gold));
  font-size: 40px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.hero-dates-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: rgba(255,255,255,.8);
  border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 600;
}
.hdb-sep { color: var(--gold); font-size: 18px; }

/* ── REQ ── */
.req { color: var(--gold); }

/* ── ALERTS ── */
.alert {
  max-width: 1100px; margin: 14px auto; padding: 13px 18px;
  border-radius: 16px; font-weight: 700; font-size: 15px;
}
.alert.success { background: #e9ffef; color: #0f6b2e; border: 1px solid #a0d8b0; }
.alert.error   { background: #ffe9e9; color: #8a1f1f; border: 1px solid #f5c0c0; }

/* ── SECTIONS ── */
.tribute-intro, .categories, .form-section {
  padding: 20px clamp(14px,5vw,70px);
}
.panel { max-width: 1180px; margin: auto; border-radius: 28px; padding: 26px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.gold-panel { background: linear-gradient(135deg,rgba(255,247,223,.96),rgba(255,255,255,.85)); }
.panel h2, .categories h2, .form-section h2 {
  font-family: 'Playfair Display', serif; color: var(--navy);
  font-size: clamp(26px,4vw,44px); margin: 0 0 10px;
}
.mini-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.mini-grid div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.mini-grid strong, .mini-grid span { display: block; }
.mini-grid span { color: var(--muted); margin-top: 4px; font-size: 13px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 20px; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading p { color: var(--muted); line-height: 1.7; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; max-width: 1180px; margin: auto; }
.category-grid article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.category-grid article span { font-size: 34px; }
.category-grid h3 { color: var(--navy); font-size: 20px; margin: 8px 0; }
.category-grid p  { color: var(--muted); line-height: 1.6; font-size: 14px; }

/* ── FORM ── */
.tribute-form {
  max-width: 960px; margin: auto;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(16px,4vw,34px);
  box-shadow: var(--shadow);
}
fieldset { border: 1px solid rgba(216,178,90,.35); border-radius: 20px; margin: 0 0 20px; padding: 18px; }
legend   { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--navy); padding: 0 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: #1b2437; }
input, textarea, select {
  width: 100%; border: 1.5px solid #d8deea; border-radius: 14px;
  padding: 12px 14px; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .18s, box-shadow .18s; outline: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,178,90,.18);
}
textarea  { resize: vertical; }
.field-note, .helper { color: var(--muted); font-size: 13px; line-height: 1.5; }
.check-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 8px; border: 1.5px solid #d8deea; border-radius: 14px; padding: 12px; background: #fff; cursor: pointer; transition: border-color .18s; font-weight: 600; font-size: 14px; }
.check-card:has(input:checked) { border-color: var(--gold); background: rgba(216,178,90,.08); }
.check-card input { width: auto; flex-shrink: 0; accent-color: var(--gold); }
.dropzone { border: 2px dashed var(--gold); border-radius: 20px; padding: 24px; text-align: center; background: #fffaf0; cursor: pointer; }
.dropzone input { display: none; }
.dropzone span  { font-size: 20px; color: var(--navy); display: block; font-weight: 700; }
.dropzone small { color: var(--muted); font-size: 13px; }
.dropzone:hover { background: #fff8e6; }
.file-list { display: grid; gap: 7px; margin: 10px 0; }
.file-pill { padding: 9px 12px; border-radius: 999px; background: #f3f6fb; color: #293044; font-weight: 600; font-size: 13px; }
.select-label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.consent input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.submit { width: 100%; font-size: 17px; border-radius: 16px; margin-top: 4px; padding: 16px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── THANK YOU / LOGIN ── */
.thankyou { min-height: 60vh; display: grid; place-items: center; padding: 48px 16px; }
.thank-card, .login-card {
  max-width: 720px; text-align: center;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 30px; padding: clamp(22px,6vw,52px); box-shadow: var(--shadow);
}
.big-icon { font-size: 60px; margin-bottom: 12px; }

/* ── FOOTER ── */
.footer {
  margin-top: 56px; padding: 28px clamp(14px,5vw,70px);
  display: grid; grid-template-columns: 1.5fr 2fr auto; gap: 28px; align-items: start;
  background: var(--navy); color: rgba(255,255,255,.75); font-size: 14px;
}
.footer strong { color: var(--gold2); }
.footer p { margin: 4px 0 0; line-height: 1.6; }
.footer-link { color: var(--gold); text-decoration: none; font-size: 13px; display: block; margin-top: 8px; }
.footer-link:hover { text-decoration: underline; }
.footer-events { display: flex; flex-direction: column; gap: 4px; }
.footer-event-item { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.7); }
.footer-events-btn { font-size: 12px !important; padding: 8px 16px !important; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ── ADMIN ── */
.admin-body { background: #f6f7fb; }
.admin-shell { max-width: 1200px; margin: auto; padding: 22px; }
.login-card { margin: 8vh auto; text-align: left; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-actions, .filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.filterbar input { flex: 1; min-width: 200px; }
.table-wrap { overflow: auto; background: #fff; border-radius: 20px; border: 1px solid #dde3ef; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px; border-bottom: 1px solid #edf0f6; text-align: left; font-size: 14px; }
.admin-table th { background: #0b1c39; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.admin-table small { display: block; color: var(--muted); margin-top: 2px; }
.status { padding: 4px 9px; border-radius: 999px; font-weight: 800; font-size: 11px; }
.status.pending  { background: #fff4d6; color: #7b5500; }
.status.approved { background: #e8fff0; color: #0b6a2d; }
.status.hidden   { background: #f1f1f1; color: #555; }
.admin-view { background: #fff; border-radius: 22px; padding: 22px; border: 1px solid #dde3ef; }
.message-box { white-space: pre-wrap; background: #fbfcff; border-left: 4px solid var(--gold); padding: 16px; border-radius: 10px; margin: 16px 0; line-height: 1.7; font-size: 15px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips span { background: #fff3cd; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: 13px; }
.inline-form { display: flex; gap: 8px; max-width: 400px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; }
.media-card { background: #fff; border: 1px solid #dde3ef; border-radius: 16px; padding: 10px; display: grid; gap: 7px; }
.media-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.file-icon { height: 140px; display: grid; place-items: center; font-size: 44px; background: #f3f6fb; border-radius: 10px; }

/* ══════════════════════════════════════════════════════════════
   WORLDWIDE EVENTS MODAL
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4,12,26,.82); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 12px 40px; overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--cream); border-radius: 28px;
  width: 100%; max-width: 960px;
  padding: clamp(20px,4vw,40px);
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }

.modal-close {
  position: absolute; top: 16px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(7,22,47,.08); color: var(--navy);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
  transition: background .15s;
}
.modal-close:hover { background: rgba(7,22,47,.15); }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-icon   { font-size: 44px; margin-bottom: 8px; }
.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px,4vw,36px); color: var(--navy); margin: 0 0 8px;
}
.modal-sub    { color: var(--muted); font-size: 15px; line-height: 1.6; }
.modal-sub strong { color: var(--navy); }
.modal-dates  { font-size: 13px; letter-spacing: .5px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.event-card-modal {
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 20px; padding: 18px;
  transition: box-shadow .18s, border-color .18s;
}
.event-card-modal:hover { box-shadow: 0 8px 32px rgba(7,22,47,.1); border-color: var(--gold); }
.event-tbd { opacity: .75; background: #f9f9f9; }

.event-card-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.event-flag   { font-size: 32px; line-height: 1; flex-shrink: 0; }
.event-country { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--navy); }
.event-type-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #9b741f; background: rgba(216,178,90,.18); border-radius: 6px; padding: 2px 7px; margin-top: 2px; display: inline-block; }
.confirmed-badge { margin-left: auto; font-size: 11px; font-weight: 800; color: #0b6a2d; background: #e8fff0; border-radius: 8px; padding: 3px 8px; flex-shrink: 0; }
.tbd-badge       { margin-left: auto; font-size: 11px; font-weight: 800; color: #7b5500; background: #fff4d6; border-radius: 8px; padding: 3px 8px; flex-shrink: 0; }
.tbd-msg { font-size: 14px; color: var(--muted); line-height: 1.6; }
.tbd-msg a { color: var(--gold); font-weight: 600; }

.event-detail-rows { display: flex; flex-direction: column; gap: 10px; }
.edr { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.edr-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.edr strong { font-weight: 700; color: var(--navy); }
.edr-sub { font-size: 13px; color: var(--muted); }

.edr-notes .edr-icon { margin-top: 3px; }
.edr-notes div { font-size: 13px; color: #3a4a2a; background: rgba(216,178,90,.1); border-radius: 10px; padding: 8px 10px; line-height: 1.65; }

.edr-rsvp { flex-direction: column; gap: 6px; }
.edr-rsvp > .edr-icon { display: none; }
.rsvp-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rsvp-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.rsvp-name  { font-weight: 600; color: var(--navy); }
.rsvp-phone { color: var(--gold); font-weight: 700; text-decoration: none; font-family: monospace; font-size: 13px; }
.rsvp-phone:hover { text-decoration: underline; }

.edr-map { margin-top: 6px; }
.map-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--navy); background: rgba(216,178,90,.15); border-radius: 8px; padding: 6px 12px; text-decoration: none; transition: background .15s; }
.map-link:hover { background: rgba(216,178,90,.3); }

.modal-footer-note {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 14px; color: var(--muted); line-height: 1.7;
}
.modal-footer-note strong { color: var(--navy); }
.modal-footer-note em { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: #7a6030; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 28px; }
  .hero-visual { order: -1; }
  .portrait-frame img { height: 400px; }
  .mini-grid, .category-grid, .check-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-meta { align-items: flex-start; }
  .events-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand strong { font-size: 15px; }
  nav { gap: 6px; }
  .hero h1 { font-size: 36px; }
  .portrait-frame img { width: 82vw; height: 360px; }
  .mic-badge { width: 64px; height: 64px; font-size: 30px; right: -8px; }
  .mini-grid, .category-grid, .check-grid { grid-template-columns: 1fr; }
  fieldset { padding: 13px; }
  .hero-actions .btn { width: 100%; }
  .flag-row { gap: 6px; }
  .flag-btn { min-width: 52px; padding: 6px 7px; }
  .flag-emoji { font-size: 20px; }
  .flag-label { font-size: 9px; }
  .admin-table { font-size: 12px; }
  .modal-box { padding: 18px 14px; }
}
