/* PUN INTENDED NETWORK — 2017 SITE REDESIGN */
/* Mixed dark/light, cool blues & greys, dashboard layout */

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

:root {
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --blue-dark:  #1d4ed8;
  --blue-pale:  #eff6ff;
  --grey-900:   #111827;
  --grey-800:   #1f2937;
  --grey-700:   #374151;
  --grey-600:   #4b5563;
  --grey-500:   #6b7280;
  --grey-400:   #9ca3af;
  --grey-300:   #d1d5db;
  --grey-200:   #e5e7eb;
  --grey-100:   #f3f4f6;
  --white:      #ffffff;
  --red:        #ef4444;
  --green:      #22c55e;
  --amber:      #f59e0b;
}

body {
  background: var(--grey-100);
  color: var(--grey-800);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }

/* ── HEADER ───────────────────────────────────────────────── */
#site-header {
  background: var(--grey-900);
  border-bottom: 1px solid var(--grey-800);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
#header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
#header-logo .logo-mark {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}
#header-logo .logo-mark em {
  color: var(--blue-light);
  font-style: normal;
}
#header-logo .logo-divider {
  width: 1px;
  height: 24px;
  background: var(--grey-700);
}
#header-logo .logo-sub {
  font-size: 11px;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 2px;
}
#header-meta {
  font-size: 11px;
  color: var(--grey-500);
  text-align: right;
  line-height: 1.5;
}
#header-meta a { color: var(--grey-400); }

/* ── NAV ──────────────────────────────────────────────────── */
#main-nav {
  background: var(--grey-800);
  border-bottom: 1px solid var(--grey-700);
  padding: 0 32px;
}
#main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
}
#main-nav ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
#main-nav ul li a:hover {
  color: var(--white);
  border-bottom-color: var(--blue-light);
  text-decoration: none;
}
#main-nav ul li a.active {
  color: var(--white);
  border-bottom-color: var(--blue);
}

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
#page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px;
}

/* ── DASHBOARD GRID ───────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.col-8  { grid-column: span 8; }
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-3  { grid-column: span 3; }
.col-12 { grid-column: span 12; }

/* ── STAT CARDS ───────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: var(--grey-500);
}
.stat-card .stat-delta {
  font-size: 12px;
  font-weight: 600;
}
.stat-card .stat-delta.up { color: var(--green); }
.stat-card .stat-delta.neutral { color: var(--grey-500); }

/* ── PANEL ────────────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  overflow: hidden;
}
.panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-800);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.panel-header .panel-meta {
  font-size: 11px;
  color: var(--grey-400);
}
.panel-body {
  padding: 20px;
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.7;
}
.panel-body p { margin-bottom: 10px; }
.panel-body p:last-child { margin-bottom: 0; }

/* ── SHOW ROW ─────────────────────────────────────────────── */
.show-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--grey-100);
  gap: 12px;
  font-size: 12px;
}
.show-row:last-child { border-bottom: none; }
.show-row:hover { background: var(--grey-100); }
.show-row .show-name {
  font-weight: 600;
  color: var(--grey-800);
  flex: 1;
  min-width: 0;
}
.show-row .show-name a { color: var(--grey-800); }
.show-row .show-name a:hover { color: var(--blue); text-decoration: none; }
.show-row .show-detail {
  color: var(--grey-500);
  white-space: nowrap;
}
.show-row .show-viewers {
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-airing    { background: #dcfce7; color: #166534; }
.badge-ended     { background: #dbeafe; color: #1e40af; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-flagship  { background: #fef9c3; color: #854d0e; }
.badge-original  { background: #ede9fe; color: #5b21b6; }
.badge-acquired  { background: #f1f5f9; color: #475569; }
.badge-new       { background: #dcfce7; color: #166534; }
.badge-special   { background: #fce7f3; color: #9d174d; }
.badge-ordered   { background: #e0f2fe; color: #0c4a6e; }

/* ── UPDATE LIST ──────────────────────────────────────────── */
.update-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 12px;
  color: var(--grey-700);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.update-item:last-child { border-bottom: none; }
.update-item .update-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-400);
  white-space: nowrap;
  min-width: 80px;
}
.update-item .update-text { flex: 1; }

/* ── SECTION HEADING ──────────────────────────────────────── */
.section-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-200);
}

/* ── TOC ──────────────────────────────────────────────────── */
.toc {
  background: var(--blue-pale);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: inline-block;
  min-width: 200px;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.toc ol { margin: 0; padding: 0 0 0 16px; }
.toc ol li { margin-bottom: 4px; }
.toc a { color: var(--blue); font-size: 12px; }

/* ── INFOBOX ──────────────────────────────────────────────── */
.infobox {
  float: right;
  width: 280px;
  margin: 0 0 20px 24px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  font-size: 12px;
}
.infobox-title {
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  letter-spacing: 0.5px;
}
.infobox-subtitle {
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 10px;
  text-align: center;
  padding: 4px;
  border-bottom: 1px solid #bfdbfe;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.infobox table { width: 100%; border-collapse: collapse; }
.infobox table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: top;
  line-height: 1.5;
}
.infobox table td:first-child {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 36%;
}
.infobox table td:last-child { color: var(--grey-700); }
.infobox ul { margin: 0; padding: 0 0 0 14px; }
.infobox ul li { margin-bottom: 2px; color: var(--grey-700); }

/* ── EPISODE TABLE ────────────────────────────────────────── */
.ep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}
.ep-table th {
  background: var(--grey-800);
  color: var(--grey-300);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 10px;
  text-align: left;
  border: none;
}
.ep-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: top;
  line-height: 1.5;
}
.ep-table tr:hover td { background: var(--grey-100); }
.ep-table td.ep-num { color: var(--blue); font-weight: 700; text-align: center; white-space: nowrap; }
.ep-table td.ep-title { color: var(--grey-800); font-style: italic; font-weight: 500; }
.ep-table td.ep-code { color: var(--grey-400); font-family: "SF Mono", monospace; font-size: 11px; }
.ep-table td.ep-date { white-space: nowrap; color: var(--grey-500); font-size: 11px; }
.ep-table td.ep-views { font-weight: 700; color: var(--blue); text-align: right; white-space: nowrap; }
.ep-table td.ep-desc { color: var(--grey-600); font-size: 11px; }

.season-divider {
  background: var(--grey-800);
  color: var(--grey-300);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 7px 12px;
  margin: 16px 0 0;
  border-left: 3px solid var(--blue);
}

/* ── PULL QUOTE ───────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--blue);
  background: var(--blue-pale);
  padding: 12px 16px;
  margin: 14px 0;
  font-style: italic;
  color: var(--grey-700);
  font-size: 13px;
  border-radius: 0 6px 6px 0;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--grey-400);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ── SECTION TITLE ────────────────────────────────────────── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--blue-pale);
  padding-bottom: 5px;
  margin: 18px 0 12px;
}
.section-title:first-child { margin-top: 0; }

/* ── SHOW CARD ────────────────────────────────────────────── */
.show-card {
  border: 1px solid var(--grey-200);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.show-card-head {
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
  padding: 10px 14px;
}
.show-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 3px;
}
.show-card-title a { color: var(--grey-900); }
.show-card-title a:hover { color: var(--blue); text-decoration: none; }
.show-card-meta {
  font-size: 11px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.show-card-body {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--grey-600);
  line-height: 1.7;
  background: var(--white);
}
.show-card-body p { margin-bottom: 6px; }
.show-card-body p:last-child { margin-bottom: 0; }
.show-card-note {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-200);
  padding: 5px 14px;
  font-size: 11px;
  color: var(--grey-500);
  font-style: italic;
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.timeline-item {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--blue-light);
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--grey-600);
}
.timeline-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 2px;
}

/* ── FOUNDER CARD ─────────────────────────────────────────── */
.founder-card {
  border: 1px solid var(--grey-200);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: var(--white);
}
.founder-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1px;
}
.founder-role {
  font-size: 10px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-weight: 600;
}
.founder-bio { font-size: 12px; color: var(--grey-600); line-height: 1.55; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }

/* ── COUNTER ──────────────────────────────────────────────── */
.counter-box {
  text-align: center;
  background: var(--grey-800);
  border-radius: 6px;
  padding: 16px;
}
.counter-digits {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 4px;
  display: block;
  margin: 4px 0;
}
.counter-label {
  font-size: 10px;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ── PAGE TITLE ───────────────────────────────────────────── */
.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--grey-900);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 11px;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────────── */
#site-footer {
  background: var(--grey-900);
  border-top: 1px solid var(--grey-800);
  margin-top: 40px;
  padding: 24px 32px;
  text-align: center;
  font-size: 11px;
  color: var(--grey-600);
}
#site-footer .footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-400);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
#site-footer .footer-logo em { color: var(--blue-light); font-style: normal; }
#site-footer a { color: var(--grey-500); }
#site-footer a:hover { color: var(--grey-300); }
