/*
 Theme Name: Fast News™
 Theme URI: https://fastnewshq.com
 Description: Fast News™ — Global Intelligence. AI-powered breaking news.
 Version: 1.0.0
 Author: Fast News™
*/

/* ════════════════════════════════════════
   FAST NEWS™ THEME — CORE STYLES
   Matching the dashboard UI exactly
   ════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:     #07090d;
  --s1:     #0d1117;
  --s2:     #13181f;
  --s3:     #1c2330;
  --bd:     #1e2a38;
  --bd2:    #2a3a4a;
  --red:    #e8192c;
  --rlo:    rgba(232,25,44,.1);
  --amber:  #f0a500;
  --green:  #00c875;
  --blue:   #2d9cdb;
  --cyan:   #00d4ff;
  --purple: #9b6bff;
  --orange: #f97316;
  --teal:   #14b8a6;
  --text:   #dce6f0;
  --sub:    #7a909f;
  --dim:    #3a4a58;
  --D:      'Barlow Condensed', sans-serif;
  --B:      'Source Serif 4', serif;
  --M:      'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--B);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }

/* ── TICKER ── */
.fn-ticker {
  height: 28px;
  background: var(--red);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 1px solid rgba(0,0,0,.3);
}
.fn-ticker-lbl {
  background: rgba(0,0,0,.35);
  font-family: var(--D);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,.3);
}
.fn-ticker-track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.fn-ticker-inner {
  display: flex;
  animation: fn-ticker 220s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.fn-ticker-inner span {
  font-family: var(--M);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  padding: 0 28px;
  letter-spacing: .03em;
}
.fn-ticker-inner span::before { content: '◆ '; opacity: .45; }
@keyframes fn-ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── HEADER ── */
.fn-header {
  background: var(--s1);
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  gap: 14px;
  position: sticky;
  top: 28px;
  z-index: 200;
}
.fn-logo {
  font-family: var(--D);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.fn-logo em { color: var(--red); font-style: normal; }
.fn-logo sup { font-size: 10px; color: var(--red); font-family: var(--M); vertical-align: super; }
.fn-tagline {
  font-family: var(--M);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-left: 1px solid var(--bd2);
  padding-left: 12px;
  line-height: 1.4;
  flex-shrink: 0;
}
.fn-header-mid { flex: 1; }
.fn-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.fn-live-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--rlo);
  border: 1px solid rgba(232,25,44,.3);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: var(--M);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
}
.fn-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: fn-live 1.3s ease-in-out infinite;
  box-shadow: 0 0 6px var(--red);
}
@keyframes fn-live { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.2;transform:scale(.7)} }
.fn-clock {
  font-family: var(--M);
  font-size: 11px;
  color: var(--sub);
}

/* ── PROGRESS BAR ── */
.fn-progress {
  height: 2px;
  background: var(--bd);
  position: relative;
  overflow: hidden;
}
.fn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber));
  animation: fn-progress 300s linear forwards;
}
@keyframes fn-progress { from{width:100%} to{width:0%} }

/* ── NAV ── */
.fn-nav {
  background: var(--s1);
  border-bottom: 1px solid var(--bd);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
}
.fn-nav::-webkit-scrollbar { display: none; }
.fn-nav a {
  padding: 10px 14px;
  font-family: var(--D);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sub);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
  display: block;
}
.fn-nav a:hover { color: var(--text); }
.fn-nav a.current-menu-item,
.fn-nav a.active { color: var(--red); border-bottom-color: var(--red); }

/* ── STAT BAR ── */
.fn-statbar {
  background: var(--s2);
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 20px;
  font-family: var(--M);
  font-size: 10px;
  color: var(--sub);
  overflow-x: auto;
  scrollbar-width: none;
}
.fn-statbar::-webkit-scrollbar { display: none; }
.fn-stat { display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.fn-stat-val { color: var(--text); font-weight: 600; }
.fn-stat-sep { color: var(--dim); }

/* ── LAYOUT ── */
.fn-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}
.fn-feed { border-right: 1px solid var(--bd); }
.fn-sidebar { background: var(--s1); }

/* ── BREAKING BANNER ── */
.fn-breaking {
  border-bottom: 2px solid var(--red);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(232,25,44,.08), transparent 80%);
  transition: background .2s;
  position: relative;
  overflow: hidden;
}
.fn-breaking::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .4;
}
.fn-breaking:hover { background: linear-gradient(180deg, rgba(232,25,44,.13), transparent 80%); }
.fn-breaking-inner {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  align-items: flex-start;
}
.fn-breaking-tag {
  background: var(--red);
  color: #fff;
  font-family: var(--D);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 8px;
  flex-shrink: 0;
  margin-top: 3px;
}
.fn-breaking-content { flex: 1; min-width: 0; }
.fn-breaking-source {
  font-family: var(--M);
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fn-breaking-headline {
  font-family: var(--D);
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}
.fn-breaking-desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fn-breaking-img {
  width: 108px; height: 74px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--s2);
}

/* ── SECTION DIVIDER ── */
.fn-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 8px;
  border-bottom: 1px solid var(--bd);
  background: var(--s2);
}
.fn-section-icon { font-size: 14px; }
.fn-section-label {
  font-family: var(--D);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fn-section-count {
  font-family: var(--M);
  font-size: 9px;
  color: var(--dim);
  margin-left: auto;
  background: var(--s3);
  border: 1px solid var(--bd);
  padding: 2px 8px;
  border-radius: 2px;
}

/* ── STORY CARDS ── */
.fn-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bd);
  cursor: pointer;
  transition: background .15s;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.fn-card:hover { background: rgba(255,255,255,.02); }
.fn-card-left { min-width: 0; }
.fn-card-cat {
  font-family: var(--M);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.fn-card-cat.conflict  { color: var(--red); }
.fn-card-cat.crime     { color: var(--orange); }
.fn-card-cat.blockchain{ color: var(--purple); }
.fn-card-cat.business  { color: var(--amber); }
.fn-card-cat.africa    { color: #f59e0b; }
.fn-card-cat.world     { color: var(--blue); }
.fn-card-cat.technology{ color: var(--green); }
.fn-card-cat.politics  { color: #e879f9; }
.fn-card-cat.science   { color: var(--teal); }
.fn-card-cat.health    { color: #3ecf8e; }
.fn-card-cat.general   { color: var(--sub); }

.fn-card-headline {
  font-family: var(--D);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 5px;
}
.fn-card-desc {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fn-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fn-card-img {
  width: 82px; height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--s2);
}
.fn-card-img-ph {
  width: 82px; height: 56px;
  background: var(--s2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid var(--bd);
}

/* ── BADGES ── */
.fn-badge {
  font-family: var(--M);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 2px 6px;
  border-radius: 2px;
}
.fn-badge-src  { color: var(--sub); background: var(--s3); border: 1px solid var(--bd); }
.fn-badge-time { color: var(--dim); }
.fn-badge-new  { color: var(--cyan); background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.2); }
.fn-badge-hot  { color: var(--red); background: rgba(232,25,44,.08); border: 1px solid rgba(232,25,44,.2); }
.fn-badge-verified { color: var(--green); background: rgba(0,200,117,.08); border: 1px solid rgba(0,200,117,.2); }

/* ── SINGLE ARTICLE ── */
.fn-single { max-width: 800px; margin: 0 auto; padding: 0 20px 60px; }
.fn-single-header { padding: 28px 0 0; }
.fn-single-cat {
  font-family: var(--M);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fn-single-headline {
  font-family: var(--D);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}
.fn-single-subhl {
  font-size: 18px;
  color: var(--sub);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}
.fn-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  margin-bottom: 24px;
}
.fn-single-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
}
.fn-single-body {
  font-size: 17px;
  line-height: 1.8;
  color: #c8d6e0;
}
.fn-single-body p { margin-bottom: 20px; }
.fn-single-body p:last-child { margin-bottom: 0; }

/* Source attribution box */
.fn-source-box {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--s2);
  border: 1px solid var(--bd);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
}
.fn-source-box-label {
  font-family: var(--M);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fn-source-box a {
  font-family: var(--M);
  font-size: 11px;
  color: var(--cyan);
}

/* Confidence indicator */
.fn-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--s2);
  border-radius: 3px;
  border: 1px solid var(--bd);
  font-family: var(--M);
  font-size: 9px;
  color: var(--sub);
}
.fn-confidence-bar {
  flex: 1;
  height: 3px;
  background: var(--bd2);
  border-radius: 2px;
  overflow: hidden;
}
.fn-confidence-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

/* ── RELATED ARTICLES ── */
.fn-related { padding: 28px 0 0; border-top: 1px solid var(--bd); margin-top: 36px; }
.fn-related-title {
  font-family: var(--D);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sub);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.fn-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.fn-related-card {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 4px;
  padding: 12px;
  transition: border-color .2s;
}
.fn-related-card:hover { border-color: var(--bd2); }
.fn-related-card-title {
  font-family: var(--D);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ── SIDEBAR ── */
.fn-sb-block { border-bottom: 1px solid var(--bd); }
.fn-sb-head {
  font-family: var(--D);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sub);
  text-transform: uppercase;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--bd);
}

/* Trending list */
.fn-trending { padding: 4px 0 10px; }
.fn-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.fn-trending-item:hover { background: rgba(255,255,255,.02); }
.fn-trending-num {
  font-family: var(--D);
  font-size: 22px;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 26px;
}
.fn-trending-title {
  font-family: var(--D);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.fn-trending-meta {
  font-family: var(--M);
  font-size: 9px;
  color: var(--dim);
  margin-top: 3px;
}

/* Newsletter signup */
.fn-newsletter { padding: 14px; }
.fn-newsletter-title {
  font-family: var(--D);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.fn-newsletter-sub {
  font-family: var(--M);
  font-size: 10px;
  color: var(--sub);
  margin-bottom: 12px;
  line-height: 1.5;
}
.fn-newsletter input[type="email"] {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--bd2);
  border-radius: 3px 3px 0 0;
  padding: 9px 11px;
  font-family: var(--M);
  font-size: 11px;
  color: var(--text);
  outline: none;
}
.fn-newsletter input[type="email"]::placeholder { color: var(--dim); }
.fn-newsletter input[type="submit"] {
  width: 100%;
  background: var(--red);
  border: none;
  border-radius: 0 0 3px 3px;
  color: #fff;
  font-family: var(--D);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 9px;
  cursor: pointer;
  transition: background .2s;
  text-transform: uppercase;
}
.fn-newsletter input[type="submit"]:hover { background: #c0001e; }

/* ── PAGINATION ── */
.fn-pagination {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid var(--bd);
}
.fn-pagination .page-numbers {
  font-family: var(--M);
  font-size: 11px;
  color: var(--sub);
  background: var(--s2);
  border: 1px solid var(--bd);
  padding: 6px 12px;
  border-radius: 3px;
  transition: all .2s;
}
.fn-pagination .page-numbers:hover,
.fn-pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── FOOTER ── */
.fn-footer {
  background: var(--s1);
  border-top: 1px solid var(--bd);
  padding: 24px 20px;
}
.fn-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.fn-footer-logo {
  font-family: var(--D);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.fn-footer-logo em { color: var(--red); font-style: normal; }
.fn-footer-copy {
  font-family: var(--M);
  font-size: 10px;
  color: var(--dim);
}
.fn-footer-links {
  display: flex;
  gap: 16px;
}
.fn-footer-links a {
  font-family: var(--M);
  font-size: 10px;
  color: var(--dim);
  transition: color .2s;
}
.fn-footer-links a:hover { color: var(--sub); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .fn-layout { grid-template-columns: 1fr; }
  .fn-sidebar { display: none; }
}
@media (max-width: 600px) {
  .fn-breaking-img { display: none; }
  .fn-card-img, .fn-card-img-ph { display: none; }
  .fn-single-headline { font-size: 26px; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bd2); border-radius: 2px; }

/* ── ADMIN ARTICLE STYLES ── */
.fn-article-wrap { max-width: 100%; }
.fn-body p { margin-bottom: 18px; font-size: 16px; line-height: 1.78; color: #c8d6e0; }
.fn-cat-badge { display: inline-block; margin-bottom: 14px; }
.fn-subhl { font-size: 17px; color: var(--sub); line-height: 1.5; margin-bottom: 18px; font-style: italic; }
