/* 4Kids Africa — Volunteer Platform UI layer
   Matches the site palette: deep forest green + warm cream, serif display
   (Cormorant Garamond) headings and Manrope body. All classes are fk- prefixed
   so nothing collides with the compiled React app. */

:root {
  --fk-green: #1a3b2a;
  --fk-green-2: #24503a;
  --fk-gold: #c8a15a;
  --fk-cream: #faf8f5;
  --fk-cream-2: #f0ece4;
  --fk-ink: #21332a;
  --fk-line: rgba(26, 59, 42, 0.14);
  --fk-shadow: 0 24px 70px rgba(17, 40, 28, 0.35);
  --fk-radius: 14px;
  --fk-font: "Manrope", system-ui, sans-serif;
  --fk-serif: "Cormorant Garamond", Georgia, serif;
}

/* ---------- header social + account cluster ---------- */
.fk-header-cluster {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
}
.fk-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fk-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.fk-social a:hover {
  transform: translateY(-2px);
  background: var(--fk-gold);
  border-color: var(--fk-gold);
  color: #1a3b2a;
}
.fk-social svg { width: 18px; height: 18px; display: block; }

/* Prominent gold social icons inside the hero (always high-contrast). */
.fk-hero-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 34px auto 0;
  position: relative;
  z-index: 5;
}
.fk-social-hero a {
  width: 54px;
  height: 54px;
  background: var(--fk-gold);
  border: 2px solid var(--fk-gold);
  color: #1a3b2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.fk-social-hero a:hover { background: var(--fk-cream); border-color: var(--fk-cream); color: var(--fk-green); }
.fk-social-hero svg { width: 25px; height: 25px; }

.fk-portal-btn {
  font-family: var(--fk-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.fk-portal-btn:hover { transform: translateY(-2px); background: var(--fk-gold); border-color: var(--fk-gold); color: #1a3b2a; }
.fk-portal-btn.fk-solid { background: var(--fk-gold); border-color: var(--fk-gold); color: #1a3b2a; }

/* ---------- overlay + modal ---------- */
.fk-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(12, 28, 20, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
  font-family: var(--fk-font);
  color: var(--fk-ink);
}
.fk-overlay.fk-in { opacity: 1; }
.fk-overlay * { box-sizing: border-box; }

.fk-modal {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: auto;
  background: var(--fk-cream);
  border-radius: var(--fk-radius);
  box-shadow: var(--fk-shadow);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s ease;
  border-top: 4px solid var(--fk-gold);
}
.fk-overlay.fk-in .fk-modal { transform: translateY(0) scale(1); }
.fk-modal.fk-wide { max-width: 960px; }

.fk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 6px;
}
.fk-modal-head h2 {
  font-family: var(--fk-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
  color: var(--fk-green);
}
.fk-close {
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--fk-green);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.fk-close:hover { background: var(--fk-cream-2); }
.fk-modal-body { padding: 10px 26px 26px; }
.fk-sub { color: rgba(33, 51, 42, 0.7); font-size: 14px; margin: 2px 0 18px; }

/* ---------- tabs ---------- */
.fk-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 26px 0; border-bottom: 1px solid var(--fk-line); }
.fk-tab {
  font-family: var(--fk-font);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: rgba(33, 51, 42, 0.6);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.fk-tab.fk-active { color: var(--fk-green); border-bottom-color: var(--fk-gold); }
.fk-tab:hover { color: var(--fk-green); }

/* ---------- forms ---------- */
.fk-field { margin-bottom: 14px; }
.fk-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(33, 51, 42, 0.65);
  margin-bottom: 6px;
}
.fk-input, .fk-textarea, .fk-select {
  width: 100%;
  font-family: var(--fk-font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--fk-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fk-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fk-input:focus, .fk-textarea:focus, .fk-select:focus {
  outline: none;
  border-color: var(--fk-gold);
  box-shadow: 0 0 0 3px rgba(200, 161, 90, 0.22);
}
.fk-textarea { min-height: 92px; resize: vertical; }
.fk-row { display: flex; gap: 12px; }
.fk-row > * { flex: 1; }

.fk-btn {
  font-family: var(--fk-font);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--fk-green);
  background: var(--fk-green);
  color: var(--fk-cream);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.fk-btn:hover { transform: translateY(-2px); background: var(--fk-green-2); }
.fk-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.fk-btn.fk-block { width: 100%; }
.fk-btn.fk-gold { background: var(--fk-gold); border-color: var(--fk-gold); color: #1a3b2a; }
.fk-btn.fk-ghost { background: transparent; color: var(--fk-green); }
.fk-btn.fk-danger { background: #b23b3b; border-color: #b23b3b; color: #fff; }
.fk-btn.fk-sm { font-size: 13px; padding: 8px 14px; }

.fk-switch { text-align: center; margin-top: 16px; font-size: 14px; color: rgba(33, 51, 42, 0.7); }
.fk-switch button { background: none; border: 0; color: var(--fk-green); font-weight: 700; cursor: pointer; text-decoration: underline; }

.fk-error { background: #fcecec; color: #9a2b2b; border: 1px solid #eabcbc; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.fk-ok { background: #e7f2ea; color: #1f5a38; border: 1px solid #bcdcc7; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }

/* ---------- lists / cards ---------- */
.fk-list { display: flex; flex-direction: column; gap: 12px; }
.fk-card {
  background: #fff;
  border: 1px solid var(--fk-line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.fk-card h4 { font-family: var(--fk-serif); font-size: 21px; margin: 0 0 4px; color: var(--fk-green); font-weight: 600; }
.fk-card p { margin: 0 0 6px; font-size: 14px; color: rgba(33, 51, 42, 0.8); }
.fk-meta { font-size: 12.5px; color: rgba(33, 51, 42, 0.6); display: flex; flex-wrap: wrap; gap: 10px 16px; }
.fk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fk-card-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.fk-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--fk-cream-2); color: var(--fk-green); }
.fk-badge.fk-joined { background: var(--fk-green); color: var(--fk-cream); }
.fk-badge.fk-admin { background: var(--fk-gold); color: #1a3b2a; }

.fk-empty { text-align: center; padding: 40px 10px; color: rgba(33, 51, 42, 0.55); font-size: 15px; }
.fk-loading { text-align: center; padding: 30px; color: rgba(33, 51, 42, 0.6); }

.fk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fk-toolbar h3 { font-family: var(--fk-serif); font-size: 24px; margin: 0; color: var(--fk-green); font-weight: 600; }

.fk-hint { font-size: 13px; color: rgba(33,51,42,0.6); margin-top: 4px; }

/* segmented filter (All / My events) */
.fk-seg { display: inline-flex; background: var(--fk-cream-2); border-radius: 999px; padding: 3px; }
.fk-seg-btn {
  font-family: var(--fk-font);
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 15px;
  border: 0;
  background: transparent;
  color: rgba(33, 51, 42, 0.65);
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fk-seg-btn.fk-active { background: var(--fk-green); color: var(--fk-cream); }
.fk-seg-btn:hover:not(.fk-active) { color: var(--fk-green); }

/* stat cards (admin overview) */
.fk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fk-stat {
  background: var(--fk-green);
  color: var(--fk-cream);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  border-bottom: 4px solid var(--fk-gold);
}
.fk-stat-num { font-family: var(--fk-serif); font-size: 44px; font-weight: 600; line-height: 1; }
.fk-stat-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; margin-top: 8px; }

/* event gallery */
.fk-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fk-gallery-item { position: relative; border-radius: 12px; overflow: hidden; background: #11221a; aspect-ratio: 1 / 1; border: 1px solid var(--fk-line); }
.fk-gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; transition: transform 0.3s ease; }
.fk-gallery-item:hover img { transform: scale(1.05); }
.fk-photo-del {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 999px;
  border: 0; background: rgba(178, 59, 59, 0.92); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.fk-gallery-item:hover .fk-photo-del { opacity: 1; }

@media (max-width: 640px) {
  .fk-stats { grid-template-columns: repeat(2, 1fr); }
}

/* event calendar */
.fk-cal { border: 1px solid var(--fk-line); border-radius: 14px; overflow: hidden; background: #fff; }
.fk-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--fk-cream-2); }
.fk-cal-head strong { font-family: var(--fk-serif); font-size: 22px; color: var(--fk-green); text-transform: capitalize; }
.fk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.fk-cal-dow { background: var(--fk-green); }
.fk-cal-dowcell { padding: 8px 6px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fk-cream); }
.fk-cal-cell { min-height: 92px; border-right: 1px solid var(--fk-line); border-bottom: 1px solid var(--fk-line); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.fk-cal-cell:nth-child(7n) { border-right: 0; }
.fk-cal-empty { background: repeating-linear-gradient(45deg, #fbfaf7, #fbfaf7 6px, #f4f1ea 6px, #f4f1ea 12px); }
.fk-cal-today { background: rgba(200, 161, 90, 0.12); }
.fk-cal-daynum { font-size: 12px; font-weight: 700; color: rgba(33, 51, 42, 0.55); }
.fk-cal-today .fk-cal-daynum { color: var(--fk-green); }
.fk-cal-chip {
  font-family: var(--fk-font);
  font-size: 11.5px; font-weight: 600;
  text-align: left; width: 100%;
  padding: 4px 7px; border: 0; border-radius: 6px;
  background: var(--fk-green); color: var(--fk-cream);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.fk-cal-chip:hover { transform: translateY(-1px); background: var(--fk-green-2); }
.fk-cal-chip.fk-joined { background: var(--fk-gold); color: #1a3b2a; }

/* Handbook PDF links are hidden immediately (no flash) — surfaced via Q&A only. */
a[href*="volunteer-handbook"] { display: none !important; }
/* Built-in React "Volunteer Q&A" teaser items hidden instantly (replaced by our full Q&A). */
[data-testid^="faq-"] { display: none !important; }

/* Handbook Q&A (accordion) */
.fk-faq-cat { font-family: var(--fk-serif); font-size: 22px; color: var(--fk-green); font-weight: 600; margin: 20px 0 8px; }
.fk-faq-cat:first-child { margin-top: 0; }
.fk-faq-item { border: 1px solid var(--fk-line); border-radius: 10px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.fk-faq-q {
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  font-family: var(--fk-font); font-weight: 600; font-size: 15px; color: var(--fk-ink);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fk-faq-q:hover { color: var(--fk-green); }
.fk-faq-ic { font-size: 20px; color: var(--fk-gold); transition: transform 0.2s ease; flex-shrink: 0; }
.fk-faq-item.fk-open .fk-faq-ic { transform: rotate(45deg); }
.fk-faq-a {
  max-height: 0; overflow: hidden; padding: 0 16px;
  font-size: 14.5px; line-height: 1.6; color: rgba(33, 51, 42, 0.85);
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.fk-faq-item.fk-open .fk-faq-a { max-height: 600px; padding: 0 16px 16px; }

@media (max-width: 640px) {
  .fk-cal-cell { min-height: 64px; }
  .fk-cal-chip { font-size: 0; padding: 5px; }
  .fk-cal-chip::before { content: "•"; font-size: 16px; }
}

/* file preview */
.fk-preview { width: 100%; height: min(70vh, 640px); border: 1px solid var(--fk-line); border-radius: 10px; background: #fff; }
.fk-preview-img { width: 100%; max-height: min(70vh, 640px); object-fit: contain; border-radius: 10px; background: #11221a; }

/* toast */
.fk-toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100001; display: flex; flex-direction: column; gap: 8px; }
.fk-toast { font-family: var(--fk-font); background: var(--fk-green); color: var(--fk-cream); padding: 12px 20px; border-radius: 999px; box-shadow: var(--fk-shadow); font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.fk-toast.fk-in { opacity: 1; transform: translateY(0); }
.fk-toast.fk-err { background: #b23b3b; }

/* donorbox modal */
.fk-donorbox { max-width: 560px; }
.fk-donorbox iframe { width: 100%; min-height: 680px; border: 0; border-radius: 10px; background: var(--fk-cream); }

@media (max-width: 640px) {
  .fk-modal-head h2 { font-size: 25px; }
  .fk-row { flex-direction: column; }
  .fk-card { flex-direction: column; }
  .fk-card-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .fk-header-cluster { gap: 8px; margin-left: 8px; }
}
