/* ============================================================
   NewsBlog — app.css
   Editorial magazine aesthetic | Dark/Light mode via data-theme
   Font: Playfair Display (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:          #f5f3ee;
  --bg-card:     #ffffff;
  --bg-nav:      #faf9f6;
  --surface:     #ede9e0;
  --border:      #d8d2c4;
  --text:        #1a1714;
  --text-muted:  #6b6355;
  --text-light:  #9c9080;
  --accent:      #c8401a;
  --accent-dark: #a33214;
  --accent-bg:   #fdf1ee;
  --link:        #1a1714;
  --shadow:      0 2px 12px rgba(0,0,0,.06);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.10);
  --radius:      4px;
  --radius-lg:   8px;
  --nav-h:       64px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   .2s ease;
}

[data-theme="dark"] {
  --bg:          #0e0d0b;
  --bg-card:     #1a1814;
  --bg-nav:      #141210;
  --surface:     #242018;
  --border:      #2e2a22;
  --text:        #f0ece4;
  --text-muted:  #9c9080;
  --text-light:  #6b6355;
  --accent:      #e05a36;
  --accent-dark: #f07050;
  --accent-bg:   #1f1208;
  --link:        #f0ece4;
  --shadow:      0 2px 12px rgba(0,0,0,.3);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.5);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: background var(--transition);
  /* needed for mobile dropdown positioning */
  overflow: visible;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.nav__logo span { color: var(--accent); }

.nav__search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.nav__search input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 1px solid var(--border);
  border-radius: 40px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .875rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.nav__search input:focus { border-color: var(--accent); background: var(--bg-card); }

.nav__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover { color: var(--text); background: var(--surface); }

.nav__btn {
  padding: 7px 16px;
  border-radius: 40px;
  font-size: .875rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.nav__btn:hover { background: var(--accent-dark); color: #fff; }

.nav__theme {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.nav__theme:hover { background: var(--border); color: var(--text); }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ── Category strip ─────────────────────────────────────── */
.categories {
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
}

.categories__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories__inner::-webkit-scrollbar { display: none; }

.cat-link {
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.cat-link:hover, .cat-link.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Layout wrapper ─────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero / Featured post ───────────────────────────────── */
.hero {
  padding: 48px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.hero__image:hover img { transform: scale(1.03); }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
}

.badge--auto {
  background: var(--surface);
  color: var(--text-muted);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.hero__title a { color: inherit; }
.hero__title a:hover { color: var(--accent); }

.hero__excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-muted);
}

.hero__byline strong { color: var(--text); }

/* ── Section header ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Post grid ───────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}

.post-card__stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Article / Single post ───────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 48px 0 80px;
}

.article__hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/7;
  background: var(--surface);
}

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

.article__header { margin-bottom: 32px; }

.article__category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article__meta strong { color: var(--text); }

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

.article__body p { margin-bottom: 1.4em; }
.article__body h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2em 0 .75em; font-weight: 700; }
.article__body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 1.5em 0 .5em; font-weight: 700; }
.article__body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 24px;
  margin: 1.5em 0;
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article__source {
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: .82rem;
  color: var(--text-muted);
}

.article__source a { color: var(--accent); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: .78rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Like button */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.like-btn:hover { border-color: var(--accent); color: var(--accent); }
.like-btn.liked { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { padding-top: 8px; }

.sidebar__widget {
  margin-bottom: 36px;
}

.sidebar__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}

.sidebar__post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar__post:last-child { border-bottom: none; }

.sidebar__thumb {
  width: 68px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.sidebar__post-title {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar__post-title a { color: inherit; }
.sidebar__post-title a:hover { color: var(--accent); }

.sidebar__post-date { font-size: .75rem; color: var(--text-light); margin-top: 4px; }

/* ── Comments ────────────────────────────────────────────── */
.comments-section { margin-top: 56px; }

.comment-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
}

.comment-form__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--accent); }

textarea.form-control { resize: vertical; min-height: 110px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
  font-family: var(--font-body);
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 6px 14px; font-size: .8rem; }

.comment-list { display: flex; flex-direction: column; gap: 20px; }

.comment {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.comment__author { font-weight: 600; font-size: .9rem; }
.comment__date { font-size: .78rem; color: var(--text-light); margin-left: auto; }
.comment__body { font-size: .92rem; line-height: 1.65; }

.comment__replies {
  margin-top: 16px;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.reply-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-body);
}

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -.03em;
}

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

.auth-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 28px;
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--text-light);
  font-size: .82rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 12px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 20px;
}

.alert--error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
[data-theme="dark"] .alert--error { background: #1f0808; border-color: #7f1d1d; color: #fca5a5; }
.alert--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
[data-theme="dark"] .alert--success { background: #052e16; border-color: #166534; color: #86efac; }

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

.page-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
  padding: 0 12px;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-light);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* ── Empty state ─────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty__icon { font-size: 3rem; margin-bottom: 16px; }
.empty__title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; color: var(--text); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav__search { display: none; }
  .nav__hamburger { display: flex; align-items: center; justify-content: center; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav__links .nav__link,
  .nav__links .nav__btn {
    display: block;
    padding: 12px 16px;
    font-size: .95rem;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav__links .nav__btn {
    border-bottom: none;
    text-align: center;
    margin-top: 4px;
  }
}

/* ── Share buttons ───────────────────────────────────────── */
.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.share-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share-btn--x:hover    { background: #000; }
.share-btn--fb:hover   { background: #1877f2; }
.share-btn--wa:hover   { background: #25d366; }
.share-btn--li:hover   { background: #0077b5; }
.share-btn--copy:hover { background: var(--accent); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fadeup {
  animation: fadeUp .5s ease both;
}

.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

/* ── Back button ─────────────────────────────────────────── */
.article__back {
  margin-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, gap .2s;
  letter-spacing: .01em;
}

.back-btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  transition: border-color .2s, background .2s, transform .2s;
  flex-shrink: 0;
}

.back-btn__text {
  transition: transform .2s;
}

.back-btn:hover {
  color: var(--text);
  gap: 10px;
}

.back-btn:hover .back-btn__arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateX(-2px);
}

/* ── Share buttons in header ─────────────────────────────── */
.share-buttons--header {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Infinity scroll loader ──────────────────────────────── */
#infiniteLoader {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: .85rem;
}

.load-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: 8px;
}

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