/* ============================================
   BISCOITEI DESIGN SYSTEM v2
   Inspired by The Outline — Bold Editorial
   ============================================ */

:root {
  /* === BASE PALETTE === */
  --bg-body: #0A0A12;
  --bg-dark: #04284A;
  --bg-darker: #000000;
  --bg-surface: rgba(255,255,255,0.06);
  --bg-surface-solid: #111120;
  --bg-card: rgba(0,0,0,0.5);

  /* === SECTION COLORS (per category) === */
  --sec-hero: #04284A;
  --sec-politica: #68268C;
  --sec-economia: #1A5C3A;
  --sec-esportes: #881910;
  --sec-entretenimento: #183F63;
  --sec-tecnologia: #0F3460;
  --sec-saude: #146B4A;
  --sec-brasil: #8B6914;
  --sec-goiania: #B34D1B;
  --sec-mundo: #4A1A6B;
  --sec-default: #04284A;

  /* === ACCENT COLORS (neon/vivid per section) === */
  --accent-green: #00FF7E;
  --accent-coral: #FB6754;
  --accent-yellow: #FFE600;
  --accent-pink: #FF294C;
  --accent-mint: #AFFFCC;
  --accent-peach: #FFE7D1;
  --accent-blue: #4ECAFF;
  --accent-primary: #FF294C;

  /* === TEXT === */
  --text-white: #FFFFFF;
  --text-muted: rgba(255,255,255,0.65);
  --text-dim: rgba(255,255,255,0.4);
  --text-accent: var(--accent-coral);
  --text-dark: #04284A;

  /* === SPACING === */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --page-padding: clamp(16px, 4vw, 80px);
  --container-max: 1400px;
  --grid-gap: clamp(16px, 2vw, 24px);

  /* === RADIUS === */
  --radius-sharp: 0px;
  --radius-sm: 4px;
  --radius-card: 5px 5px 0 0;
  --radius-pill: 100px;

  /* === SHADOWS === */
  --shadow-card: 0 5px 7px rgba(0,0,0,0.25);
  --shadow-elevated: 0 10px 30px rgba(0,0,0,0.4);
  --shadow-hero: 0 20px 60px rgba(0,0,0,0.5);

  /* === Z-INDEX === */
  --z-base: 0;
  --z-card: 1;
  --z-sticky: 10;
  --z-header: 50;
  --z-overlay: 100;
  --z-modal: 200;

  /* === EASING === */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* === FONTS === */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* === BASE === */
body {
  background: var(--bg-body);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-style: italic;
}
.text-section-giant {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(60px, 12vw, 160px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -2px;
}
.text-headline-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1px;
}
.text-headline-2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.text-headline-3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  text-transform: uppercase;
}
.text-section {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.text-body-lg { font: 400 19px/1.65 var(--font-body); }
.text-body { font: 400 16px/1.6 var(--font-body); }
.text-body-sm { font: 400 14px/1.5 var(--font-body); }
.text-caption { font: 500 12px/1.4 var(--font-body); }
.text-tag { font: 700 12px/1 var(--font-mono); letter-spacing: 2px; text-transform: uppercase; }
.text-label { font: 500 11px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.text-meta { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.5px; }

/* ============================================
   TAGS
   ============================================ */
.tag {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  display: inline-block;
}
.tag--category {
  background: var(--cat-color, var(--accent-primary));
  color: white;
  border-radius: 0;
  align-self: flex-start;
}
.tag--category-sm {
  background: transparent;
  color: var(--sec-accent, var(--accent-coral));
  padding: 0;
  font-size: 10px;
}
.tag--breaking {
  background: var(--accent-yellow);
  color: #000;
  font-weight: 700;
  animation: pulse-soft 2s ease-in-out infinite;
}
.tag--topic {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.3);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s var(--ease-out-expo);
}
.tag--topic:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
.section-header__label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.section-header__line {
  width: 60px;
  height: 2px;
  background: var(--sec-accent, var(--accent-coral));
}
.section-header__link {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  text-decoration: none;
}
.section-header__link:hover {
  color: var(--text-white);
}

/* ============================================
   CARD HERO
   ============================================ */
.card-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: var(--bg-dark);
  display: block;
}
@media (min-width: 768px) {
  .card-hero { min-height: 650px; }
}
.card-hero__link {
  display: block; width: 100%; height: 100%;
  text-decoration: none; color: inherit;
}
.card-hero__image {
  position: absolute; inset: 0;
}
.card-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
  filter: brightness(0.6);
}
.card-hero:hover .card-hero__image img {
  transform: scale(1.04);
  filter: brightness(0.5);
}
.card-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.1) 100%);
}
.card-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
  color: var(--text-white);
  z-index: 1;
  text-align: center;
}
.card-hero__title {
  margin: var(--space-md) auto;
  max-width: 900px;
  color: var(--text-white);
}
.card-hero__excerpt {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  font-size: 18px;
  line-height: 1.6;
}
.card-hero__meta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-dim);
}

/* Read more button (Outline style) */
.btn-readmore {
  display: inline-block;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-white);
  border: 2px dashed rgba(255,255,255,0.5);
  padding: 12px 28px;
  margin-top: var(--space-lg);
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
}
.btn-readmore:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(255,41,76,0.1);
}

/* ============================================
   CARD MEDIUM (Overlay style)
   ============================================ */
.card-medium {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-dark);
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}
.card-medium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.card-medium__link {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.card-medium__image {
  position: absolute; inset: 0;
  overflow: hidden;
}
.card-medium__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
  filter: brightness(0.55);
}
.card-medium:hover .card-medium__image img {
  transform: scale(1.06);
  filter: brightness(0.4);
}
.card-medium__image--fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
}
.card-medium__body {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  min-height: 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-medium__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-white);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: var(--space-sm) 0;
}
.card-medium:hover .card-medium__title {
  color: var(--sec-accent, var(--accent-coral));
}
.card-medium__excerpt {
  color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.card-medium__meta {
  display: flex;
  gap: var(--space-md);
  color: var(--text-dim);
}

/* ============================================
   CARD COMPACT
   ============================================ */
.card-compact {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.card-compact:hover {
  background: rgba(255,255,255,0.05);
}
.card-compact__image {
  width: 100px; height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.card-compact__image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.8);
}
.card-compact__image--fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface);
}
.card-compact__body { flex: 1; min-width: 0; }
.card-compact__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-white);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: var(--space-xs) 0;
}
.card-compact:hover .card-compact__title {
  color: var(--accent-coral);
}

/* ============================================
   TICKER BAR
   ============================================ */
.ticker-bar {
  background: var(--accent-primary);
  color: var(--text-white);
  padding: var(--space-sm) 0;
}
.ticker-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.ticker-bar__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.ticker-bar__scroll {
  display: inline-flex;
  animation: ticker-scroll 45s linear infinite;
  white-space: nowrap;
}
.ticker-bar__item {
  margin: 0 var(--space-2xl);
  color: var(--text-white);
  transition: opacity 0.3s ease;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.ticker-bar__item:hover { opacity: 0.7; }

/* Ultimas bar */
.ultimas-bar {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ultimas-bar__inner {
  display: flex; align-items: center; gap: var(--space-md);
}
.ultimas-bar__label {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  flex-shrink: 0;
}
.ultimas-bar__track {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.ultimas-bar__scroll {
  display: inline-flex;
  animation: ticker-scroll 50s linear infinite;
  white-space: nowrap;
}
.ultimas-bar__item {
  margin: 0 var(--space-2xl);
  color: var(--accent-peach);
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 13px;
}
.ultimas-bar__item:hover { color: var(--accent-mint); }

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-md) 0;
  transition: background 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header--scrolled {
  background: rgba(10,10,18,0.95);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo-img { height: 36px; width: auto; filter: brightness(10); flex-shrink: 0; }
.site-header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: -1px;
  text-decoration: none;
  font-style: italic;
}
.site-header__nav { display: none; gap: 2px; }
@media (min-width: 768px) { .site-header__nav { display: flex; } }
.site-header__nav--open {
  display: flex;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--accent-primary);
  padding: var(--space-lg) var(--page-padding);
  flex-wrap: wrap; gap: var(--space-sm);
}

.nav-pill {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 14px;
  height: 36px;
  display: flex; align-items: center;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo);
  white-space: nowrap;
  border-radius: 0;
}
.nav-pill--sharp, .nav-pill--round { border-radius: 0; }
.nav-pill:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.08);
}
.nav-pill[data-active] {
  color: var(--accent-primary);
  background: rgba(255,41,76,0.12);
}

/* Header actions */
.site-header__actions {
  display: flex; align-items: center; gap: var(--space-sm);
}

/* Search */
.search-bar { position: relative; }
.search-bar__input {
  font: 400 14px/1 var(--font-body);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  padding: 10px 40px 10px 16px;
  width: 160px;
  color: var(--text-white);
  transition: width 0.4s var(--ease-out-expo),
              background 0.3s ease,
              border-color 0.3s ease;
}
.search-bar__input:focus {
  width: 240px;
  background: rgba(255,255,255,0.12);
  border-color: var(--accent-primary);
  outline: none;
}
.search-bar__input::placeholder { color: var(--text-dim); }
.search-bar__btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 0; display: flex;
  transition: color 0.3s ease;
}
.search-bar__btn:hover { color: var(--accent-primary); }

/* Mobile toggle */
.site-header__mobile-toggle {
  display: flex; align-items: center;
  padding: 8px 16px;
  background: var(--accent-primary);
  color: var(--text-white);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none; cursor: pointer;
}
@media (min-width: 768px) { .site-header__mobile-toggle { display: none; } }

/* ============================================
   HOME SECTIONS
   ============================================ */

/* Category section (full-width colored block) */
.home-section {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.home-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* Section giant title */
.home-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: var(--space-2xl);
  color: var(--sec-accent, var(--text-white));
  opacity: 0.9;
}

/* Video Banner (between hero & highlights) */
.home-video-banner {
  display: block;
  width: 100%;
  line-height: 0;
  background: var(--bg-body);
  perspective: 900px;
  padding: var(--space-2xl) 0;
  overflow: visible;
}
.home-video-banner a {
  display: block;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--page-padding, 24px);
}
.home-video-banner video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transform: rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.5s ease;
}
.home-video-banner video:hover {
  transform: rotateX(0) rotateY(0) scale(1.01);
}
@media (max-width: 767px) {
  .home-video-banner video {
    border-radius: 8px;
    transform: rotateX(1.5deg);
  }
}

/* Highlights grid — 3 cards iguais */
.home-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
@media (max-width: 1023px) {
  .home-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .home-highlights { grid-template-columns: 1fr; }
}

/* Trending / Mais Lidas */
.home-trending {
  background: var(--bg-darker);
  padding: var(--space-3xl) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.home-trending__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap);
}
.trending-card {
  display: flex; flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-muted);
  padding: var(--space-md);
  border-left: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.trending-card:hover {
  border-color: var(--accent-coral);
  color: var(--text-white);
}
.trending-card__rank {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--accent-coral);
  opacity: 0.6;
}
.trending-card__title {
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1023px) { .home-trending__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .home-trending__list { grid-template-columns: repeat(2, 1fr); } }

/* Category grid */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
@media (max-width: 1023px) { .home-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .home-category-grid { grid-template-columns: 1fr; } }

/* Latest section */
.home-latest-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
}
@media (max-width: 767px) { .home-latest-section { grid-template-columns: 1fr; } }

/* ============================================
   SQUIGGLY LINE SEPARATOR (Outline signature)
   ============================================ */
.squiggly {
  width: 100%;
  height: 12px;
  margin: var(--space-xl) 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M0 4c10 0 10-4 20-4s10 4 20 4 10-4 20-4 10 4 20 4 10-4 20-4 10 4 20 4' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 12px;
}
.squiggly--accent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M0 4c10 0 10-4 20-4s10 4 20 4 10-4 20-4 10 4 20 4 10-4 20-4 10 4 20 4' fill='none' stroke='rgba(255,41,76,0.5)' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  margin-top: 0;
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-top: 2px solid var(--accent-primary);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}
@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}
.site-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  font-style: italic;
  color: var(--text-white);
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}
.site-footer__desc {
  font-size: 14px; line-height: 1.6;
  color: var(--text-dim);
  max-width: 300px;
}
.site-footer__heading {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: var(--space-lg);
}
.site-footer__link {
  display: block; font-size: 14px;
  color: var(--text-dim);
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
  text-decoration: none;
}
.site-footer__link:hover { color: var(--text-white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  text-align: center;
}
.site-footer__legal {
  font: 400 11px/1.8 var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-bar {
  display: flex; gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px dashed rgba(255,255,255,0.15);
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  margin: var(--space-lg) 0;
}
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
}
.share-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.share-btn svg { width: 18px; height: 18px; }

.share-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,18,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  padding: var(--space-sm) var(--space-lg);
  display: flex; justify-content: center;
  gap: var(--space-md);
  z-index: var(--z-sticky);
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .share-sticky { display: none; } }

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-page__header {
  text-align: center;
  max-width: 900px;
  margin: var(--space-3xl) auto var(--space-2xl);
}
.article-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-style: italic;
  color: var(--text-white);
  margin: var(--space-md) 0;
}
.article-page__subtitle {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}
.article-page__meta {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
  color: var(--text-dim);
}
.article-page__author {
  display: flex; align-items: center; gap: var(--space-sm);
  text-decoration: none; color: inherit;
}
.article-page__author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.article-page__author-initial {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.article-page__author-name {
  font: 600 14px/1 var(--font-body);
  color: var(--text-white);
}
.article-page__author:hover .article-page__author-name {
  color: var(--accent-coral);
}

.article-page__image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  margin-bottom: var(--space-3xl);
}

/* Article Content */
.article-page__content {
  max-width: 720px;
  margin: 0 auto;
  font: 400 18px/1.8 var(--font-body);
  color: rgba(255,255,255,0.85);
}
.article-page__content p { margin-bottom: 1.5rem; }
.article-page__content h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 32px;
  line-height: 1.15; letter-spacing: -0.5px;
  color: var(--text-white);
  margin: 3rem 0 1rem;
}
.article-page__content h3 {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 22px;
  line-height: 1.3; text-transform: uppercase;
  color: var(--text-white);
  margin: 2rem 0 0.75rem;
}
.article-page__content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-2xl) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}
.article-page__content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-sm);
  margin: var(--space-xl) 0;
}
.article-page__content ul, .article-page__content ol {
  margin: 1rem 0; padding-left: 2rem;
}
.article-page__content li { margin-bottom: 0.5rem; }
.article-page__content a {
  color: var(--accent-coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.article-page__content a:hover { color: var(--accent-primary); }

/* Video embeds */
.article-video-embed {
  margin: 2rem 0; border-radius: var(--radius-sm);
  overflow: hidden; background: #000; aspect-ratio: 16/9;
}
.article-video-embed iframe { width: 100%; height: 100%; border: none; }

/* Tags */
.article-page__tags {
  max-width: 720px;
  margin: var(--space-2xl) auto;
  padding-top: var(--space-xl);
  border-top: 1px dashed rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
}

/* Related */
.article-page__related { margin-top: var(--space-4xl); }
.article-page__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
@media (max-width: 767px) {
  .article-page__related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-page__header {
  padding: var(--space-4xl) 0 var(--space-2xl);
  text-align: center;
}
.category-page__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -2px;
}
.category-page__desc {
  font: 400 18px/1.6 var(--font-body);
  color: var(--text-muted);
  margin-top: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.category-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
@media (max-width: 1023px) { .category-page__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .category-page__grid { grid-template-columns: 1fr; } }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb a:hover { color: var(--accent-coral); }
.breadcrumb__sep { margin: 0 var(--space-sm); opacity: 0.4; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}
.pagination__btn {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 1px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
}
.pagination__btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}
.pagination__btn--active {
  background: var(--text-white);
  color: var(--bg-darker);
  border-color: var(--text-white);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-lg); left: var(--space-lg);
  max-width: 480px;
  background: var(--bg-surface-solid);
  color: var(--text-white);
  padding: var(--space-xl);
  box-shadow: var(--shadow-hero);
  z-index: var(--z-modal);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent-primary);
}
@media (max-width: 639px) {
  .cookie-banner { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); max-width: none; }
}
.cookie-banner__text {
  font-size: 14px; line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.cookie-banner__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cookie-banner__btn {
  padding: 10px 20px;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.cookie-banner__btn--accept {
  background: var(--accent-primary); color: white;
}
.cookie-banner__btn--accept:hover { background: #e0203f; }
.cookie-banner__btn--essential {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.3);
}
.cookie-banner__btn--essential:hover {
  border-color: var(--text-white); color: var(--text-white);
}
.cookie-banner__privacy {
  color: var(--text-dim); font-size: 12px;
  text-decoration: underline; padding: 10px 8px;
}
.cookie-banner__privacy:hover { color: var(--text-white); }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 80px; right: var(--space-lg);
  width: 44px; height: 44px;
  background: var(--accent-primary);
  color: var(--text-white);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  z-index: var(--z-sticky);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: var(--shadow-card);
}
.scroll-top--visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: #e0203f; }
@media (min-width: 768px) { .scroll-top { bottom: var(--space-xl); } }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ============================================
   UTILITIES
   ============================================ */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.banner-label {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  display: block;
  margin-bottom: var(--space-xs);
}

*:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

/* ============================================
   RESPONSIVE — TABLET (768px – 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Site header */
  .site-header__logo-text { font-size: 22px; }
  .search-bar__input { width: 140px; }
  .search-bar__input:focus { width: 200px; }

  /* Hero card */
  .card-hero { min-height: 420px; }
  .card-hero__content { padding: var(--space-2xl) var(--space-xl) var(--space-xl); }

  /* Home sections */
  .home-section { padding: var(--space-2xl) 0; }
  .home-section__title { font-size: clamp(36px, 8vw, 96px); }

  /* Trending */
  .home-trending { padding: var(--space-2xl) 0; }

  /* Category page title */
  .category-page__header { padding: var(--space-2xl) 0 var(--space-xl); }
  .category-page__title { font-size: clamp(36px, 8vw, 96px); }

  /* Article page */
  .article-page__header { margin: var(--space-2xl) auto var(--space-xl); }
  .article-page__title { font-size: clamp(28px, 5vw, 52px); }

  /* Footer */
  .site-footer { padding: var(--space-2xl) 0 var(--space-xl); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}

/* ============================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Prevent overflow-x on body */
  body { overflow-x: hidden; }

  /* Container */
  .container { padding: 0 var(--space-md); }

  /* Site header */
  .site-header { padding: var(--space-sm) 0; }
  .site-header__logo-text { font-size: 20px; }
  .site-header__logo-img { height: 28px; }
  .search-bar__input { width: 120px; font-size: 13px; }
  .search-bar__input:focus { width: 120px; }

  /* Hero card */
  .card-hero { min-height: 260px; }
  .card-hero__content {
    padding: var(--space-md) var(--space-md) var(--space-md);
  }
  .card-hero__excerpt { display: none; }
  .btn-readmore { padding: 10px 20px; font-size: 11px; margin-top: var(--space-md); }

  /* Medium cards */
  .card-medium { aspect-ratio: 16/9; }

  /* Home sections */
  .home-section { padding: var(--space-xl) 0; }
  .home-section__title {
    font-size: clamp(32px, 10vw, 60px);
    margin-bottom: var(--space-xl);
    letter-spacing: -1px;
  }

  /* Trending */
  .home-trending { padding: var(--space-xl) 0; }
  .trending-card__rank {
    font-size: clamp(24px, 6vw, 36px);
  }

  /* Category page */
  .category-page__header {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  .category-page__title {
    font-size: clamp(28px, 9vw, 56px);
    letter-spacing: -1px;
  }

  /* Article page */
  .article-page__header {
    margin: var(--space-xl) auto var(--space-lg);
    padding: 0 var(--space-sm);
  }
  .article-page__title {
    font-size: clamp(24px, 7vw, 40px);
    letter-spacing: -0.5px;
  }
  .article-page__subtitle {
    font-size: 17px;
  }
  .article-page__meta {
    gap: var(--space-sm);
    font-size: 12px;
  }
  .article-page__image {
    max-height: 260px;
    margin-bottom: var(--space-xl);
  }
  .article-page__content {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 var(--space-xs);
  }
  .article-page__content h2 { font-size: 22px; }
  .article-page__content h3 { font-size: 18px; }
  .article-page__content blockquote {
    font-size: 17px;
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-xl) 0;
  }
  .article-page__related-grid { grid-template-columns: 1fr; }

  /* Section header */
  .section-header { flex-wrap: wrap; gap: var(--space-sm); }

  /* Ticker bars */
  .ticker-bar { padding: 6px 0; }
  .ticker-bar__item { font-size: 12px; margin: 0 var(--space-lg); }
  .ultimas-bar__item { font-size: 11px; margin: 0 var(--space-md); }

  /* Cookie banner */
  .cookie-banner {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    max-width: none;
    padding: var(--space-lg);
  }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__btn { text-align: center; }

  /* Scroll top */
  .scroll-top { bottom: 70px; right: var(--space-md); width: 40px; height: 40px; }

  /* Share bar */
  .share-bar { flex-wrap: wrap; gap: var(--space-xs); }

  /* Footer */
  .site-footer {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .site-footer__brand-name { font-size: 24px; }
  .site-footer__desc { max-width: 100%; }
  .site-footer__bottom { margin-top: var(--space-xl); }

  /* Pagination */
  .pagination { flex-wrap: wrap; margin-top: var(--space-xl); }
  .pagination__btn { padding: 8px 12px; font-size: 11px; }

  /* Tags */
  .tag--topic { padding: 6px 12px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 11px; }

  /* Video embed */
  .home-video-banner { padding: var(--space-lg) 0; }
  .home-video-banner video { transform: none; border-radius: 6px; }
}

/* ============================================
   TAILWIND OVERRIDES FOR MOBILE
   Fixes for Tailwind-based EJS templates on mobile
   ============================================ */
@media (max-width: 767px) {
  /* Hero section padding */
  .max-w-7xl.mx-auto.px-4.py-8 { padding-top: 1rem; padding-bottom: 1rem; }

  /* Fix search input overflow in header */
  .w-40 { width: 9rem; }
  input[type="text"][class*="w-40"] {
    width: 100%;
    max-width: 160px;
  }

  /* Article page content font */
  .article-content { font-size: 1rem; line-height: 1.75; }
  .article-content h2 { font-size: 1.3rem; }
  .article-content h3 { font-size: 1.1rem; }

  /* Latest articles list — compact image width */
  .w-32 { width: 5rem; }
  .h-24 { height: 4rem; }

  /* Category section h2 font size */
  .text-xl.font-bold { font-size: 1rem; }
}

