/* ─────────────────────────────────────────────
   Reset & Base
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-primary:   #1F4E39;
  --brand-secondary: #0B231A;
  --brand-light:     #e8f0ec;
  --cohort1-bg:      #fef3c7;
  --cohort1-text:    #92400e;
  --cohort1-border:  #fcd34d;
  --cohort2-bg:      #d1fae5;
  --cohort2-text:    #065f46;
  --cohort2-border:  #6ee7b7;
  --gray-50:         #f9fafb;
  --gray-100:        #f3f4f6;
  --gray-200:        #e5e7eb;
  --gray-400:        #9ca3af;
  --gray-500:        #6b7280;
  --gray-700:        #374151;
  --gray-900:        #111827;
  --card-shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --card-hover:      0 4px 12px rgba(0,0,0,.12), 0 12px 32px rgba(0,0,0,.10);
  --radius:          14px;
  --transition:      .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────
   Header
───────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-900);
}

.header-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: .02em;
}

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  padding: 64px 0 56px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   Placement Stats
───────────────────────────────────────────── */
.stats-section {
  background: var(--brand-secondary);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-green  { color: #6ee7b7; }
.stat-purple { color: #a78bfa; }
.stat-orange { color: #fb923c; }
.stat-blue   { color: #60a5fa; }

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

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

/* ─────────────────────────────────────────────
   Controls
───────────────────────────────────────────── */
.controls {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 90;
}

.controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31,78,57,.15);
  background: #fff;
}

.filters-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Pill: [Label | Value ▾] */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
  padding: 0 10px 0 14px;
  height: 38px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.filter-pill:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31,78,57,.15);
  background: #fff;
}

.filter-pill.active {
  border-color: var(--brand-primary);
  background: #f0faf5;
}

.filter-pill-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  pointer-events: none;
}

.filter-pill.active .filter-pill-label {
  color: var(--brand-primary);
}

.filter-pill-divider {
  width: 1px;
  height: 14px;
  background: var(--gray-200);
  margin: 0 9px;
  flex-shrink: 0;
}

.filter-select {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  outline: none;
  padding: 0;
  min-width: 36px;
}

.filter-pill.active .filter-select {
  color: var(--brand-primary);
  font-weight: 600;
}

.filter-chevron {
  width: 12px;
  height: 12px;
  color: var(--gray-400);
  margin-left: 5px;
  flex-shrink: 0;
  pointer-events: none;
  transition: color var(--transition);
}

.filter-pill.active .filter-chevron {
  color: var(--brand-primary);
}

/* ─────────────────────────────────────────────
   Main / Grid
───────────────────────────────────────────── */
main.container {
  padding-top: 36px;
  padding-bottom: 64px;
}

.result-count {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ─────────────────────────────────────────────
   Alumni Card
───────────────────────────────────────────── */
.alumni-card {
  background: #0B231A;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,.08);
}

.alumni-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover);
}

/* LinkedIn button — top-right corner */
.linkedin-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #0a66c2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.linkedin-btn:hover {
  background: #004182;
  transform: scale(1.08);
}

.linkedin-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Avatar / initials */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #6ee7b7;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Name */
.alumni-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  padding-right: 44px; /* don't overlap LinkedIn btn */
  line-height: 1.3;
}

/* Role */
.alumni-role {
  font-size: 14px;
  font-weight: 500;
  color: #6ee7b7;
}

/* Company */
.alumni-company {
  font-size: 13px;
  color: var(--cohort1-bg);
  display: flex;
  align-items: center;
  gap: 5px;
}

.company-icon {
  width: 13px;
  height: 13px;
  opacity: .55;
  flex-shrink: 0;
}

/* Tags row — always pinned to bottom */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.cohort-tag,
.stage-tag,
.exp-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  border-width: 1px;
  border-style: solid;
}

.exp-tag {
  background: rgba(167,139,250,.12);
  color: #a78bfa;
  border-color: rgba(167,139,250,.3);
}

.stage-tag {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.15);
}

.cohort-tag.cohort-1 {
  background: var(--cohort2-bg);
  color: var(--cohort2-text);
  border-color: var(--cohort2-border);
}

.cohort-tag.cohort-2 {
  background: var(--cohort2-bg);
  color: var(--cohort2-text);
  border-color: var(--cohort2-border);
}

/* ─────────────────────────────────────────────
   Skeleton loading
───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton-card {
  background: #0B231A;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
}

.skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.06) 25%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.06) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    rgba(255,255,255,.06) 25%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.06) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────
   Empty / No results
───────────────────────────────────────────── */
.no-results {
  text-align: center;
  color: var(--gray-500);
  font-size: 15px;
  padding: 60px 0;
}

.hidden { display: none !important; }

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  text-align: center;
  padding: 28px 0;
  font-size: 13px;
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 1300px) {
  .alumni-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
  .alumni-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .controls-inner { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
  .filters-wrap { width: 100%; }
  .filter-pill { flex: 1; justify-content: space-between; }
  .hero { padding: 44px 0 36px; }
}

@media (max-width: 480px) {
  .alumni-grid { grid-template-columns: 1fr; }
}
