/* ============================================================
   NYU ALUMNI STORIES — HOMEPAGE STYLES
   ============================================================ */

/* HERO ---------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--nyu-violet-deep) 0%, var(--nyu-black) 55%, #1A0830 100%);
  color: var(--nyu-white);
  padding: var(--space-24) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(87,6,140,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(138,0,225,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: 'NYU';
  position: absolute;
  right: -0.05em;
  top: -0.15em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(12rem, 22vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(87,6,140,0.25);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,140,255,0.85);
  margin-bottom: var(--space-5);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--nyu-white);
}

.hero h1 em {
  font-style: italic;
  color: #C084E8;
}

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: var(--space-10);
}

/* STATS */
.hero-stats {
  display: flex;
  gap: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #C084E8;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* SEARCH & FILTER ----------------------------------------- */

.filter-bar {
  background: var(--nyu-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 57px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

#search-input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}

#search-input:focus {
  border-color: var(--nyu-violet);
  box-shadow: 0 0 0 3px rgba(87,6,140,0.12);
}

#search-input::placeholder { color: var(--text-muted); }

.filter-select {
  height: 42px;
  padding: 0 2rem 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238B7BA0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.filter-select:focus { border-color: var(--nyu-violet); }

#results-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 400;
}

/* FEATURED SECTION ---------------------------------------- */

.section-featured {
  padding: var(--space-16) 0 var(--space-10);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: var(--text-sm);
  color: var(--nyu-violet);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-link:hover { color: var(--nyu-violet-dark); }

/* FEATURED CARDS */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.card-featured {
  background: var(--nyu-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.card-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-featured a {
  display: contents;
}

.card-featured-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--nyu-violet-tint), var(--border));
}

.card-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.card-featured:hover .card-featured-img img {
  transform: scale(1.04);
}

.card-featured-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.card-school-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nyu-violet);
  background: var(--nyu-violet-tint);
  border-radius: var(--radius-full);
  padding: 0.2em 0.7em;
  align-self: flex-start;
}

.card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.card-name a {
  display: inline;
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

.card-name a:hover { color: var(--nyu-violet); }

.card-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
}

/* ALL ALUMNI SECTION -------------------------------------- */

.section-all {
  padding: var(--space-6) 0 var(--space-24);
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* LIST CARD */
.card-list {
  background: var(--nyu-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
}

.card-list:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-list-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--nyu-violet-tint);
  border: 2px solid var(--border);
}

.card-list-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.card-list-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-list-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-list-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* EMPTY STATE */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) 0;
  color: var(--text-muted);
}

.empty-state p:first-child {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

/* FOOTER -------------------------------------------------- */

.footer {
  background: var(--nyu-black);
  color: rgba(255,255,255,0.5);
  padding: var(--space-12) 0;
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--nyu-white);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--nyu-white); }

/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-featured,
.card-list {
  animation: fadeUp 0.4s var(--ease) both;
}
