/* ════════════════════════════════════════
   BlackCatUSA News — Custom Styles
   ════════════════════════════════════════ */

:root {
  --brand-red:    #cc1010;
  --brand-dark:   #0d0d0d;
  --brand-mid:    #1a1a2e;
  --card-radius:  10px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.12);
  --shadow-md:    0 4px 20px rgba(0,0,0,.18);
}

/* ── Body ── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
}

/* ── Top bar ── */
.topbar {
  background: #111;
  font-size: .8rem;
  border-bottom: 1px solid #222;
}
.topbar a { color: #aaa; }

/* ── Navbar ── */
.site-navbar {
  background: var(--brand-dark) !important;
  border-bottom: 3px solid var(--brand-red);
  padding: .6rem 0;
  z-index: 1030;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff !important;
  text-decoration: none;
}
.brand-icon { font-size: 1.6rem; }
.brand-usa { color: var(--brand-red); }

.site-navbar .nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: #ccc !important;
  border-radius: 5px;
  padding: .35rem .75rem !important;
  transition: background .15s, color .15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  background: var(--brand-red);
  color: #fff !important;
}

/* ── Breaking-news ticker ── */
.ticker-bar {
  background: #1a1a1a;
  overflow: hidden;
  height: 36px;
  border-bottom: 1px solid #333;
}
.ticker-label {
  background: var(--brand-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  flex-shrink: 0;
  border-radius: 0 4px 4px 0;
  margin-right: 12px;
  animation: blink-border 1.2s step-start infinite;
}
@keyframes blink-border {
  50% { opacity: .5; }
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}
.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  color: #ddd;
  font-size: .82rem;
}
.ticker-item:hover { color: #fff; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section headings ── */
.section-heading { margin-bottom: 0; }
.section-badge {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 14px;
  border-radius: 3px;
}
.section-badge--video  { background: #1e3a5f; }
.section-badge--latest { background: #2c2c2c; }
.section-badge--lg     { font-size: .85rem; padding: 6px 18px; }

/* ── Featured cards ── */
.featured-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
}
.featured-card--main { min-height: 420px; }
.featured-card--sub  { min-height: 195px; }

.featured-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.0) 100%);
  padding: 2rem 1.25rem 1.25rem;
}
.cat-badge {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: .5rem;
}
.featured-card__title {
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.featured-card__title--sm { font-size: 1rem; }
.featured-card__meta {
  color: #ccc;
  font-size: .78rem;
  margin-top: .5rem;
}

/* ── Video section ── */
.video-section {
  background: var(--brand-mid);
}
.video-card {
  background: #162032;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .2s;
}
.video-card:hover { transform: translateY(-3px); }
.video-card iframe { border-radius: var(--card-radius) var(--card-radius) 0 0; }
.video-card__title {
  color: #e8e8e8;
  font-size: .95rem;
  font-weight: 600;
}
.video-section .section-heading { color: #fff; }

/* ── Article cards ── */
.article-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .18s, box-shadow .18s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-card__img-wrap {
  height: 170px;
  overflow: hidden;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card__img-wrap--placeholder {
  background: #f0f0f0;
}
.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .article-card__img { transform: scale(1.05); }
.article-card__cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.article-card__title {
  font-size: .9rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}
.article-card__desc {
  font-size: .8rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__footer {
  border-top: 1px solid #f0f0f0;
  padding-top: .6rem;
}

/* ── Category header ── */
.category-header {
  border-bottom: 2px solid #e9ecef;
}

/* ── Footer ── */
.site-footer {
  background: var(--brand-dark);
  border-top: 3px solid var(--brand-red);
}
.footer-brand {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}
.site-footer a:hover { color: #fff !important; }

/* ── Ad slots ── */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  border: 1px dashed #ced4da;
  border-radius: var(--card-radius);
  color: #adb5bd;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ad-slot--banner {
  height: 90px;
  width: 100%;
}
.ad-slot--leaderboard {
  height: 90px;
}
.ad-slot--inline {
  height: 100px;
}
.ad-slot__label {
  pointer-events: none;
  user-select: none;
}

/* ── Premium badge (navbar) ── */
.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f5c518 0%, #e6a800 100%);
  color: #1a1a1a;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .featured-card--main { min-height: 280px; }
  .featured-card--sub  { min-height: 160px; }
  .site-navbar .nav-link { font-size: .8rem; }
}
