/* ==============================================
   alumni.css — styles for alumni.html
   Shared styles (nav, footer, vars) are in shared.css
   ============================================== */

/* ---------- PAGE HEADER ---------- */
.page-header { background: var(--purple); color: white; padding: 70px 0 0; position: relative; margin-bottom: -4px; }
.page-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.eyebrow { color: #a7e6bb; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.page-header h1 { color: white; font-size: clamp(34px, 5vw, 50px); max-width: 640px; margin-bottom: 14px; }
.page-header p { color: #e2d4f2; font-size: 17px; max-width: 560px; margin-bottom: 40px; }
.ragged { display: block; width: 100%; height: 60px; margin-top: -1px; }

/* ---------- SEARCH BAR ---------- */
.search-bar-wrap {
  margin-top: -4px;
  background: var(--white);
  border-bottom: 1px solid rgba(98,52,146,0.1);
  padding: 20px 0;
  position: sticky;
  top: 73px;
  z-index: 50;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream-deep);
  border: 1.5px solid rgba(98,52,146,0.15);
  border-radius: 100px;
  padding: 12px 20px;
  transition: border-color 0.15s;
}
.search-bar:focus-within { border-color: var(--purple); }
.search-icon { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  outline: none;
}
.search-bar input::placeholder { color: var(--ink-soft); }
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 0 4px;
  display: none;
  line-height: 1;
}
.search-clear:hover { color: var(--purple); }

/* ---------- SEARCH RESULTS ---------- */
.search-results-wrap { background: var(--cream); padding: 40px 0 60px; }
.search-results-header { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- YEAR TABS ---------- */
.alumni-body { background: var(--cream); padding: 50px 0 80px; }

.year-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(98,52,146,0.1);
}

.year-tab {
  background: var(--cream-deep);
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Fraunces', serif;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.year-tab:hover { border-color: var(--purple); color: var(--purple); }
.year-tab.active { background: var(--purple); color: white; border-color: var(--purple); }
.year-tab.active .tab-count { background: rgba(255,255,255,0.2); color: white; }

.tab-count {
  background: rgba(98,52,146,0.1);
  color: var(--purple);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ---------- YEAR PANELS ---------- */
.year-panel { display: none; }
.year-panel.active { display: block; }

/* ---------- MONTH SECTIONS ---------- */
.month-section {
  margin-bottom: 44px;
}

.month-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.month-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.month-count {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--cream-deep);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---------- NAME CLOUD ---------- */
.name-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.name-pill {
  background: var(--white);
  border: 1.5px solid rgba(98,52,146,0.14);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.name-pill:hover {
  background: var(--purple-light);
  border-color: var(--purple);
  color: var(--purple);
}
.name-pill::after {
  content: '📷';
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.name-pill:hover::after { opacity: 1; }
.pill-num  { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.pill-date { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.name-pill:hover .pill-date,
.name-pill:hover .pill-num { color: rgba(98,52,146,0.7); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43,26,61,0.75);
  backdrop-filter: blur(4px);
}

.lightbox-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.lightbox.open .lightbox-card { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(0,0,0,0.65); }

.lightbox-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--purple-light);
  position: relative;
}
.lightbox-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--purple);
  background: var(--purple-light);
}

.lightbox-info {
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(98,52,146,0.08);
}
.lightbox-name {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.lightbox-date { font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.lightbox-adoption-num { font-size: 12px; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.lightbox-actions {
  display: flex;
  gap: 8px;
  padding: 14px 22px 20px;
  flex-wrap: wrap;
}
.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.lb-btn svg { width: 14px; height: 14px; }

.lb-btn-share {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.lb-btn-share:hover { background: #125a2d; }

.lb-btn-download {
  background: var(--cream-deep);
  color: var(--ink-soft);
  border-color: rgba(98,52,146,0.15);
}
.lb-btn-download:hover { border-color: var(--purple); color: var(--purple); }

.lb-btn-ig {
  background: white;
  color: var(--purple);
  border-color: rgba(98,52,146,0.2);
}
.lb-btn-ig:hover { background: var(--purple-light); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .search-bar-wrap { top: 65px; }
  .year-tabs { gap: 8px; }
  .year-tab { font-size: 14px; padding: 8px 16px; }
  .lightbox-card { max-width: 360px; }
  .lightbox-actions { gap: 6px; }
  .lb-btn { font-size: 12px; padding: 8px 12px; }
}

/* ==============================================
   MOBILE STYLES — max-width: 640px
   ============================================== */
@media (max-width: 640px) {

  /* ---------- PAGE HEADER ---------- */
  .page-header { padding: 48px 0 0; }
  .page-header h1 { font-size: clamp(26px, 7vw, 38px); }
  .page-header p { font-size: 15px; }

  /* ---------- SEARCH BAR ---------- */
  .search-bar-wrap { top: 62px; padding: 14px 0; }
  .search-bar { padding: 10px 16px; }
  .search-bar input { font-size: 14px; }

  /* ---------- ALUMNI BODY ---------- */
  .alumni-body { padding: 32px 0 60px; }

  /* ---------- YEAR TABS ---------- */
  .year-tabs { gap: 8px; margin-bottom: 28px; padding-bottom: 16px; }
  .year-tab { font-size: 13px; padding: 8px 14px; gap: 6px; }
  .tab-count { font-size: 11px; padding: 2px 6px; }

  /* ---------- MONTH SECTIONS ---------- */
  .month-section { margin-bottom: 32px; }
  .month-name { font-size: 17px; }

  /* ---------- NAME PILLS ---------- */
  .name-cloud { gap: 6px; }
  .name-pill { font-size: 13px; padding: 6px 13px; gap: 5px; }
  .pill-num, .pill-date { font-size: 11px; }

  /* ---------- LIGHTBOX ---------- */
  .lightbox { padding: 12px; }
  .lightbox-card { max-width: 100%; border-radius: 18px; }
  .lightbox-name { font-size: 22px; }
  .lightbox-info { padding: 16px 18px 12px; }
  .lightbox-actions { padding: 12px 18px 18px; gap: 8px; }
  .lb-btn { font-size: 12px; padding: 8px 14px; }

}
