/* ===== WTF BRAND SYSTEM ===== */

/* Light mode defaults */
:root {
  --wtf-bg:           #f9fafb;
  --wtf-bg-card:      #ffffff;
  --wtf-bg-panel:     #f3f4f6;
  --wtf-text:         #111111;
  --wtf-text-muted:   #6b7280;
  --wtf-border:       #e5e7eb;
  --wtf-accent:       #dc2626;
  --wtf-map-bg:       #0d1117;

  --wtf-left:         #dc2626;
  --wtf-center-left:  #f97316;
  --wtf-center:       #22c55e;
  --wtf-center-right: #0ea5e9;
  --wtf-right:        #2563eb;

  --wtf-fact:    #dc2626;
  --wtf-bias:    #f59e0b;
  --wtf-verify:  #10b981;
  --wtf-local:   #3b82f6;
  --wtf-aurora:  #7c3aed;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --wtf-bg:         #0d1117;
    --wtf-bg-card:    #0a0f1a;
    --wtf-bg-panel:   #060d14;
    --wtf-text:       #f9fafb;
    --wtf-text-muted: #6b7280;
    --wtf-border:     #1f2937;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  background: #050d1a;
  color: #c0c8d4;
}
a { color: inherit; }

/* Nav */
.wtf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #112233;
  background: #050d1a;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}
.wtf-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.wtf-wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e0e0e0;
  line-height: 1.1;
}
.wtf-subbrand {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #6b7280;
  text-transform: uppercase;
}
.wtf-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.wtf-nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #c0c8d4;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.wtf-nav-links a:hover { color: #ffffff; }
.wtf-nav-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--wtf-accent);
  white-space: nowrap;
}
.wtf-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wtf-accent);
  display: inline-block;
  animation: wtf-pulse 1.2s ease-in-out infinite;
}
@keyframes wtf-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Nav actions (globe + hamburger) */
.wtf-nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.wtf-nav-subscribe {
  background: var(--wtf-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wtf-nav-subscribe:hover { opacity: 0.85; color: #fff; }
.wtf-nav-login {
  background: transparent;
  border: 1px solid #334455;
  color: #9ca3af;
  padding: 5px 13px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wtf-nav-login:hover { border-color: #6b7280; color: #e0e0e0; }
.wtf-nav-user { font-size: 0.68rem; color: #6b7280; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 860px) {
  .wtf-nav-subscribe, .wtf-nav-login { display: none; }
}

.wtf-lang-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid #1a2a3a;
  color: #9ca3af;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.wtf-lang-btn:hover { background: rgba(255,255,255,0.12); color: #e0e0e0; }

/* Hamburger */
.wtf-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #9ca3af;
}
.wtf-menu-icon,
.wtf-menu-icon::before,
.wtf-menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.wtf-menu-icon { position: relative; }
.wtf-menu-icon::before { content: ''; position: absolute; top: -7px; }
.wtf-menu-icon::after  { content: ''; position: absolute; top: 7px; }

/* Mobile nav */
.wtf-nav-mobile {
  display: none;
  flex-direction: column;
  background: #050d1a;
  border-bottom: 1px solid #112233;
  padding: 4px 1.5rem 12px;
}
.wtf-nav-mobile.open { display: flex; }
.wtf-nav-mobile a {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid #0d1a26;
}
.wtf-nav-mobile a:last-child { border-bottom: none; }
.wtf-nav-mobile a:hover { color: #e0e0e0; }
.wtf-mobile-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--wtf-accent);
  padding: 10px 0 6px;
  border-bottom: 1px solid #0d1a26;
}

/* Language overlay */
.wtf-lang-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wtf-lang-overlay[hidden] { display: none; }
.wtf-lang-panel {
  background: #0a0f1a;
  border: 1px solid #1a2a3a;
  border-radius: 8px;
  padding: 24px;
  min-width: 240px;
  position: relative;
}
.wtf-lang-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.wtf-lang-close:hover { color: #e0e0e0; }
.wtf-lang-panel-title {
  color: #6b7280;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.wtf-lang-grid { display: flex; flex-direction: column; gap: 8px; }
.wtf-lang-opt {
  background: #111827;
  border: 1px solid #1a2a3a;
  color: #9ca3af;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.wtf-lang-opt:hover { background: #1a2a3a; color: #e0e0e0; }
.wtf-lang-opt.active { border-color: var(--wtf-accent); color: var(--wtf-accent); }

/* Responsive — collapse nav links at ≤860px */
@media (max-width: 860px) {
  .wtf-nav-links { display: none; }
  .wtf-nav-live { display: none; }
  .wtf-menu-btn { display: block; }
  .wtf-nav { padding: 0.75rem 1.25rem; }
}

/* Footer */
.wtf-footer {
  padding: 2rem;
  border-top: 1px solid #112233;
  background: #050d1a;
  color: #6b7280;
  font-size: 0.8rem;
}
.wtf-footer a { color: var(--wtf-accent); text-decoration: none; }

/* Map zone (always dark) */
#wtf-map-zone {
  background: var(--wtf-map-bg) !important;
  color: #e6edf3;
  padding: 12px;
  border-bottom: 1px solid #1a3a5a;
}
#wtf-map-zone h2 {
  font-size: 10px;
  letter-spacing: 3px;
  color: #0af;
  margin: 0 0 8px;
}
#wtf-canada-map {
  height: 300px;
  border-radius: 4px;
  border: 1px solid #1a3a5a;
}

/* Layout */
#wtf-main { display: flex; min-height: 400px; }
#wtf-editorial {
  flex: 0 0 38%;
  background: var(--wtf-bg-panel);
  padding: 14px;
  border-right: 1px solid var(--wtf-border);
  overflow-y: auto;
}
#wtf-feed {
  flex: 1;
  background: var(--wtf-bg);
  padding: 14px;
  overflow-y: auto;
}
.wtf-section-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--wtf-accent);
  margin: 0 0 10px;
}

/* Activity feed */
.wtf-activity-item {
  background: var(--wtf-bg-card);
  border-radius: 3px;
  padding: 8px;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--wtf-border);
}
.wtf-agent-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--wtf-bg-panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: bold; flex-shrink: 0;
}
.wtf-activity-text { font-size: 11px; color: var(--wtf-text-muted); }
.wtf-activity-time { font-size: 9px; color: var(--wtf-text-muted); opacity: 0.6; }
.wtf-top-story {
  font-size: 11px;
  color: var(--wtf-text);
  padding: 5px 0;
  border-bottom: 1px solid var(--wtf-border);
}

/* Article cards */
.wtf-article-card {
  background: #0a0f1a;
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #112233;
  border-left-width: 3px;
}
.wtf-article-card--left        { border-left-color: var(--wtf-left); }
.wtf-article-card--center-left { border-left-color: var(--wtf-center-left); }
.wtf-article-card--center      { border-left-color: #334455; }
.wtf-article-card--center-right{ border-left-color: var(--wtf-center-right); }
.wtf-article-card--right       { border-left-color: var(--wtf-right); }

.wtf-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 10px;
  color: #6b7280;
}
.wtf-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.4;
  color: #e0e0e0;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.wtf-card-title:hover { color: var(--wtf-accent); }
.wtf-card-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
}
.wtf-badge-ai    { background: #0a2a1a; color: #4a9; }
.wtf-badge-quick { background: #1a1a0a; color: #aa9; }

/* Bias pills */
.wtf-bias-pill {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
}
.wtf-bias-left        { background: #2d0a0a; color: var(--wtf-left); }
.wtf-bias-center-left { background: #2d1100; color: var(--wtf-center-left); }
.wtf-bias-center      { background: #0a2010; color: var(--wtf-center); }
.wtf-bias-center-right{ background: #062030; color: var(--wtf-center-right); }
.wtf-bias-right       { background: #0a1540; color: var(--wtf-right); }

/* Team page */
.wtf-team-hero {
  background: #050d1a;
  color: #e0e0e0;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #112233;
}
.wtf-team-hero-live {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--wtf-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wtf-team-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: #f9fafb;
  margin: 0 0 10px;
}
.wtf-team-hero p {
  font-size: 11px;
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}
.wtf-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
  background: #050d1a;
}
.wtf-team-card {
  background: #0a0f1a;
  border: 1px solid #112233;
  border-radius: 4px;
  padding: 20px;
  position: relative;
}
.wtf-team-card--coming { opacity: 0.7; }
.wtf-team-card--teaser { border-color: #7c3aed; border-style: dashed; }

.wtf-team-portrait {
  width: 72px;
  height: 90px;
  border-radius: 4px;
  border: 2px solid var(--wtf-border);
  background-color: var(--wtf-bg-panel);
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}
.wtf-team-card--coming .wtf-team-portrait { filter: grayscale(70%); }

.wtf-team-name {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.wtf-team-expansion {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.wtf-team-role {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.wtf-team-model {
  display: inline-block;
  background: #060d14;
  border: 1px solid #1a2a3a;
  color: #4a9;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.wtf-team-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.wtf-team-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 2px;
}
.wtf-badge-active { background: #0a2a1a; color: #4a9; }
.wtf-badge-soon   { background: #111827; color: #6b7280; }
.wtf-badge-phase2 { background: #1a0a3a; color: #a0f; }

.wtf-team-footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: #6b7280;
  border-top: 1px solid #112233;
  background: #050d1a;
}
.wtf-team-footer a { color: var(--wtf-accent); text-decoration: none; }
