/* ════════════════════════════════════════════════════════════
   CHANNEL 27 NEWS — Dark Broadcast / Facebook-Powered
   ════════════════════════════════════════════════════════════ */

:root {
  --purple:     #6a0dad;
  --purple-dk:  #4e0a9e;
  --gold:       #f0a500;
  --gold-dk:    #d4920a;
  --dark:       #0d0d0d;
  --dark-2:     #111;
  --dark-3:     #1a1a1a;
  --red:        #e63946;
  --gray:       #949498;
  --light-gray: #b8b8bb;
  --white:      #fff;

  --font-heading: 'Bebas Neue', cursive;
  --font-body:    'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background: #0a0a0a;
  color: #ddd;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Utilities ── */
.font-bebas { font-family: var(--font-heading); letter-spacing: 1.5px; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-purple { color: var(--purple); }
.text-light-gray { color: var(--light-gray); }

.btn-purple {
  background: var(--purple); color: var(--white); border: none;
  font-weight: 600; text-transform: uppercase; font-size: 0.72rem;
  letter-spacing: 1px; padding: 8px 16px; transition: background 0.2s;
}
.btn-purple:hover { background: var(--purple-dk); color: var(--white); }

.btn-gold {
  background: var(--gold); color: var(--dark); border: none;
  font-weight: 700; text-transform: uppercase; font-size: 0.75rem;
  letter-spacing: 1px; padding: 8px 16px; transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-dk); color: var(--dark); }

/* ── Section Header Bar ── */
.section-header-bar {
  display: flex; justify-content: space-between; align-items: center;
  border-left: 3px solid var(--purple);
  background: var(--dark-3);
  padding: 10px 16px; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading); font-size: 1.1rem;
  letter-spacing: 2px; color: var(--white); margin: 0;
  text-transform: uppercase;
}
.section-link {
  font-size: 0.7rem; font-weight: 600; color: var(--light-gray);
  transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-link:hover { color: var(--gold); }

/* ═══════════ TOPBAR ═══════════ */
.topbar {
  background: #000; font-size: 10px; text-transform: uppercase;
  font-weight: 500; letter-spacing: 0.5px; padding: 6px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 8px; color: var(--gray); }
.topbar-date { color: var(--light-gray); }
.topbar-sep { color: #333; }
.topbar-link { color: var(--gray); transition: color 0.2s; }
.topbar-link:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 14px; }
.topbar-social { color: var(--gray); font-size: 12px; transition: color 0.2s; }
.topbar-social:hover { color: var(--gold); }

/* ═══════════ HEADER ═══════════ */
.site-header {
  background: var(--dark); padding: 16px 0;
  border-bottom: 1px solid #1a1a1a;
}
.header-logo { height: 64px; width: auto; }
.header-tagline {
  font-family: var(--font-heading); color: var(--gold);
  font-size: 1.4rem; letter-spacing: 3px; margin: 0;
}
.header-contact { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; }
.header-contact-icon { color: var(--gold); font-size: 15px; }
.header-contact-label {
  display: block; color: var(--white); font-weight: 700;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.header-contact-value {
  display: block; color: var(--gray); font-size: 0.68rem;
}

/* ═══════════ NAVBAR ═══════════ */
.main-navbar {
  background: var(--dark); border-bottom: 3px solid var(--purple); padding: 0;
}
.main-navbar .nav-link {
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--light-gray) !important;
  padding: 14px 14px !important; transition: color 0.2s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--gold) !important; }
.navbar-social { display: flex; gap: 12px; }
.navbar-social a { color: var(--gold); font-size: 15px; transition: opacity 0.2s; }
.navbar-social a:hover { opacity: 0.7; }
.navbar-toggler { border: none; }

/* ═══════════ BREAKING TICKER ═══════════ */
.breaking-ticker {
  background: var(--dark); border-bottom: 2px solid var(--purple);
  padding: 8px 0; overflow: hidden;
}
.breaking-pill {
  background: var(--red); color: var(--white);
  font-family: var(--font-heading); font-size: 0.75rem;
  letter-spacing: 1.5px; padding: 4px 14px; border-radius: 3px;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; margin-left: 12px; }
.ticker-text {
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; color: #eee;
}
.ticker-text:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker-sep { color: var(--gold); margin: 0 24px; }

/* ═══════════ STORIES SECTION ═══════════ */
.stories-section {
  padding: 32px 0; background: #0a0a0a;
}

/* FB Embed Cards */
.fb-embed-card {
  background: var(--dark-3); border: 1px solid #222;
  overflow: hidden; height: 100%;
}
.fb-embed-primary {
  border-left: 3px solid var(--purple);
}
.fb-post-wrapper {
  background: var(--white); padding: 0;
}
.fb-post-wrapper .fb-post {
  width: 100%;
}
.fb-post-wrapper iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* ═══════════ TIMELINE SECTION ═══════════ */
.timeline-section {
  padding: 0 0 40px 0; background: #0a0a0a;
}
.fb-page-wrapper {
  background: var(--white); border: 1px solid #222;
}
.fb-page-wrapper .fb-page {
  width: 100%;
}
.fb-page-wrapper iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* ═══════════ SIDEBAR ═══════════ */
.sidebar-section { margin-bottom: 20px; }
.sidebar-card {
  background: var(--dark-3); border: 1px solid #222; border-top: none;
}

/* Sponsor Cards */
.sponsor-card {
  padding: 14px 16px; border-bottom: 1px solid #222;
}
.sponsor-card:last-child { border-bottom: none; }
.sponsor-badge {
  display: inline-block; font-size: 8px; text-transform: uppercase;
  font-weight: 700; letter-spacing: 1px;
  background: var(--purple); color: var(--white);
  padding: 3px 10px; border-radius: 2px;
}
.sponsor-badge-open {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
}
.sponsor-cta { font-size: 0.7rem; color: var(--light-gray); font-weight: 500; }

/* Follow Blocks */
.social-follow-blocks { display: flex; flex-direction: column; }
.follow-block {
  display: flex; align-items: center; height: 48px;
  color: var(--white); transition: opacity 0.2s; text-decoration: none;
}
.follow-block:hover { opacity: 0.9; color: var(--white); }
.follow-icon {
  width: 48px; height: 48px; display: flex;
  align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.follow-text { flex: 1; padding: 0 14px; font-size: 0.78rem; font-weight: 600; }
.follow-arrow { width: 40px; text-align: center; opacity: 0.6; }
.follow-fb { background: #39569E; }
.follow-fb .follow-icon { background: #2d4a7a; }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  background: var(--dark); padding: 50px 0 30px;
  border-top: 3px solid var(--purple);
}
.footer-logo { height: 64px; width: auto; }
.footer-about { font-size: 0.8rem; color: var(--gray); line-height: 1.6; }
.footer-heading {
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--purple);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--gray); font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 8px; }
.footer-social-circle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple); color: var(--white); font-size: 14px;
  transition: all 0.2s;
}
.footer-social-circle:hover { background: var(--gold); color: var(--dark); }

/* ═══════════ FOOTER BOTTOM ═══════════ */
.footer-bottom {
  background: var(--dark-2); border-top: 1px solid #222; padding: 16px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy, .footer-credit {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--gray);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--gray); transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 991.98px) {
  .header-tagline { font-size: 1rem; }
  .stories-section { padding: 20px 0; }
}

@media (max-width: 767.98px) {
  .topbar { font-size: 7px; letter-spacing: 0; }
  .topbar-inner { flex-wrap: nowrap; }
  .topbar-left { gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
  .topbar-right { gap: 6px; flex-shrink: 0; }
  .topbar-social { font-size: 10px; }
  .topbar-sep { display: none; }
  .topbar-link { font-size: 7px; }
  .header-logo { height: 44px; }
  .site-header { padding: 10px 0; }
  .header-tagline { font-size: 1rem; letter-spacing: 2px; }
  .section-title { font-size: 0.85rem; letter-spacing: 1px; }
  .section-link { font-size: 0.62rem; }
  .section-header-bar { padding: 8px 10px; margin-bottom: 8px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .footer-bottom-links { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .breaking-ticker { padding: 5px 0; }
  .breaking-pill { font-size: 0.55rem; padding: 2px 6px; letter-spacing: 1px; }
  .ticker-text { font-size: 0.6rem; }
  .ticker-sep { margin: 0 12px; }
  .ticker-wrap { margin-left: 6px; }
  .fb-post-wrapper { overflow-x: hidden; max-width: 100%; }
  .fb-post-wrapper iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .fb-page-wrapper { overflow-x: hidden; max-width: 100%; }
  .fb-page-wrapper iframe { width: 100% !important; max-width: 100% !important; }
  .navbar-brand img { height: 36px; }
  .main-navbar .nav-link { font-size: 12px; padding: 12px 16px !important; }
  .sponsor-card { padding: 12px; }
  .site-footer { padding: 30px 0 20px; }
  .footer-logo { height: 48px; }
}

@media (max-width: 575.98px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .header-logo { height: 36px; }
  .site-header { padding: 8px 0; }
  .header-tagline { font-size: 0.75rem; letter-spacing: 1.5px; }
  .section-header-bar { padding: 6px 8px; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
  .section-title { font-size: 0.72rem; letter-spacing: 1px; }
  .section-link { font-size: 0.58rem; }
  .stories-section { padding: 8px 0; }
  .timeline-section { padding: 0 0 20px 0; }
  .fb-embed-card { margin-bottom: 6px; }
  .hero-section { padding: 12px 0; }
  .breaking-pill { font-size: 0.5rem; padding: 2px 5px; }
  .ticker-text { font-size: 0.55rem; }
  .topbar { font-size: 6px; padding: 4px 0; }
  .topbar-social { font-size: 9px; }
  .topbar-right { gap: 4px; }
  .sidebar-section { margin-bottom: 12px; }
  .footer-bottom-links { gap: 4px; }
  .footer-bottom-links a { font-size: 8px; }
  .footer-copy, .footer-credit { font-size: 8px; }
  .footer-bottom { padding: 10px 0; }
  /* Kill horizontal scroll */
  body, .container, .row, section, .fb-post-wrapper, .fb-page-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .row { margin-left: 0; margin-right: 0; }
  iframe { max-width: 100% !important; }
}
