/**
 * Header (topbar + navbar), hero, section bands, sidebar
 * No watermark text. Hero full width. Bands full width.
 */

/* ---- Top bar: social left, search right ---- */
.header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 18, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}

.top-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.top-strip-inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  gap: var(--s-3);
}

.top-icons {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* Social icons: SVG only, no text */
.social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-1);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--txt);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--txt);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.top-search-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

.top-search-inline input {
  width: 160px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--txt);
  font-size: 0.9rem;
}

.top-search-inline input::placeholder {
  color: var(--muted);
}

/* ---- Navbar: centered logo, menu around ---- */
.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 10px 20px;
}

.mobile-menu-btn {
  display: none;
}

.site-logo,
.logo,
.logo-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo img,
.logo-image img {
  height: clamp(34px, 3vw, 56px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: none;
  transition: transform 0.2s ease;
}

.site-logo:hover img,
.logo-image:hover img {
  transform: scale(1.04);
  filter: none;
}

.logo span {
  color: var(--red);
}

.menu {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  flex: 1;
  max-width: 50%;
}

.menu-left {
  justify-content: flex-end;
}

.menu-right {
  justify-content: flex-start;
}

.menu a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.menu a:hover {
  color: var(--txt);
  border-bottom-color: var(--red);
}

/* Mobile drawer (only when menu hidden) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 80;
  display: none;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-panel {
  width: min(350px, 92vw);
  margin-left: auto;
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: var(--s-4);
}

.mobile-nav {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.mobile-nav a {
  padding: var(--s-3);
  border-radius: var(--r-1);
  border: 1px solid var(--border);
  color: var(--muted);
}

.mobile-nav a:hover {
  color: var(--txt);
  border-color: rgba(255, 255, 255, 0.2);
}

.content-wrap {
  padding: var(--s-5) 0 var(--s-6);
}

/* ---- Hero: full width, no watermark, overlay, bottom fade, larger card ---- */
.hero-bleed,
.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  min-height: 580px;
  overflow: hidden;
}

.hero-bg-stack {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease, visibility 0.5s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide iframe,
.hero-slide video,
.hero-slide .hero-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.hero-slide .hero-image-bg {
  background-size: cover;
  background-position: center center;
}

/* Overlay for readability — no watermark */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
  pointer-events: none;
  z-index: 2;
}

/* Bottom fade into next section (overlay so content stays visible) */
.hero-bleed::after,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  min-height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg) 85%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 100px 24px 60px;
}

.hero-box,
.hero-card {
  width: min(980px, 92vw);
  max-width: 1000px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-2);
}

.hero-copy {
  display: none;
  max-width: 100%;
}

.hero-copy.active {
  display: block;
}

.hero-title,
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0.5rem 0 0.4rem;
  letter-spacing: -0.02em;
}

.hero-copy h1 a {
  color: inherit;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.hero-meta,
.hero-copy .meta {
  margin-top: var(--s-3);
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-controls {
  margin-top: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.hero-arrows {
  display: flex;
  gap: var(--s-2);
}

.hero-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-thumbs {
  display: flex;
  gap: var(--s-2);
}

.hero-thumb {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(255, 43, 43, 0.4);
}

/* ---- Section bands: full width across screen ---- */
.section-band {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-band.band-dark {
  background: rgba(255, 255, 255, 0.03);
}

.section-band.band-red {
  background: rgba(255, 43, 43, 0.12);
  border-top-color: rgba(255, 43, 43, 0.2);
  border-bottom-color: rgba(255, 43, 43, 0.2);
}

.section-band.band-neutral {
  background: rgba(255, 255, 255, 0.04);
}

.section-band .container {
  width: min(var(--container), 94vw);
  margin: 0 auto;
}

/* Section title: single lightning from CSS only */
.section-title-inverted,
.section-title {
  margin: 0 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.4rem 0.85rem;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title-inverted::before,
.section-title::before {
  content: "⚡";
  color: #fff;
  font-size: 18px;
  margin-right: 0;
}

.section-title-icon {
  display: none;
}

/* Highlights grid */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.highlight-content .pill,
.highlight-content .badge {
  margin-top: 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.95fr);
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.post-row {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: var(--s-3);
  padding: var(--s-3);
}

.thumb {
  width: 172px;
  height: 98px;
  border-radius: 8px;
  overflow: hidden;
}

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

.post-copy h3 {
  margin: 0.25rem 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.post-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar .widget {
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--panel);
  padding: var(--s-3);
}

.sidebar .widget + .widget {
  margin-top: var(--s-3);
}

.widget h3 {
  margin: 0 0 var(--s-3);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Sidebar item: thumb + title + badge */
.sidebar-item,
.widget-post-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  transition: background 0.2s ease;
}

.sidebar-item:last-child,
.widget-post-card:last-child {
  border-bottom: 0;
}

.sidebar-item:hover,
.widget-post-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-thumb,
.widget-post-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-thumb img,
.widget-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-post-text strong,
.sidebar-item .item-title {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}

.widget-post-text em,
.sidebar-item .item-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
  margin-top: 0.2rem;
}

.widget-post-card:hover .widget-post-text strong {
  color: var(--red);
}

/* Footer */
.footer {
  margin-top: var(--s-6);
  border-top: 1px solid var(--border);
  background: radial-gradient(900px 340px at 50% -80px, rgba(255, 43, 43, 0.12), var(--bg) 60%);
}

.footer-inner {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  padding: var(--s-5) 0;
}

.footer-brand img {
  max-height: 52px;
  transition: transform 0.25s ease;
}

.footer-brand:hover img {
  transform: translateY(-2px) scale(1.05);
  filter: none;
}

.footer-columns h4 {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e8edf6;
  font-size: 0.75rem;
}

.footer-columns a {
  display: block;
  margin: 0.2rem 0;
  color: var(--muted);
}

.footer-columns a:hover {
  color: var(--red);
}

.footer-ad {
  padding: 0.25rem 0 var(--s-4);
}

/* Category grid, post grid */
.category-grid,
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr);
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.mini-card-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Highlight filters */
.section-head {
  margin-top: var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.highlight-filters {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.highlight-filters button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: var(--r-1);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.highlight-filters button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt);
}

.highlight-filters button.active {
  background: rgba(255, 43, 43, 0.25);
  border-color: var(--red);
  color: #fff;
}

/* Extra section / band wrapper when section has band class on content */
.extra-section {
  margin-top: var(--s-4);
}

/* Responsive */
@media (max-width: 1024px) {
  .editorial-grid,
  .category-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .topbar-inner {
    justify-content: space-between;
    gap: var(--s-2);
  }
  .hero-box,
  .hero-card {
    padding: 24px;
  }
  .hero-title,
  .hero-copy h1 {
    font-size: clamp(28px, 6vw, 44px);
  }
  .highlights {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-row {
    grid-template-columns: 1fr;
  }
  .thumb {
    width: 100%;
    height: 180px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .top-strip .top-search-inline input {
    width: 100px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-thumb {
    width: 48px;
    height: 32px;
  }
}
