/* ========================================================================
   TrinetraWatch — Supplementary Styles
   Additional component styles for the homepage HTML structure
   ======================================================================== */

/* ── Body No-Scroll ────────────────────────────────────────────────── */
body.no-scroll {
  overflow: hidden;
}

/* ── Theme Transition ──────────────────────────────────────────────── */
body.theme-transitioning,
body.theme-transitioning * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ── Section Scroll Animations ─────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Surface Background ────────────────────────────────────── */
.section--surface {
  background-color: var(--color-surface);
}

.section--ad {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* ========================================================================
   HEADER ADDITIONS
   ======================================================================== */

.header__top-bar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__datetime {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.header__top-links {
  display: flex;
  gap: var(--space-6);
}

.header__top-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header__top-links a:hover {
  color: #fff;
}

.header__main {
  background: var(--color-bg);
}

.header--scrolled {
  box-shadow: var(--shadow-lg);
}

.header__nav-item {
  position: relative;
}

.header__nav-link--dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ── Header Logo Image ─────────────────────────────────────────────── */
.header__logo img {
  height: 40px;
  width: auto;
}

/* ── Mega Menu Positioned Styles ───────────────────────────────────── */
.header__nav-item .mega-menu {
  position: absolute;
  top: 100%;
  left: -200px;
  min-width: 500px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: var(--z-overlay);
}

.header__nav-item .mega-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.mega-menu__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mega-menu__heading {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

/* ── Search/Dark Toggle Button Styles ──────────────────────────────── */
.search-toggle,
.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.search-toggle:hover,
.dark-toggle:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.dark-toggle__icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ========================================================================
   TICKER JS INTEGRATION
   ======================================================================== */

.ticker__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

.ticker__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: ticker-pulse 1.5s ease-in-out infinite;
  margin-right: var(--space-1);
}

.ticker__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ticker__text--exit {
  opacity: 0;
  transform: translateY(-10px);
}

.ticker__text--enter {
  opacity: 1;
  transform: translateY(0);
}

.ticker__link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ticker__headline {
  font-weight: 500;
}

.ticker__time {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* ========================================================================
   MOBILE NAV ADDITIONS
   ======================================================================== */

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
}

.mobile-nav__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

/* ── Hamburger is-open state ───────────────────────────────────────── */
.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================================================
   SEARCH OVERLAY ADDITIONS
   ======================================================================== */

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.search-overlay__input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  padding-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}

.search-overlay__input-wrap:focus-within {
  border-color: var(--color-accent);
}

.search-overlay__input-wrap .search-overlay__input {
  border: none;
  border-bottom: none;
  font-size: var(--text-2xl);
  padding: 0;
}

.search-overlay__icon {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.search-overlay__kbd {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.search-overlay__placeholder,
.search-overlay__no-results {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: var(--space-12) 0;
}

.search-overlay__placeholder-icon {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 auto var(--space-4);
}

.search-overlay__placeholder p,
.search-overlay__no-results p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.search-overlay__no-results span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.3);
}

.search-overlay__results-header {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result {
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result__category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.search-result__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-1);
}

.search-result__title mark {
  background: rgba(193, 39, 45, 0.3);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result__date {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================================================
   CARD LINK STYLES
   ======================================================================== */

.card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card__link--horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-4);
  align-items: center;
}

.card--compact {
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-4) 0;
}

.card--compact:hover {
  transform: none;
  box-shadow: none;
}

.card--compact .card__body {
  padding: 0;
}

.card__image--small {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

.card__title--sm {
  font-size: var(--text-sm);
  font-weight: 600;
  -webkit-line-clamp: 2;
  margin-bottom: var(--space-2);
}

.card__title--hero {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  -webkit-line-clamp: 3;
}

.card__author {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.card__date {
  color: var(--color-text-muted);
}

.card__reading-time {
  color: var(--color-text-muted);
}

.card__views {
  color: var(--color-text-muted);
}

/* ── Horizontal Card for Latest News ──────────────────────────────── */
.card--horizontal .card__link--horizontal {
  grid-template-columns: 220px 1fr;
}

.card__image--horizontal {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-md);
}

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

@media (max-width: 768px) {
  .card__link--horizontal {
    grid-template-columns: 1fr;
  }

  .card__image--small {
    width: 100%;
    height: 160px;
  }

  .card--horizontal .card__link--horizontal {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   CATEGORY IMAGE OVERLAY
   ======================================================================== */

.card__image .card__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

/* ========================================================================
   OPINION CARD ADDITIONS
   ======================================================================== */

.card--opinion {
  text-align: center;
  padding: var(--space-6);
}

.card--opinion .card__body {
  padding: var(--space-4) 0 0;
}

.card__opinion-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
}

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

.card__author-info {
  text-align: center;
}

.card__author-name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
}

.card__author-role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.card__excerpt--quote {
  font-style: italic;
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-accent);
  text-align: left;
}

/* ========================================================================
   SPORT CARD ADDITIONS
   ======================================================================== */

.card--sport {
  padding: var(--space-6);
  border-left: 4px solid var(--color-accent);
}

.card--sport:hover {
  transform: translateY(-2px);
}

.card__sport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.card__sport-label {
  font-size: var(--text-xs);
}

.badge--completed {
  background: #27ae60;
  color: #fff;
}

.badge--upcoming {
  background: #3498db;
  color: #fff;
}

.card__sport-type {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__sport-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.card__sport-team {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card__sport-flag {
  font-size: var(--text-xl);
}

.card__sport-name {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
}

.card__sport-score {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
}

.card__sport-vs {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card__sport-footer {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================================================================
   MOSAIC CARD (ENTERTAINMENT)
   ======================================================================== */

.card--mosaic {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
}

.card--mosaic .card__image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.card--mosaic .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 100%;
}

.card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 2;
}

.card__title--overlay {
  color: #fff;
  font-size: var(--text-md);
  margin-bottom: 0;
}

.card--mosaic-large .card__title--overlay {
  font-size: var(--text-xl);
}

.card__overlay .card__category {
  position: static;
  margin-bottom: var(--space-3);
}

/* ========================================================================
   VIDEO CARD ADDITIONS
   ======================================================================== */

.card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: background var(--transition-fast);
}

.card--video:hover .card__play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.card__play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.card__play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  fill: var(--color-primary);
}

.card--video:hover .card__play-btn {
  transform: scale(1.1);
}

.card__duration {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ========================================================================
   SHARE COUNT
   ======================================================================== */

.card__share-count {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  z-index: 2;
}

/* ========================================================================
   EDITORIAL GRID
   ======================================================================== */

.editorial-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
}

.card--editorial-featured .card__title--editorial {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 800;
}

.editorial-grid__side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   TRENDING GRID
   ======================================================================== */

.trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.trending-list--full {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.trending-item--large {
  padding: var(--space-4);
}

.trending-item__image {
  width: 100px;
  height: 68px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

.trending-item__title {
  text-decoration: none;
  display: block;
}

@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   AD ZONE ADDITIONS
   ======================================================================== */

.ad-zone {
  flex-direction: column;
  gap: var(--space-2);
}

.ad-zone__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-zone__size {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ========================================================================
   SIDEBAR WIDGET ADDITIONS
   ======================================================================== */

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-widget__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.sidebar-widget--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a1628 100%);
  color: #fff;
}

.sidebar-widget--cta .sidebar-widget__title {
  color: #fff;
  border-color: var(--color-accent);
}

.sidebar-widget--cta .sidebar-widget__text {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-widget__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-widget__input {
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.sidebar-widget__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-widget__input:focus {
  border-color: var(--color-accent);
}

.sidebar-widget__btn {
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sidebar-widget__btn:hover {
  background: var(--color-accent-hover);
}

/* ── Sidebar Ad Zone ──────────────────────────────────────────────── */
.layout-with-sidebar__sidebar .ad-zone--rectangle {
  width: 100%;
  margin-bottom: var(--space-6);
}

/* ========================================================================
   NEWSLETTER ADDITIONS
   ======================================================================== */

.newsletter__inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter__content {
  margin-bottom: var(--space-8);
}

.newsletter__input-group {
  display: flex;
  gap: var(--space-3);
}

.newsletter__disclaimer {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.newsletter__disclaimer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .newsletter__input-group {
    flex-direction: column;
  }
}

/* ========================================================================
   FOOTER ADDITIONS
   ======================================================================== */

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.footer__description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
}

.footer__links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.footer__links-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--space-3);
}

.footer__newsletter {
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer__newsletter .footer__heading {
  margin-bottom: 0;
  white-space: nowrap;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: #fff;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer__links-grid {
    grid-template-columns: 1fr;
  }

  .footer__newsletter {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
}

/* ========================================================================
   RESPONSIVE HEADER
   ======================================================================== */

@media (max-width: 768px) {
  .header__top-bar {
    display: none;
  }

  .header__logo img {
    height: 30px;
  }
}

/* ========================================================================
   DARK MODE ADDITIONS
   ======================================================================== */

[data-theme='dark'] .header__main {
  background: #0E0F10;
}

[data-theme='dark'] .site-header {
  background: rgba(14, 15, 16, 0.9);
  border-color: #2C2D31;
}

[data-theme='dark'] .card--compact {
  background: transparent;
  border-color: #2C2D31;
}

[data-theme='dark'] .header__nav-item .mega-menu {
  background: #1A1B1E;
  border-color: #2C2D31;
}

[data-theme='dark'] .mobile-nav {
  background: #0E0F10;
}

[data-theme='dark'] .card--sport {
  background: #1A1B1E;
  border-color: #2C2D31;
}

[data-theme='dark'] .card__sport-score {
  color: #8AB4F8;
}

[data-theme='dark'] .card--mosaic {
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .header__main {
    background: #0E0F10;
  }

  :root:not([data-theme='light']) .card--compact {
    background: transparent;
    border-color: #2C2D31;
  }

  :root:not([data-theme='light']) .mobile-nav {
    background: #0E0F10;
  }
}

/* ========================================================================
   PREMIUM DESIGN ENHANCEMENTS
   ======================================================================== */

/* ── Hero Section ─────────────────────────────────────────────────── */
.section--hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

/* ── Elevated Card ────────────────────────────────────────────────── */
.card--elevated {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: none;
}

.card--elevated:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
}

/* ── Image Overlay Gradient ───────────────────────────────────────── */
.card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.08) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Badge Accent ─────────────────────────────────────────────────── */
.badge--accent {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Meta Dot Separator ───────────────────────────────────────────── */
.card__meta-dot {
  color: var(--color-text-muted);
  font-weight: 700;
}

/* ── Section Cards ────────────────────────────────────────────────── */
.card--section {
  border: none;
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.card--section:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card__image--section {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.card__image--section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--section:hover .card__image--section img {
  transform: scale(1.06);
}

.card__excerpt--sm {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

/* ── Side Card ────────────────────────────────────────────────────── */
.card--side {
  border: none;
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card--side:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ── Section Header Icon ──────────────────────────────────────────── */
.section-header__icon {
  margin-right: var(--space-2);
  font-size: 1.1em;
}

/* ── Tinted Section ───────────────────────────────────────────────── */
.section--tinted {
  background: var(--color-surface);
}

/* ── Newsletter Badge ─────────────────────────────────────────────── */
.newsletter__badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(193, 39, 45, 0.15);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.newsletter__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Dark Mode Enhancements ───────────────────────────────────────── */
[data-theme='dark'] .card--elevated {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #1A1B1E;
}

[data-theme='dark'] .card--section {
  background: #1A1B1E;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .card--section:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .card--side {
  background: #1A1B1E;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .section--tinted {
  background: #111214;
}

[data-theme='dark'] .newsletter__badge {
  background: rgba(193, 39, 45, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .card--elevated {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #1A1B1E;
  }

  :root:not([data-theme='light']) .card--section {
    background: #1A1B1E;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  :root:not([data-theme='light']) .section--tinted {
    background: #111214;
  }
}

/* ========================================================================
   SUBSCRIPTION FORM FEEDBACK
   ======================================================================== */

.tw-subscribe-msg {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  min-height: 20px;
  transition: all var(--transition-fast);
}

.tw-subscribe-msg:empty {
  display: none;
}

.tw-subscribe-msg--success {
  color: #27ae60;
  font-weight: 600;
}

.tw-subscribe-msg--error {
  color: #e74c3c;
  font-weight: 600;
}

/* In dark newsletter section */
.newsletter .tw-subscribe-msg--success {
  color: #6dffad;
}

.newsletter .tw-subscribe-msg--error {
  color: #ff7b7b;
}

/* Footer variant */
.tw-subscribe-msg--footer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

.tw-subscribe-msg--footer.tw-subscribe-msg--success {
  color: #6dffad;
}

.tw-subscribe-msg--footer.tw-subscribe-msg--error {
  color: #ff7b7b;
}

/* Button disabled state */
.tw-subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

