/* ============================================================
   EventPA — assets/style.css
   Companion to Bootstrap 4.6 (loaded first). Bootstrap owns forms,
   tables, buttons, cards and grid; this file owns the EventPA
   identity: brand header, category chips, calendar skin, event
   modal, directory cards.
   Display: Sora / Body: Public Sans
   ============================================================ */

:root {
  --ink:        #1e2430;
  --ink-soft:   #5b6470;
  --ground:     #f2f4f8;
  --line:       #dde2ea;
  --radius:     10px;
}

html { background: var(--ground); }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, sans-serif;
  font-size: 15px;
  /* sticky footer: page fills the viewport, footer sits at the bottom
     with no white void beneath it on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .container-fluid { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
h1, h2, h3, .h1, .h2, .h3 { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
h1 { font-weight: 700; font-size: 26px; margin: 8px 0 18px; }
.subtitle { color: var(--ink-soft); margin-top: -12px; margin-bottom: 20px; }

/* ---- brand header (on top of .navbar) ----------------------- */
.eventpa-nav {
  background: linear-gradient(120deg, #12161f 0%, #1e2430 55%, #232a3d 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #D9486B, #7C4DBE, #2C8C99) 1;
}
.eventpa-nav .brand { display: flex; align-items: center; gap: 12px; }
.eventpa-nav .logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.eventpa-nav .wordmark {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 29px;
  letter-spacing: -0.03em; color: #fff;
}
.eventpa-nav .wordmark em {
  font-style: normal;
  background: linear-gradient(100deg, #ff7d9e, #b78aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eventpa-nav .wordmark .tld {
  font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0;
}
.eventpa-nav .strap {
  color: #8fa3c8; font-size: 12.5px; letter-spacing: .04em;
  border-left: 1px solid #3a4356; padding-left: 12px;
}
.eventpa-nav .nav-link { color: #c6cede !important; }
.eventpa-nav .nav-link:hover, .eventpa-nav .nav-link.active { color: #fff !important; }

/* ---- category legend chips (filter) ------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--cat, var(--line));
  color: var(--ink); background: #fff;
  border-radius: 999px; padding: 4px 12px; font-size: 13px;
  cursor: pointer; user-select: none;
  transition: background .12s, color .12s;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat, var(--ink-soft)); }
.chip.on { background: var(--cat); color: #fff; border-color: var(--cat); }
.chip.on .dot { background: #fff; }
.chip .count { opacity: .65; font-size: 12px; }
.chip.all { --cat: #1e2430; font-weight: 600; }

/* ---- calendar ------------------------------------------------ */
.cal-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.fc { font-size: 13.5px; }
.fc .fc-toolbar-title { font-family: 'Sora', sans-serif; font-size: 19px; }
.fc .fc-button { background: var(--ink); border: none; text-transform: capitalize; }
.fc .fc-button:hover { background: #343d52; }
.fc .fc-button-active { background: #4a5a7d; }
.fc .fc-daygrid-day.fc-day-today { background: #eef2fb; }
.fc-event { border-width: 1.5px; border-style: solid; border-radius: 5px; padding: 2px 5px; cursor: pointer; }
/* phase43: pills wear EXACTLY the "Looking further ahead" font —
   13.5px, regular weight, single tidy line (hover shows the rest) */
.fc-event .fc-event-title,
.fc-event .fc-event-time {
  font-size: 13.5px; font-weight: 400; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* the event hover card (phase43) */
#evTip { position: absolute; z-index: 1080; display: none; width: 320px;
  max-width: 80vw; background: #1e2430; color: #fff; border-radius: 10px;
  padding: 11px 13px; font-size: 13px; line-height: 1.5; pointer-events: none;
  box-shadow: 0 10px 26px rgba(20,24,33,.38); }
#evTip .t { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
#evTip .m { color: #b7c3da; font-size: 12.5px; }
#evTip .d { margin-top: 5px; color: #dbe3f2; }
#evTip .lbl { color: #8996ad; }
.fc-event.ev-cancelled .fc-event-title { text-decoration: line-through; }
.fc .fc-daygrid-more-link { font-weight: 600; color: #4a5a7d; }
.fc .fc-popover { max-height: 420px; overflow-y: auto; z-index: 1050; }

/* thumbs-up quick-accept (List views + "+N more" popover) */
.thumb-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-size: 12px; line-height: 1; padding: 2px 6px; margin-left: 8px;
  cursor: pointer; vertical-align: middle;
}
.thumb-btn:hover { background: #e5f4ea; border-color: #bfe3cc; }
/* in the popover, pin the thumb to the right edge so it never wraps */
.fc .fc-popover .fc-event { position: relative; padding-right: 34px; }
.fc .fc-popover .thumb-btn {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  margin-left: 0; float: none;
}

/* ✕ remove-from-picks (My picks view) — pinned to the event's right edge */
.pick-x {
  border: 1px solid var(--line); background: #fff; color: #b02a37;
  border-radius: 6px; font-size: 11px; line-height: 1; padding: 2px 5px;
  cursor: pointer;
}
.pick-x:hover { background: #fbeaec; border-color: #e8b3ba; }
.fc-daygrid-event.has-ev-ctl { position: relative; padding-right: 30px; }
/* phase44: the month-grid 👍 wears EXACTLY the board's chip — same
   offset, same size, no max-width crop */
.fc-daygrid-event.has-ev-ctl .pick-x,
.fc-daygrid-event.has-ev-ctl .thumb-btn {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  margin-left: 0;
}
.fc-list-event .pick-x, .fc-list-event .thumb-btn { float: right; margin-left: 8px; }

/* per-day "Day list" link (top-left of each date box) */
.day-list-link {
  margin-right: auto;           /* day-top is row-reverse: auto = far left */
  font-size: 10.5px; padding: 2px 4px; color: #4a5a7d;
  text-decoration: none;
}
.day-list-link:hover { text-decoration: underline; color: var(--ink); }

/* 12-month lookahead board: month containers sit flush (no gaps) */
#monthBoard .row { margin-left: 0; margin-right: 0; }
#monthBoard [class*="col-"] { padding: 0; margin-bottom: 0 !important; }
#monthBoard .card { border-radius: 0; margin: 0 -1px -1px 0; }

/* 12-month lookahead board — pills replicate calendar event blocks */
.board-ev {
  display: block; background: #fff; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 5px;
  padding: 1px 5px; margin-bottom: 3px;
  font-size: 12.5px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
a.board-ev:hover { background: #f2f4f8; color: var(--ink); text-decoration: none; }
.board-ev.ev-cancelled { border-color: #c9ced8; color: #8a2a20; }
.board-ev.ev-cancelled b { text-decoration: line-through; }
.board-day { color: var(--ink-soft); font-size: 11px; }
/* phase48: the board 👍 wears the month grid's micro-chip exactly */
.board-ev.has-thumb { position: relative; padding-right: 24px; }
.board-ev .board-thumb {
  position: absolute; right: 1px; top: 50%; transform: translateY(-50%);
  margin-left: 0; font-size: 11px; padding: 0 3px;
}
.board-monthlist { color: #4a5a7d; }
.fc-more-like {
  display: inline-block; font-weight: 600; font-size: 12.5px;
  color: #4a5a7d; margin-top: 2px; text-decoration: none;
}
.fc-more-like:hover { text-decoration: underline; color: var(--ink); }

/* search results — FullCalendar List lookalike */
.slist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slist .sday {
  background: #eef1f6; font-weight: 600; padding: 7px 14px;
  border-top: 1px solid var(--line); font-size: 13.5px;
}
.slist .sday:first-child { border-top: none; }
.slist .srow {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px; border-top: 1px solid var(--ground);
  font-size: 13.5px;
}
.slist .srow:hover { background: #f7f9fc; }
.slist .stime { width: 64px; color: var(--ink-soft); white-space: nowrap; }
.slist .stitle { flex: 1; min-width: 0; }
.slist .svenue { color: var(--ink-soft); font-size: 12.5px; }

/* ---- event modal --------------------------------------------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(30,36,48,.55);
  display: none; align-items: center; justify-content: center; z-index: 1060;
}
.modal-back.show { display: flex; }
.ep-modal {
  background: #fff; border-radius: var(--radius);
  width: min(520px, 92vw); overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.ep-modal .banner { height: 8px; background: var(--cat, var(--ink)); }
.ep-modal img.hero { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.ep-modal .body { padding: 18px 22px 22px; }
.ep-modal h2 { font-size: 20px; margin: 0 0 4px; }
.ep-modal .meta { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 10px; }
.ep-modal .desc { font-size: 14px; }
.ep-modal .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---- directory ------------------------------------------------ */
.dir-group h2 {
  font-size: 17px; margin: 26px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.dir-group h2 .dot { width: 11px; height: 11px; border-radius: 50%; }
.dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.dir-card h3 { margin: 0 0 4px; font-size: 15px; }
.dir-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.dir-card .tag {
  font-size: 11.5px; background: var(--ground); border-radius: 5px;
  padding: 2px 7px; color: var(--ink-soft); margin-right: 6px;
}
.dir-foot { display: flex; justify-content: space-between; align-items: center; }


/* ---- site footer (EventPA take on the FundManager pattern) ----------- */
.site-footer {
  background: linear-gradient(120deg, #12161f 0%, #1e2430 55%, #232a3d 100%);
  color: #c6cede;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #D9486B, #7C4DBE, #2C8C99) 1;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem; padding: 2.2rem 0 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { flex: 1; min-width: 250px; }
.footer-logo {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.45rem;
  color: #fff; letter-spacing: -0.03em; margin-bottom: .4rem;
}
.footer-logo em {
  font-style: normal;
  background: linear-gradient(100deg, #ff7d9e, #b78aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-logo .tld { font-size: .95rem; font-weight: 600; color: #fff; }
.footer-tagline { color: #8fa3c8; font-size: .9rem; margin: 0; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links-group h6 {
  color: #fff; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: .7rem; font-weight: 600;
}
.footer-links-group a {
  display: block; color: #8fa3c8; text-decoration: none;
  font-size: .9rem; padding: .22rem 0; transition: color .15s ease;
}
.footer-links-group a:hover { color: #ff7d9e; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; padding: 1.1rem 0; font-size: .8rem;
}
.footer-copyright, .footer-disclaimer { color: #6b7890; }
.footer-disclaimer { font-style: italic; }
@media (max-width: 768px) {
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* legal pages */
.legal h1 { margin-bottom: 4px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 22px; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 14.5px; }


/* Profiles dropdown in the navbar */
.profiles-nav .dropdown-menu { font-size: 14px; min-width: 190px; }
.profiles-nav .dropdown-item { padding: .35rem 1.1rem; }
.profiles-nav .dropdown-item:hover { background: #f2f4f8; }

/* board pills mirror calendar source colouring */
/* phase48b: researched board pills wear the calendar pill border
   exactly — same 1.5px weight, same ink colour */
.board-ev.src-res { border: 1.5px solid #1e2430; }
.board-ev.src-skiddle { background: #2F7FBF; border-color: #2F7FBF; color: #fff; }
.board-ev.src-tm      { background: #3E8E5A; border-color: #3E8E5A; color: #fff; }
.board-ev.src-skiddle .board-day, .board-ev.src-tm .board-day { color: rgba(255,255,255,.75); }
.board-ev.src-skiddle b, .board-ev.src-tm b { color: #fff; }
a.board-ev.src-skiddle:hover, a.board-ev.src-tm:hover { color: #fff; }

/* per-sub interest chips on Preferences (phase19) */
.sub-pick { display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 7px;
  font-size: 12.5px; cursor: pointer; background: #fff; user-select: none; }
.sub-pick:hover { border-color: #9aa4b2; }
.sub-pick input { margin: 0; }
.sub-pick input:checked + span { font-weight: 600; }
tr.sub-row td { border-top: 0; }

/* social share strip (index) */
.share-strip { display: flex; align-items: center; gap: 7px; margin: 2px 0 10px; }
.share-strip .lbl { font-size: 12px; color: var(--ink-soft); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 50%;
  border: 1.5px solid var(--sc); color: var(--sc);
  font-size: 12px; font-weight: 700; text-decoration: none; background: #fff;
  transition: all .12s;
}
.share-btn:hover { background: var(--sc); color: #fff; text-decoration: none; }

/* admin-only dropdown items (phase27) */
.dropdown-item.dd-admin { color: #7C4DBE; font-weight: 600; }
.dropdown-item.dd-admin:hover { color: #fff; background: #7C4DBE; }

/* ---- phase28 ---- */
/* Clr chip: quiet outline pill that clears every filter */
.chip.clr {
  background: #fff; border: 1px solid #c33; color: #c33; font-weight: 700;
}
.chip.clr:hover { background: #c33; color: #fff; }

/* View buttons (Everything / Recommendations / My picks / Map):
   Bootstrap's outline-dark hover uses a dark bg — but our .btn-dark
   active state made hover-on-active flip to white text on white.
   Force readable states both ways. */
.btn-group .btn-outline-dark:hover { background: #212529; color: #fff; }
.btn-group .btn-dark:hover { background: #000; color: #fff; }

/* Rightmost calendar days: the 👍/✕ control could poke past the grid's
   right edge and get clipped. Keep controls inside the cell. */
.fc-daygrid-event.has-ev-ctl { overflow: hidden; }
.fc .fc-daygrid-day-frame { overflow: hidden; }

/* board ✕ sits where the 👍 sits */
.board-ev .board-x { margin-left: 6px; }


/* ---- phase29b ---- */
/* board red ✕ pinned to the pill's right edge */
.board-ev .board-x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  margin-left: 0;
}

/* ---- phase29c ---- */
/* day number always readable above event pills */
.fc .fc-daygrid-day-top { position: relative; z-index: 3; }
.fc .fc-daygrid-day-number {
  background: rgba(255,255,255,.9); border-radius: 4px; padding: 0 4px;
  font-weight: 600;
}
/* pick controls: compact, pinned inside the cell, above everything */
.fc-daygrid-event.has-ev-ctl .pick-x,
.fc-daygrid-event.has-ev-ctl .thumb-btn {
  right: 1px; z-index: 4; font-size: 11px; padding: 0 3px; max-width: 20px;
}
.fc-daygrid-event.has-ev-ctl { padding-right: 24px; }

/* phase29e: small screens are list-only — hide the Month toolbar button */
@media (max-width: 767.98px) {
  .fc .fc-dayGridMonth-button { display: none; }
}

/* phase29h: keep pills, controls and the day number off the grid's right border */
.fc .fc-daygrid-day-frame { padding-right: 5px; }
.fc .fc-daygrid-day-number { margin-right: 2px; }

/* phase30: right-edge clipping, belt & braces — inset the event
   harnesses and the events container themselves, not just the frame */
.fc .fc-daygrid-day-events { margin-right: 6px; }
.fc .fc-daygrid-event-harness { margin-right: 2px; }
.fc .fc-daygrid-day-top { padding-right: 6px; }
.fc-daygrid-event.has-ev-ctl { padding-right: 26px; }

/* ---- phase38: auth pages (login / register) ---- */
.auth-wrap { max-width: 880px; margin: 12px auto 30px; }
.auth-card { display: flex; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(20, 24, 33, .14); background: #fff; }
.auth-brand { flex: 1 1 46%; color: #fff; padding: 38px 34px;
  background: radial-gradient(120% 140% at 15% 10%, #35415c 0%, #1e2430 58%, #171c26 100%);
  display: flex; flex-direction: column; justify-content: center; position: relative; }
.auth-brand::after { content: '✦'; position: absolute; top: 18px; right: 22px;
  color: #e94f64; font-size: 22px; opacity: .9; }
.auth-brand img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 18px; }
.auth-brand h2 { font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 26px; letter-spacing: -.5px; margin-bottom: 8px; }
.auth-brand h2 span { color: #e94f64; }
.auth-tag { color: #b7c3da; font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }
.auth-points { list-style: none; padding: 0; margin: 0; }
.auth-points li { color: #dbe3f2; font-size: 13.5px; padding: 5px 0; }
.auth-points li b { color: #fff; }
.auth-form { flex: 1 1 54%; padding: 38px 34px; }
.auth-form h1 { font-size: 24px; margin: 0 0 4px; }
.auth-sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 18px; }
.auth-form .btn-dark { padding: 9px; font-weight: 600; border-radius: 8px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; }
@media (max-width: 767.98px) {
  .auth-card { flex-direction: column; }
  .auth-brand { padding: 26px 24px; }
  .auth-form { padding: 26px 24px; }
}
