/* ============================================================
   TVReviewer.com — Craft & Below-the-Line Awards
   Shared stylesheet for crew/ section pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-lt:    #e8d08a;
  --dark:       #0c1018;
  --dark-mid:   #141b26;
  --navy:       #0a1628;
  --text:       #edf2f7;
  --muted:      #9ab0c4;
  --accent:     #a8cddd;
  --border:     rgba(201,168,76,.18);
  --winner-bg:  rgba(201,168,76,.10);
  --winner-bdr: rgba(201,168,76,.50);
  --max-w:      1120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOP NAV ──────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,16,24,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .65rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.top-nav .site-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .82rem;
  color: var(--accent);
  font-style: italic;
  margin-right: .5rem;
  white-space: nowrap;
}
.top-nav .site-link em { color: var(--gold); }
.top-nav a {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.top-nav a:hover, .top-nav a.active { color: var(--gold); }
.top-nav .sep {
  color: var(--border);
  font-size: .7rem;
  flex-shrink: 0;
}
.theme-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  color: var(--muted);
  padding: .25em .55em;
  font-size: .75rem;
  line-height: 1;
  transition: color .2s, border-color .2s;
  display: flex;
  align-items: center;
  gap: .3em;
  white-space: nowrap;
  font-family: inherit;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }

/* ── PAGE HERO ────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--dark-mid) 60%, var(--dark) 100%);
}
.page-hero::before, .page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 24px);
  opacity: .28;
  z-index: 1;
}
.page-hero::before { top: 0; }
.page-hero::after  { bottom: 0; }
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-eyebrow {
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.page-title em { color: var(--gold); font-style: italic; }
.page-lead {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  max-width: 66ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.dept-tag {
  display: inline-block;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .3em .9em;
  background: rgba(168,205,221,.07);
  border: 1px solid rgba(168,205,221,.18);
  color: var(--accent);
  transition: all .2s;
}
.dept-tag:hover { background: rgba(201,168,76,.12); border-color: var(--gold); color: var(--gold); }

/* ── SHARED LAYOUT ────────────────────────────────────── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}
.section-block { margin-bottom: 4.5rem; }

.section-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.section-rule::before, .section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-rule-text {
  font-size: .6rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.section-subheading {
  font-size: .82rem;
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 2rem;
}

/* ── DEPT CARDS (hub page) ────────────────────────────── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.dept-card {
  background: var(--dark-mid);
  border: 1px solid rgba(168,205,221,.07);
  padding: 1.8rem 1.6rem 1.5rem;
  position: relative;
  transition: border-color .25s, transform .25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dept-card:hover {
  border-color: rgba(201,168,76,.3);
  transform: translateY(-3px);
}
.dept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.dept-card-icon {
  font-size: 1.6rem;
  margin-bottom: .85rem;
  opacity: .85;
}
.dept-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: .35rem;
  line-height: 1.25;
}
.dept-card .dept-sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.dept-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
}
.dept-card .dept-awards {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid rgba(201,168,76,.12);
  padding-top: .75rem;
  margin-bottom: 1rem;
}
.dept-card .dept-awards span { color: var(--accent); }
.dept-card-link {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: all .2s;
  align-self: flex-start;
}
.dept-card-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── ROLE HIERARCHY ───────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.role-card {
  background: var(--dark-mid);
  border: 1px solid rgba(168,205,221,.07);
  border-left: 3px solid var(--border);
  padding: 1.2rem 1.2rem;
  transition: border-left-color .2s;
}
.role-card:hover { border-left-color: var(--gold); }
.role-card.lead { border-left-color: var(--gold); }
.role-card.lead .role-name { color: var(--gold-lt); }
.role-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .25rem;
}
.role-alt {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.role-desc {
  font-size: .835rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── AWARD SHOW CARDS ─────────────────────────────────── */
.award-shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.award-show-card {
  background: var(--dark-mid);
  border: 1px solid rgba(168,205,221,.07);
  padding: 1.5rem 1.4rem;
  position: relative;
}
.award-show-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-lt));
}
.award-show-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .2rem;
}
.award-show-org {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.award-show-desc {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .9rem;
  line-height: 1.6;
}
.award-show-cats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.award-show-cats li {
  font-size: .78rem;
  color: var(--muted);
  padding-left: .9rem;
  position: relative;
}
.award-show-cats li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.award-show-cats li strong { color: var(--text); font-weight: 400; }
.award-show-since {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(201,168,76,.1);
}

/* ── WINNERS TABLES ───────────────────────────────────── */
.winners-section { overflow-x: auto; }
.winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.winners-table th {
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
}
.winners-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid rgba(168,205,221,.06);
  color: var(--muted);
  vertical-align: top;
}
.winners-table tr:hover td { background: rgba(168,205,221,.03); }
.winners-table .yr {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .95rem;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 400;
}
.winners-table .winner-name {
  color: #fff;
  font-weight: 400;
}
.winners-table .winner-film {
  color: var(--accent);
  font-style: italic;
}
.winners-table .award-label {
  display: inline-block;
  font-size: .52rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .15em .5em;
  background: var(--winner-bg);
  border: 1px solid var(--winner-bdr);
  color: var(--gold-lt);
  white-space: nowrap;
}
.winners-table .multi-win td { background: rgba(201,168,76,.04); }

/* ── WINNER HIGHLIGHT ROWS ────────────────────────────── */
.win-gold td { background: rgba(201,168,76,.07); }
.win-gold .yr { color: var(--gold); }

/* ── NOTABLE PEOPLE ───────────────────────────────────── */
.notables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.notable-card {
  background: var(--dark-mid);
  border: 1px solid rgba(168,205,221,.07);
  padding: 1.4rem 1.3rem;
  position: relative;
}
.notable-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: .35;
}
.notable-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .2rem;
}
.notable-country {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .65rem;
}
.notable-desc {
  font-size: .845rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .8rem;
}
.notable-credits {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.notable-credit {
  display: inline-block;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2em .6em;
  background: rgba(168,205,221,.07);
  border: 1px solid rgba(168,205,221,.14);
  color: var(--accent);
}
.notable-wins {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  color: var(--gold);
  margin-top: .6rem;
  font-weight: 700;
}

/* ── FACT STRIP ───────────────────────────────────────── */
.fact-strip {
  background: var(--dark-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 2rem;
  margin-bottom: 4rem;
}
.fact-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}
.fact-item { text-align: center; }
.fact-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.fact-lbl {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

/* ── CALLOUT BOX ──────────────────────────────────────── */
.callout {
  background: var(--winner-bg);
  border: 1px solid var(--winner-bdr);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.callout p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
}
.callout strong { color: var(--gold); font-weight: 700; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
}
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .3rem;
}
.footer-logo em { color: var(--gold); font-style: italic; }
footer a { color: var(--accent); }
footer a:hover { color: var(--gold); }
footer p { margin: .3rem auto; max-width: 500px; line-height: 1.6; }

/* ── LIGHT MODE ───────────────────────────────────────── */
html.light {
  --dark:       #f5f0e8;
  --dark-mid:   #ece6d8;
  --navy:       #e5ddd0;
  --text:       #1a1612;
  --muted:      #6b5f52;
  --accent:     #1e6080;
  --border:     rgba(120,90,20,.2);
  --winner-bg:  rgba(201,168,76,.12);
  --winner-bdr: rgba(160,110,20,.4);
}
html.light .top-nav { background: rgba(245,240,232,.97); }
html.light .page-hero {
  background: linear-gradient(160deg, #ddd5c5 0%, #e8e0d0 60%, #f0ead8 100%);
}
html.light .page-title { color: #1a1612; }
html.light .section-heading { color: #1a1612; }
html.light .dept-card h3,
html.light .award-show-name,
html.light .role-name,
html.light .notable-name,
html.light .winner-name { color: #1a1612; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 720px) {
  .dept-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .award-shows-grid { grid-template-columns: 1fr; }
  .notables-grid { grid-template-columns: 1fr; }
  .fact-strip-inner { gap: 1.5rem; }
  .content-wrap { padding: 2.5rem 1.25rem 4rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .top-nav { gap: .9rem; }
  .top-nav .sep { display: none; }
}
