/* ============================================================
   DISPATCH — styles.css
   Layout: Editorial (L1) × Brutalist Palette (L3)
   ============================================================ */

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

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

:root {
  --cream:       #f0ebe0;
  --ink:         #111111;
  --orange:      #ff4d1c;
  --mid:         #c8c0b0;
  --dark-panel:  #1c1917;
  --border:      4px solid #111111;
  --border-thin: 1px solid #c8c0b0;
  --font-display: 'Playfair Display', serif;
  --font-label:   'Unbounded', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'DM Sans', sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--cream);
  font-family: var(--font-body);
}

/* ── Top Bar ──────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: #ffffff;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 300;
}

/* ── Logo ─────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.top-bar-date {
  font-family: var(--font-mono);
  letter-spacing: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.6;
}

/* ── Top-bar date ─────────────────────────────────────── */
.date-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1.5px;
}
/* ── Hamburger Button (right side) ───────────────────── */
.menu-btn {
  background: transparent;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.menu-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.menu-btn .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: center;
}

.menu-btn:hover .bar {
  background: #ffffff;
}

.menu-btn.open .bar { background: #ffffff; }
.menu-btn.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Drawer Nav ───────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100%;
  background: #ffffff;
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 90px 40px 40px;
  border-left: var(--border);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 399;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.drawer-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.drawer-eyebrow {
  font-family: var(--font-label);
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 3px;
  margin-bottom: 32px;
}

.drawer nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid #e0dbd0;
  letter-spacing: -0.5px;
  transition: color 0.25s, padding-left 0.25s;
}

.drawer nav a:hover {
  color: var(--orange);
  padding-left: 8px;
}

.drawer nav a:first-child {
  border-top: 1px solid #e0dbd0;
}

.drawer-footer {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid);
  letter-spacing: 1px;
  line-height: 1.8;
}

/* ── Page Wrapper ─────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  padding-top: 72px;   /* offset for fixed top-bar */
  padding-bottom: 44px; /* offset for fixed ticker */
}

/* ── Video Panel — 60% ────────────────────────────────── */
.video-panel {
  width: 60%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-right: var(--border);
  background: var(--dark-panel);
  flex-shrink: 0;
}

/* Subtle grid texture */
.video-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,77,28,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,77,28,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Gradient fade from bottom */
.vid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, transparent 55%);
  pointer-events: none;
}

/* Video label — bottom left */
.vid-label {
  position: absolute;
  bottom: 52px;
  left: 32px;
  z-index: 4;
}

.vid-tag {
  font-family: var(--font-label);
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 3px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vid-tag::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.vid-label h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

/* ── Right Column — 40% ───────────────────────────────── */
.right-col {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
}

/* ── Top Panel ────────────────────────────────────────── */
.panel-top {
  flex: 1;
  padding: 32px 36px 28px;
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}

/* Ghost number background decoration */
.ghost-num {
  position: absolute;
  top: -10px; right: 12px;
  font-family: var(--font-label);
  font-size: 110px;
  font-weight: 900;
  color: rgba(17,17,17,0.05);
  line-height: 1;
  letter-spacing: -6px;
  pointer-events: none;
  user-select: none;
}

.section-label {
  font-family: var(--font-label);
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.main-headline {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.body-text {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: var(--border);
}

.stat {
  flex: 1;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 2px solid var(--ink);
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.stat-num {
  font-family: var(--font-label);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.stat-num.accent { color: var(--orange); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mid);
  letter-spacing: 2px;
  margin-top: 5px;
}

/* Tag pills */
.tag-strip {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-label);
  font-size: 8px;
  padding: 5px 12px;
  letter-spacing: 1.5px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.pill:hover {
  background: var(--ink);
  color: var(--cream);
}

.pill.hot {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── Bottom Panel ─────────────────────────────────────── */
.panel-bottom {
  flex: 1;
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}

/* Card list */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1.5px solid #d5cfc3;
  cursor: pointer;
  transition: padding-left 0.2s;
}

.card:last-child { border-bottom: none; }
.card:hover      { padding-left: 6px; }

.card-thumb {
  width: 60px;
  height: 42px;
  background: var(--ink);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
}

.card-info { flex: 1; }

.card-title {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mid);
  letter-spacing: 1px;
  margin-top: 5px;
}

.card-num {
  font-family: var(--font-label);
  font-size: 9px;
  color: var(--mid);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Global Ticker ────────────────────────────────────── */
.ticker-global {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: var(--orange);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: var(--border);
  z-index: 300;
}

.ticker-label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 900;
  color: var(--ink);
  padding: 0 18px;
  letter-spacing: 2px;
  border-right: 2px solid var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-inner {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scrollTicker 28s linear infinite;
}

.ticker-inner span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.5px;
}

@keyframes scrollTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
