/* ============================================================
   Football News — Full Design System
   Premium dark theme with vibrant green accents
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:         #05080f;
  --bg-base:         #080d18;
  --bg-surface:      #0d1526;
  --bg-card:         rgba(255, 255, 255, 0.032);
  --bg-card-hover:   rgba(255, 255, 255, 0.065);
  --bg-input:        rgba(255, 255, 255, 0.06);
  --bg-overlay:      rgba(5, 8, 15, 0.8);

  /* Borders */
  --border:          rgba(255, 255, 255, 0.07);
  --border-hover:    rgba(0, 230, 118, 0.45);
  --border-focus:    rgba(0, 230, 118, 0.7);
  --border-card:     rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --green:           #00e676;
  --green-dark:      #00c853;
  --green-glow:      rgba(0, 230, 118, 0.2);
  --green-dim:       rgba(0, 230, 118, 0.12);
  --orange:          #ff7043;
  --blue:            #29b6f6;

  /* Text */
  --text-primary:    #eef2f7;
  --text-secondary:  #7a8fa6;
  --text-muted:      #3d4f63;
  --text-accent:     #00e676;

  /* Gradients */
  --grad-hero:       linear-gradient(160deg, #080d18 0%, #0c1a30 50%, #080d18 100%);
  --grad-green:      linear-gradient(135deg, #00e676 0%, #00c853 100%);
  --grad-title:      linear-gradient(135deg, #ffffff 10%, #00e676 90%);
  --grad-card-img:   linear-gradient(180deg, transparent 45%, rgba(5, 8, 15, 0.97) 100%);
  --grad-shine:      linear-gradient(135deg, rgba(0,230,118,0.08) 0%, transparent 60%);

  /* Shadows */
  --shadow-sm:       0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-card:     0 4px 28px rgba(0, 0, 0, 0.5);
  --shadow-hover:    0 12px 48px rgba(0, 230, 118, 0.18);
  --shadow-btn:      0 4px 20px rgba(0, 230, 118, 0.35);
  --shadow-glow:     0 0 40px rgba(0, 230, 118, 0.12);

  /* Dimensions */
  --container:       1280px;
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --radius-pill:     999px;

  /* Motion */
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:        0.28s;
  --duration-slow:   0.5s;

  /* Typography */
  --font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:       var(--font);
  background-color:  var(--bg-deep);
  color:             var(--text-primary);
  line-height:       1.6;
  min-height:        100vh;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--green-dark);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 8, 15, 0.85);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar__logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--green));
}

.navbar__logo-text span {
  color: var(--green);
}

.navbar__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s ease infinite;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 230, 118, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 230, 118, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative football grid pattern */
.hero__bg .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-pill);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  background: var(--grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
  font-weight: 400;
  line-height: 1.7;
}

/* ── Search Bar ───────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  backdrop-filter: blur(12px);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--green-dim), var(--shadow-glow);
}

.search-bar__icon {
  font-size: 1.1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-bar__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  caret-color: var(--green);
}

.search-bar__input::placeholder {
  color: var(--text-muted);
}

.search-bar__btn {
  flex-shrink: 0;
  padding: 10px 24px;
  background: var(--grad-green);
  color: #000;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--duration) var(--ease-spring), box-shadow var(--duration) var(--ease);
  letter-spacing: 0.3px;
}

.search-bar__btn:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-btn);
}

.search-bar__btn:active {
  transform: scale(0.97);
}

.search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  margin-right: 8px;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.search-clear:hover {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--border-hover);
}

.search-clear.visible { display: flex; }

/* ── Section Header ───────────────────────────────────────── */
.section {
  padding: 60px 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__title-icon {
  font-size: 1.3rem;
}

.section__count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ── Article Grid ─────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Article Card ─────────────────────────────────────────── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform       var(--duration) var(--ease),
    box-shadow      var(--duration) var(--ease),
    border-color    var(--duration) var(--ease),
    background      var(--duration) var(--ease);
  position: relative;
}

.article-card:hover {
  transform:    translateY(-6px);
  box-shadow:   var(--shadow-hover);
  border-color: var(--border-hover);
  background:   var(--bg-card-hover);
}

/* Card image */
.article-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface);
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.article-card:hover .article-card__img {
  transform: scale(1.06);
}

.article-card__img-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-card-img);
  pointer-events: none;
}

.article-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #111d2e 100%);
  font-size: 3rem;
}

/* Media type badge on image */
.article-card__type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.badge--image    { background: rgba(0, 230, 118, 0.2); color: #00e676; }
.badge--video    { background: rgba(255, 112, 67, 0.2); color: #ff7043; }
.badge--reels    { background: rgba(171, 71, 188, 0.25); color: #ce93d8; }
.badge--carousel { background: rgba(41, 182, 246, 0.2); color: #29b6f6; }

/* Card body */
.article-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card__date {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card footer */
.article-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn--read-more {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--grad-green);
  color: #000;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform   var(--duration) var(--ease-spring),
    box-shadow  var(--duration) var(--ease),
    opacity     var(--duration) var(--ease);
}

.btn--read-more:hover {
  transform:  scale(1.04);
  box-shadow: var(--shadow-btn);
  color: #000;
}

.btn--read-more:active {
  transform: scale(0.97);
}

.btn--instagram {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn--instagram:hover {
  background: rgba(193, 53, 132, 0.15);
  border-color: rgba(193, 53, 132, 0.4);
  color: #c13584;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state__icon {
  font-size: 4rem;
  opacity: 0.4;
}

.empty-state__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.empty-state__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* ── Skeleton Loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-surface) 25%,
    rgba(255,255,255,0.05) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-img  { aspect-ratio: 16/10; width: 100%; }
.skeleton-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-line { height: 14px; }
.skeleton-line--title { height: 18px; width: 85%; }
.skeleton-line--short { width: 55%; }
.skeleton-line--long  { width: 92%; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 32px;
  flex-wrap: wrap;
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  gap: 6px;
}

.pagination__btn:hover:not(:disabled) {
  background: var(--green-dim);
  border-color: var(--border-hover);
  color: var(--green);
}

.pagination__btn.active {
  background: var(--grad-green);
  border-color: transparent;
  color: #000;
  font-weight: 700;
}

.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination__ellipsis {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Toast Notification ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 320px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { border-left: 3px solid var(--green); }
.toast--error   { border-left: 3px solid var(--orange); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: -0.3px;
}

.footer__logo span { color: var(--green); }

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.footer__link:hover { color: var(--green); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* Article hero */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-surface);
}

.article-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 15, 0.2) 0%,
    rgba(5, 8, 15, 0.5) 50%,
    rgba(5, 8, 15, 0.96) 100%
  );
}

.article-hero__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #0d1526 0%, #111d2e 100%);
}

.article-hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
  width: 100%;
}

.article-hero__content .container {
  max-width: 860px;
}

.article__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.article__back-btn:hover {
  background: var(--green-dim);
  border-color: var(--border-hover);
  color: var(--green);
}

.article__meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article__media-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-pill);
}

.article__date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.article__title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Article body */
.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.article-body__lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.article-body__content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body__content p {
  margin-bottom: 24px;
}

.article-body__content p:first-child {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.article-body__ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(41, 182, 246, 0.1);
  border: 1px solid rgba(41, 182, 246, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 28px;
}

/* Hashtags / tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.article-tag:hover {
  color: var(--green);
  border-color: var(--border-hover);
  background: var(--green-dim);
}

/* Share bar */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.article-share__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.share-btn:hover { border-color: var(--border-hover); color: var(--green); background: var(--green-dim); }
.share-btn--tw:hover  { color: #1da1f2; border-color: rgba(29,161,242,0.4); background: rgba(29,161,242,0.1); }
.share-btn--wa:hover  { color: #25d366; border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.1); }
.share-btn--ig:hover  { color: #e1306c; border-color: rgba(225,48,108,0.4); background: rgba(225,48,108,0.1); }

/* Instagram source link */
.article-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.article-source:hover {
  color: var(--green);
  border-color: var(--border-hover);
}

/* ── Article loading state ────────────────────────────────── */
.article-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.article-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.article-error__code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -4px;
}

.article-error__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up { animation: fade-up 0.5s var(--ease) both; }

/* Staggered card entrance */
.article-card:nth-child(1)  { animation: fade-up 0.4s 0.05s var(--ease) both; }
.article-card:nth-child(2)  { animation: fade-up 0.4s 0.10s var(--ease) both; }
.article-card:nth-child(3)  { animation: fade-up 0.4s 0.15s var(--ease) both; }
.article-card:nth-child(4)  { animation: fade-up 0.4s 0.20s var(--ease) both; }
.article-card:nth-child(5)  { animation: fade-up 0.4s 0.25s var(--ease) both; }
.article-card:nth-child(6)  { animation: fade-up 0.4s 0.30s var(--ease) both; }
.article-card:nth-child(7)  { animation: fade-up 0.4s 0.35s var(--ease) both; }
.article-card:nth-child(8)  { animation: fade-up 0.4s 0.40s var(--ease) both; }
.article-card:nth-child(n+9){ animation: fade-up 0.4s 0.45s var(--ease) both; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero__title { letter-spacing: -1.5px; }

  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .section { padding: 40px 0; }
  .section__header { margin-bottom: 24px; }

  .article-hero { min-height: 360px; }
  .article-hero__content { padding: 32px 0 40px; }

  .article-body { padding: 36px 24px 60px; }
  .article-body__lead { font-size: 1.05rem; }

  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer__links { justify-content: center; }

  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .articles-grid { grid-template-columns: 1fr; gap: 16px; }

  .navbar__badge { display: none; }

  .search-bar__btn { padding: 10px 16px; }

  .hero__subtitle { font-size: 0.95rem; }

  .article__title { letter-spacing: -1px; }

  .article-share { gap: 8px; }

  .pagination { gap: 6px; }
  .pagination__btn { min-width: 36px; height: 36px; font-size: 0.8rem; }
}
