/* =============================================================
   KasieFM – Team Detail Page  (teamDetail.css)
   Page-specific only; shared tokens/utilities live in main.css
   ============================================================= */

/* ── Page wrapper ──────────────────────────────────────────── */
.td-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-margin-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .td-page {
    padding-left: var(--space-margin-desktop);
    padding-right: var(--space-margin-desktop);
  }
}

/* ── Bento card ────────────────────────────────────────────── */
.bento-card {
  background: var(--color-surface-container);
  border: 1px solid var(--color-surface-container-highest);
  border-radius: 12px;
  padding: var(--space-md);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.bento-card:hover {
  background: var(--color-surface-container-high);
  border-color: var(--color-urban-yellow);
  transform: translateY(-2px);
}

/* ── Live pulse (ON AIR dot) ───────────────────────────────── */
.active-pulse {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.5; transform: scale(1.1); }
}

/* ── Hero ──────────────────────────────────────────────────── */
.td-hero {
  border-radius: 12px;
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  overflow: hidden;
}

.td-hero__flex {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .td-hero__flex { flex-direction: row; }
}

/* Portrait column */
.td-hero__portrait {
  position: relative;
  height: 400px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .td-hero__portrait {
    width: 40%;
    height: 600px;
  }
}
.td-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-hero__portrait-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-background), transparent 60%);
}
@media (min-width: 1024px) {
  .td-hero__portrait-grad {
    background: linear-gradient(to right, transparent 60%, var(--color-surface-container-low));
  }
}

/* ON AIR badge */
.td-live-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.td-live-badge__dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Info column */
.td-hero__info {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}
.td-hero__tag {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-urban-yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.td-hero__name {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--color-on-surface);
  margin: 0 0 4px;
}
@media (max-width: 640px) {
  .td-hero__name { font-size: 36px; line-height: 44px; }
}
.td-hero__subtitle {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}
.td-hero__bio {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-on-surface-variant);
  max-width: 640px;
  margin: 0;
}
.td-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}
.td-hero__socials {
  display: flex;
  gap: var(--space-sm);
}
.td-hero__social-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid var(--color-outline-variant);
  background: none;
  color: var(--color-on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.td-hero__social-btn:hover {
  background: var(--color-urban-yellow);
  color: #000;
  border-color: var(--color-urban-yellow);
}

/* Yellow CTA button */
.td-btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-urban-yellow);
  color: #000;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.td-btn-yellow:hover  { transform: scale(1.05); }
.td-btn-yellow:active { transform: scale(0.95); }

/* ── Section header with accent bar ───────────────────────── */
.td-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.td-section-header__bar {
  width: 8px;
  height: 32px;
  background: var(--color-urban-yellow);
  border-radius: 9999px;
  flex-shrink: 0;
}
.td-section-header h2,
.td-section-header h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-on-surface);
}

/* ── Main content grid ─────────────────────────────────────── */
.td-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gutter);
  align-items: start;
}
@media (min-width: 1024px) {
  .td-content-grid {
    grid-template-columns: 1fr 360px;
  }
}

.td-main-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ── 2-col sub-grid (schedule + podcasts) ──────────────────── */
.td-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gutter);
}
@media (min-width: 640px) {
  .td-two-col { grid-template-columns: 1fr 1fr; }
}

/* ── Schedule items ────────────────────────────────────────── */
.td-schedule-item {
  background: var(--color-surface-container-high);
  padding: var(--space-sm);
  border-radius: 8px;
  margin-bottom: var(--space-sm);
}
.td-schedule-item:last-child { margin-bottom: 0; }
.td-schedule-item--yellow { border-left: 4px solid var(--color-urban-yellow); }
.td-schedule-item--blue   { border-left: 4px solid var(--color-primary); }
.td-schedule-item__label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.td-schedule-item__label--yellow { color: var(--color-urban-yellow); }
.td-schedule-item__label--blue   { color: var(--color-primary); }
.td-schedule-item__show {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-on-surface);
  margin: 0 0 2px;
  font-size: 16px;
}
.td-schedule-item__time {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  margin: 0;
}

/* ── Podcast list ──────────────────────────────────────────── */
.td-podcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.td-podcast-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.td-podcast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--color-on-surface);
  font-family: var(--font-body);
}
.td-podcast-item:hover { background: var(--color-surface-variant); }
.td-podcast-item:hover .td-podcast-item__title { color: var(--color-urban-yellow); }
.td-podcast-item__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 2px;
  transition: color 0.2s;
  color: var(--color-on-surface);
}
.td-podcast-item__meta {
  font-size: 12px;
  color: var(--color-on-surface-variant);
  margin: 0;
}
.td-podcast-divider {
  height: 1px;
  background: var(--color-outline-variant);
  margin: 2px 0;
}

/* ── Shoutouts ─────────────────────────────────────────────── */
.td-shoutouts-wrap {
  position: relative;
  overflow: hidden;
}
.td-shoutouts-quote-bg {
  position: absolute;
  top: 0;
  right: 0;
  padding: var(--space-lg);
  opacity: 0.1;
  font-size: 120px;
  line-height: 1;
  pointer-events: none;
  font-family: var(--font-display);
  color: var(--color-on-surface);
  select: none;
}
.td-shoutouts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 640px) {
  .td-shoutouts-grid { grid-template-columns: 1fr 1fr; }
}
.td-shoutout {
  background: var(--color-surface-container-highest);
  padding: var(--space-sm);
  border-radius: 8px;
  border: 1px solid var(--color-outline-variant);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}
.td-shoutout__author {
  font-weight: 700;
  font-style: normal;
  color: var(--color-primary);
  margin-top: 8px;
  font-size: 14px;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.td-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-gutter);
  padding-left: var(--space-md);
  border-left: 1px solid rgba(67, 70, 86, 0.3);
}

/* Presenter of the Month card */
.td-potm-card {
  background: var(--color-surface-container);
  border-radius: 12px;
  border: 1px solid var(--color-outline-variant);
  overflow: hidden;
}
.td-potm-card__header {
  background: var(--color-urban-yellow);
  color: #000;
  padding: 8px var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}
.td-potm-card__body {
  padding: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.td-avatar {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  border: 4px solid var(--color-urban-yellow);
  overflow: hidden;
  flex-shrink: 0;
}
.td-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-potm-name {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-on-surface);
  margin: 0;
}
.td-potm-role {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  margin: 0;
}
.td-btn-outline-yellow {
  width: 100%;
  padding: 8px;
  background: rgba(255, 235, 59, 0.1);
  border: 1px solid rgba(255, 235, 59, 0.2);
  color: var(--color-urban-yellow);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.td-btn-outline-yellow:hover  { background: var(--color-urban-yellow); color: #000; }
.td-btn-outline-yellow:active { transform: scale(0.95); }

/* Top story card */
.td-story-card {
  background: var(--color-surface-container);
  border-radius: 12px;
  border: 1px solid var(--color-outline-variant);
  padding: var(--space-md);
}
.td-story-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.td-story-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  margin-bottom: var(--space-md);
}
.td-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.td-story-img:hover img { transform: scale(1.07); }
.td-story-img__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}
.td-story-img__caption {
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin: 0;
  font-size: 14px;
}

/* Upcoming shows */
.td-upcoming-card {
  background: var(--color-surface-container);
  border-radius: 12px;
  border: 1px solid var(--color-outline-variant);
  padding: var(--space-md);
}
.td-upcoming-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.td-upcoming-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.td-upcoming-item:hover { background: var(--color-surface-variant); }
.td-upcoming-item:hover .td-upcoming-item__name { color: var(--color-urban-yellow); }
.td-upcoming-item__time {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.td-upcoming-item__time--primary {
  background: rgba(182, 196, 255, 0.2);
  color: var(--color-primary);
}
.td-upcoming-item__time--muted {
  background: var(--color-surface-container-highest);
  color: var(--color-on-surface);
}
.td-upcoming-item__name {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 2px;
  color: var(--color-on-surface);
  transition: color 0.2s;
}
.td-upcoming-item__host {
  font-size: 12px;
  color: var(--color-on-surface-variant);
  margin: 0;
}

/* Sidebar CTA buttons */
.td-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.td-cta-primary {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  border-radius: 12px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(182, 196, 255, 0.2);
  transition: box-shadow 0.2s;
}
.td-cta-primary:hover { box-shadow: 0 4px 32px rgba(182, 196, 255, 0.4); }

/* =================================================================
   TEAM DETAIL — Responsive Overrides
   ================================================================= */
@media (max-width: 767px) {
  .td-page {
    padding-left: var(--space-margin-mobile);
    padding-right: var(--space-margin-mobile);
  }
  /* Hero — push name smaller than the 640px breakpoint's 36px */
  .td-hero__name     { font-size: 28px; line-height: 36px; }
  .td-hero__subtitle { font-size: 18px; }
  .td-hero__bio      { font-size: 15px; line-height: 24px; }
  .td-hero__info     { padding: var(--space-md); }
  .td-btn-yellow     { font-size: 15px; padding: 10px var(--space-md); }

  /* Section headings */
  .td-section-header h2,
  .td-section-header h3 { font-size: 18px; }
}
