/* ================================================================
   COSMOS — MASTER STYLESHEET  v2.0
   Single source of truth for ALL pages (index, post-view,
   static pages, create-post).
   In Laravel: resources/css/cosmos.css  →  compiled by Vite

   Theme strategy: CSS custom properties on :root (dark default)
   Light mode: [data-theme="light"] overrides every token.
   Toggle: Alpine sets data-theme on <html>; persisted in
   localStorage via layout.js.
================================================================ */

/* ── Google Fonts (kept here for reference; loaded in <head>) ── */
/* Playfair Display · DM Sans · DM Mono                          */

/* ================================================================
   1. DESIGN TOKENS — DARK (default)
================================================================ */

/* ================================================================
   2. DESIGN TOKENS — LIGHT
================================================================ */
[data-theme="light"] {
  --bg:       #f8f7f4;
  --bg2:      #f0ede8;
  --bg3:      #e8e4de;
  --surface:  #ffffff;
  --surface2: #f0ede8;

  --border:   rgba(0,0,0,0.08);
  --border2:  rgba(0,0,0,0.15);

  --text:     #1a1917;
  --text2:    #4a4540;
  --text3:    #8a8078;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 28px rgba(0,0,0,.12);
  --shadow-lg:  0 24px 80px rgba(0,0,0,.18);

  --header-bg: rgba(248,247,244,0.94);

  --grain-opacity: 0.15;

  --accent:      #c8960f;
  --accent2:     #b8860a;
  --accent-glow: rgba(200,150,15,0.12);

  /* channels slightly adjusted for light bg contrast */
  --wellness:   #27a04a;
  --ignite:     #dc2626;
  --playbook:   #d95f08;
  --wanderlust: #7c3aed;
  --news:       #1d6fd6;
  --glamvalour: #c2185b;

  --theme-icon: '🌙';
}

/* Theme transition — smooth swap on all elements */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.18s;
  transition-timing-function: ease;
}
/* But NOT layout/transform/opacity transitions — would fight animations */
.card, .card__thumb .img-placeholder, .back-top, .channel-card,
.slider-pill, .slider-dot, .page-btn, .btn-submit, .btn-newsletter,
.btn-subscribe, .btn-read, .btn-load-more, .icon-btn {
  transition: all var(--trans);
}

/* ================================================================
   3. RESET
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-weight: 400;
  line-height: 1.6; min-height: 100vh;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ================================================================
   4. GRAIN OVERLAY
================================================================ */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ================================================================
   5. SCROLLBAR
================================================================ */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ================================================================
   6. UTILITIES
================================================================ */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only     { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
[x-cloak]   { display: none !important; }

/* ================================================================
   7. ANIMATIONS
================================================================ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0);  } }
@keyframes spin     { to   { transform: rotate(360deg); } }
@keyframes blink    { 0%,100%{opacity:1;} 50%{opacity:.3;} }
@keyframes pulse    { 0%,100%{transform:scale(1);} 50%{transform:scale(1.04);} }

/* Scroll reveal */
.reveal { opacity: 1; transform: none; }
.reveal.animate-ready { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.animate-ready.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   8. READING PROGRESS BAR
================================================================ */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  pointer-events: none; transition: width .1s linear;
}

/* ================================================================
   9. TOPBAR
================================================================ */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 7px 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar__date  { font-family: var(--font-mono); font-size: 11px; color: var(--text3); letter-spacing: .04em; }
.topbar__channels { display: flex; gap: 16px; }
.topbar__channels a { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--text3); transition: color var(--trans); }
.topbar__channels a:hover { color: var(--accent); }

/* ================================================================
   10. SITE HEADER / NAV
================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-nav { display: flex; align-items: center; gap: 16px; height: 66px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 900;
  flex-shrink: 0; box-shadow: 0 0 20px var(--accent-glow);
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.logo__sub  { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .15em; margin-top: 2px; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; overflow: hidden; }
.nav-links a { padding: 6px 11px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.nav-links a:hover  { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); background: var(--surface); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.btn-search {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text3); font-size: 13px;
}
.btn-search:hover { border-color: var(--border2); color: var(--text2); }
.btn-search kbd { font-family: var(--font-mono); font-size: 10px; background: var(--bg3); border: 1px solid var(--border2); border-radius: 3px; padding: 1px 5px; }

/* Theme toggle button */
.btn-theme {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.btn-theme:hover { border-color: var(--accent); background: var(--accent-glow); }
.btn-theme__icon { line-height: 1; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease; }
.btn-theme--spinning .btn-theme__icon { transform: rotate(180deg) scale(0.7); opacity: 0; }

/* Subscribe + hamburger */
.btn-subscribe {
  padding: 8px 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 0 22px var(--accent-glow); flex-shrink: 0;
}
.btn-subscribe:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-logout {
  padding: 8px 18px; border-radius: var(--radius);
  border: var(--accent2) solid 1px; color: var(--accent2);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 0 22px var(--accent-glow); flex-shrink: 0;
}
.btn-logout:hover { border: var(--accent2) solid 1px; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; }

/* ================================================================
   11. SEARCH OVERLAY
================================================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 80px;
}
[data-theme="light"] .search-overlay { background: rgba(0,0,0,.4); }
.search-box { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); width: 100%; max-width: 580px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box__input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-box__input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 17px; }
.search-box__input::placeholder { color: var(--text3); }
.search-results { padding: 8px; max-height: 360px; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); cursor: pointer; }
.search-result:hover { background: var(--bg3); }
.search-result__icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.search-result__title { font-size: 14px; font-weight: 600; color: var(--text); }
.search-result__meta  { font-size: 11px; color: var(--text3); font-family: var(--font-mono); margin-top: 2px; }
.search-box__footer { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; gap: 14px; font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.search-box__footer kbd { background: var(--bg3); border: 1px solid var(--border2); border-radius: 3px; padding: 1px 5px; font-size: 10px; }

/* ================================================================
   12. MOBILE DRAWER
================================================================ */
.mobile-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: 275px; background: var(--bg2); border-left: 1px solid var(--border);
  padding: 60px 16px 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mobile-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text2); }
.mobile-nav-item:hover { background: var(--surface); color: var(--text); }
.mobile-nav-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ================================================================
   13. BACK TO TOP
================================================================ */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text2); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.back-top:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); }

/* ================================================================
   14. ICON BUTTON (shared)
================================================================ */
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--text2); display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.icon-btn.round { border-radius: 50%; width: 30px; height: 30px; font-size: 12px; }

/* ================================================================
   15. HERO SLIDER
================================================================ */
.hero-section { background: var(--bg2); border-bottom: 1px solid var(--border); }
.hero-slider { overflow: hidden; }
.hero-track {
  display: flex;
  will-change: transform;
}
.hero-slide {
  flex-shrink: 0; width: 100%;
  padding: 52px 0 44px;
}
.hero-slide__inner {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 44px; align-items: center;
  min-height: 0;
}
.hero-slide__inner > * { min-width: 0; }

/* Eyebrow */
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.hero-eyebrow__line { display: inline-block; width: 28px; height: 2px; border-radius: 1px; }

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900; line-height: 1.07;
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.hero-title em { font-style: italic; }

/* Meta */
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.hero-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text3); }
.channel-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-excerpt { font-size: 16px; color: var(--text2); line-height: 1.72; margin-bottom: 28px; max-width: 520px; }
.hero-cta     { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-read {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius);
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 700;
}
.btn-read:hover { background: var(--accent); transform: translateY(-1px); }
.hero-read-time { font-family: var(--font-mono); font-size: 13px; color: var(--text3); }

/* Hero image */
.hero-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--border); position: relative; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; background: linear-gradient(135deg, var(--bg3) 0%, var(--surface2) 100%); user-select: none; }
.hero-image__badge { position: absolute; bottom: 14px; left: 14px; padding: 5px 11px; border-radius: var(--radius); background: rgba(10,10,11,.88); backdrop-filter: blur(8px); border: 1px solid var(--border2); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
[data-theme="light"] .hero-image__badge { background: rgba(248,247,244,.92); }

/* Slider controls bar */
.slider-controls { background: var(--bg2); border-top: 1px solid var(--border); padding: 14px 0; }
.slider-controls__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slider-dots { display: flex; align-items: center; gap: 7px; }
.slider-dot { height: 3px; width: 26px; border-radius: 2px; background: var(--surface2); border: none; padding: 0; cursor: pointer; }
.slider-dot.active { background: var(--accent); width: 46px; }
.slider-counter { font-family: var(--font-mono); font-size: 12px; color: var(--text3); }
.slider-arrows { display: flex; gap: 8px; align-items: center; }

/* ================================================================
   16. CHANNEL STRIP
================================================================ */
.channels-strip { padding: 28px 0; border-bottom: 1px solid var(--border); background: var(--bg2); }
.channels-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.channel-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-align: center; }
.channel-card:hover { border-color: var(--ch-color, var(--accent)); background: var(--bg3); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.channel-card__icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; }
[data-theme="light"] .channel-card__icon { background: rgba(0,0,0,.04); }
.channel-card:hover .channel-card__icon { background: var(--ch-bg); border-color: var(--ch-color); }
.channel-card__name  { font-size: 11px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; }
.channel-card__count { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }

/* ================================================================
   17. AD UNITS
================================================================ */
.ad-unit { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.ad-unit::after { content: 'Advertisement'; position: absolute; top: 6px; right: 10px; font-size: 10px; color: var(--text3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.ad-unit__inner { min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border2); margin: 12px; border-radius: var(--radius); font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.ad-unit--leaderboard { margin: 28px 0; }
.ad-unit--rect .ad-unit__inner { min-height: 250px; }
.ad-unit--halfpage .ad-unit__inner { min-height: 580px; }

/* ================================================================
   18. SECTION HEADERS
================================================================ */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.section-header__left { display: flex; align-items: center; gap: 10px; }
.section-header__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.section-badge { padding: 3px 9px; border-radius: 100px; background: var(--accent-glow); border: 1px solid rgba(232,197,71,.2); color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.section-link { font-size: 13px; font-weight: 500; color: var(--text3); white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* Channel section header */
.channel-section { margin-bottom: 52px; }
.channel-section__header { display: flex; align-items: center; margin-bottom: 22px; }
.channel-section__header::after { content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 16px; }
.channel-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 100px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border: 1px solid; white-space: nowrap; }

/* ================================================================
   19. CARD COMPONENTS
================================================================ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__thumb { position: relative; overflow: hidden; background: var(--bg3); flex-shrink: 0; }
.card__thumb--16-9  { aspect-ratio: 16 / 9;  }
.card__thumb--16-10 { aspect-ratio: 16 / 10; }
.card__thumb--4-3   { aspect-ratio: 4 / 3;   }
.card__thumb--wide  { aspect-ratio: 16 / 7;  }
.card__thumb .img-placeholder { transition: transform .5s ease; font-size: 40px; }
.card:hover .card__thumb .img-placeholder { transform: scale(1.04); }
.card__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card--standard .card__body { padding: 16px; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text3); }
.card__meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--text3); }
.card__title { font-family: var(--font-display); font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: 10px; letter-spacing: -.3px; }
.card--featured .card__title { font-size: 19px; }
.card--standard .card__title { font-size: 15px; margin-bottom: 8px; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { font-size: 14px; color: var(--text2); line-height: 1.65; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.card--featured .card__excerpt { -webkit-line-clamp: 3; }
.card--standard .card__excerpt { -webkit-line-clamp: 2; font-size: 13px; margin-bottom: 12px; }
.card__footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; gap: 8px; }
.card__read-time { font-family: var(--font-mono); font-size: 12px; color: var(--text3); flex-shrink: 0; }
.author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.author__avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent); }
.author__name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author__role { font-size: 11px; color: var(--text3); }

/* ================================================================
   20. FEATURED GRID
================================================================ */
.featured-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-bottom: 48px; align-items: stretch; }
.featured-grid > * { min-width: 0; }
.featured-stack { display: flex; flex-direction: column; gap: 16px; }
.featured-stack .card { flex: 1 1 0; min-height: 0; }

/* ================================================================
   21. HORIZONTAL CARD SLIDER
================================================================ */
.card-slider { overflow: hidden; border-radius: var(--radius-lg); }
.card-slider__track { display: flex; gap: 16px; will-change: transform; }
.card-slider__track .card { flex-shrink: 0; }
.slider-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.slider-pills { display: flex; gap: 6px; }
.slider-pill { height: 4px; width: 20px; border-radius: 2px; background: var(--surface2); border: none; padding: 0; cursor: pointer; }
.slider-pill.active { background: var(--accent); width: 36px; }

/* ================================================================
   22. NEWS LIST
================================================================ */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-item:hover { opacity: .75; }
.news-item__thumb { aspect-ratio: 4/3; background: var(--surface); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.news-item__thumb .img-placeholder { font-size: 20px; }
.news-item__tag   { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.news-item__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; letter-spacing: -.2px; margin-bottom: 4px; }
.news-item__title a:hover { color: var(--accent); }
.news-item__meta  { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--news); animation: blink 1.4s ease-in-out infinite; }

/* ================================================================
   23. LOAD MORE
================================================================ */
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.load-more-track { width: 100%; height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.load-more-fill  { height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s ease; }
.load-more-count { font-family: var(--font-mono); font-size: 12px; color: var(--text3); }
.btn-load-more { display: inline-flex; align-items: center; gap: 9px; padding: 11px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border2); color: var(--text2); font-size: 14px; font-weight: 600; }
.btn-load-more:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.btn-load-more:disabled { opacity: .5; cursor: not-allowed; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }

/* ================================================================
   24. NUMBERED PAGINATION
================================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pagination > span { display: contents; }
.page-btn { min-width: 38px; height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-size: 13px; font-weight: 500; }
.page-btn:hover:not(.active):not(.disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.page-btn.active   { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); font-weight: 700; }
.page-btn.disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }
.page-ellipsis { font-size: 14px; color: var(--text3); padding: 0 4px; line-height: 38px; user-select: none; }
.pagination__info { width: 100%; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text3); margin-top: 6px; }

/* ================================================================
   25. MAIN CONTENT LAYOUT
================================================================ */
.main-layout { padding: 52px 0 72px; }
.content-grid { display: grid; grid-template-columns: 1fr 310px; gap: 52px; align-items: start; }
.content-grid > * { min-width: 0; }

/* Posts grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 8px; }

/* ================================================================
   26. SIDEBAR (Homepage)
================================================================ */
.sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.widget__header { padding: 13px 18px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); }
.widget__body { padding: 18px; }

/* Newsletter widget */
.widget--newsletter { background: linear-gradient(135deg, var(--surface) 0%, var(--bg3) 100%); border-color: rgba(232,197,71,.15); }
.widget--newsletter .widget__header { color: var(--accent); border-color: rgba(232,197,71,.1); }
.newsletter-tagline { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.newsletter-desc    { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 18px; }
.newsletter-form    { display: flex; flex-direction: column; gap: 9px; }
.form-input { background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius); padding: 10px 13px; color: var(--text); font-size: 14px; outline: none; width: 100%; }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }
.btn-newsletter { padding: 11px; border-radius: var(--radius); background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 700; }
.btn-newsletter:hover { background: var(--accent2); transform: translateY(-1px); }
.form-consent { font-size: 11px; color: var(--text3); line-height: 1.5; }
.form-consent a { color: var(--accent); }

/* Trending */
.trending-list { display: flex; flex-direction: column; }
.trending-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-num { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--border2); line-height: 1; flex-shrink: 0; width: 30px; text-align: center; }
.trending-item:first-child .trending-num { color: var(--accent); }
.trending-tag   { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.trending-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.trending-title a:hover { color: var(--accent); }
.trending-views { font-family: var(--font-mono); font-size: 11px; color: var(--text3); margin-top: 3px; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 100px; background: var(--bg3); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text2); }
.tag-pill:hover { border-color: var(--pill-color, var(--accent)); color: var(--pill-color, var(--accent)); }
.tag-pill__dot { width: 5px; height: 5px; border-radius: 50%; }

/* ================================================================
   27. FOOTER
================================================================ */
footer { background: var(--bg2); border-top: 1px solid var(--border); }
.footer-top { padding: 56px 0 44px; display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 44px; }
.footer-tagline { font-size: 14px; color: var(--text2); line-height: 1.65; margin: 14px 0 20px; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 34px; height: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text3); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.footer-col h4   { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); margin-bottom: 18px; }
.footer-links    { display: flex; flex-direction: column; gap: 9px; }
.footer-links a  { font-size: 14px; color: var(--text2); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 18px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom p  { font-size: 13px; color: var(--text3); }
.footer-legal     { display: flex; gap: 18px; }
.footer-legal a   { font-size: 13px; color: var(--text3); }
.footer-legal a:hover { color: var(--text2); }

/* ================================================================
   28. STATIC PAGE LAYOUT (legal, about, contact)
================================================================ */
.page-main { padding: 0px 0 80px; min-height: 60vh; }
.static-layout { display: grid; grid-template-columns: 220px 1fr; gap: 52px; align-items: start; max-width: 1000px; margin: 0 auto; }
.static-layout > * { min-width: 0; }

/* Page sidenav */
.page-sidenav { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.page-sidenav__header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text3); }
.page-sidenav a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; font-weight: 500; color: var(--text2); border-left: 2px solid transparent; }
.page-sidenav a:hover  { color: var(--text); background: var(--bg3); border-left-color: var(--border2); }
.page-sidenav a.active { color: var(--accent); background: var(--accent-glow); border-left-color: var(--accent); font-weight: 600; }
.page-sidenav__icon { font-size: 14px; flex-shrink: 0; }
.page-sidenav__divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Page hero */
.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; background: linear-gradient(180deg, var(--bg2) 0%, transparent 100%); }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.page-hero__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: var(--text); margin-bottom: 12px; }
.page-hero__subtitle { font-size: 16px; color: var(--text2); line-height: 1.65; max-width: 560px; }
.page-hero__meta { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text3); display: flex; gap: 16px; flex-wrap: wrap; }

/* Prose */
.prose h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.4px; line-height: 1.2; margin: 40px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.prose p  { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 18px; }
.prose ul, .prose ol { margin-bottom: 18px; padding-left: 0; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding: 5px 0 5px 20px; font-size: 15px; color: var(--text2); line-height: 1.7; }
.prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose ol { counter-reset: ol-counter; }
.prose ol li { counter-increment: ol-counter; position: relative; padding: 6px 0 6px 28px; font-size: 15px; color: var(--text2); line-height: 1.7; }
.prose ol li::before { content: counter(ol-counter); position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-glow); border: 1px solid rgba(232,197,71,.25); color: var(--accent); font-size: 11px; font-weight: 700; font-family: var(--font-mono); display: flex; align-items: center; justify-content: center; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(232,197,71,.3); }
.prose a:hover { border-color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 15px; color: var(--text); font-style: italic; }
.prose hr { border: none; height: 1px; background: var(--border); margin: 36px 0; }
.prose .last-updated { font-family: var(--font-mono); font-size: 12px; color: var(--text3); padding: 10px 14px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; }

/* ================================================================
   29. INFO / TEAM / STATS CARDS (About, Contact)
================================================================ */
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 14px; }
.info-card__icon  { font-size: 28px; margin-bottom: 12px; }
.info-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.info-card__text  { font-size: 14px; color: var(--text2); line-height: 1.65; }
.info-card__link  { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.info-card__link:hover { gap: 10px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.team-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.team-card__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border2); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.team-card__name   { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-card__role   { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.team-card__bio    { font-size: 13px; color: var(--text2); line-height: 1.55; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.stat-box__num   { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat-box__label { font-family: var(--font-mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; }

.channel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.channel-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; border: 1px solid; }
.channel-pill:hover { transform: translateY(-1px); }

/* ================================================================
   30. FORMS (contact, newsletter — shared tokens)
================================================================ */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.form-control { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 11px 14px; color: var(--text); font-size: 14px; outline: none; width: 100%; }
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text3); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--news); margin-top: 4px; }

.btn-submit { padding: 13px 28px; border-radius: var(--radius); background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 700; align-self: flex-start; }
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-secondary { padding: 11px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border2); color: var(--text2); font-size: 14px; font-weight: 600; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================
   31. CREATE POST PAGE
================================================================ */
.create-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; padding: 36px 0 72px; }
.create-layout > * { min-width: 0; }

/* Editor toolbar */
.editor-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 10px 14px; background: var(--bg3);
  border: 1px solid var(--border2); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.editor-toolbar__sep { width: 1px; height: 20px; background: var(--border2); margin: 0 4px; }
.toolbar-btn {
  min-width: 30px; height: 30px; border-radius: 4px;
  background: none; border: 1px solid transparent;
  color: var(--text2); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; font-family: var(--font-mono);
}
.toolbar-btn:hover  { background: var(--surface); border-color: var(--border2); color: var(--text); }
.toolbar-btn.active { background: var(--accent-glow); border-color: rgba(232,197,71,.3); color: var(--accent); }

/* Rich editor area */
.editor-area {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 420px; padding: 20px;
  color: var(--text); font-size: 16px; line-height: 1.8;
  outline: none;
  /* Inline content editable */
}
.editor-area:focus { border-color: var(--accent); }
.editor-area[contenteditable]:empty::before { content: attr(data-placeholder); color: var(--text3); pointer-events: none; }
.editor-area h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 20px 0 10px; }
.editor-area h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.editor-area blockquote { border-left: 3px solid var(--accent); padding: 12px 18px; margin: 16px 0; background: var(--bg3); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text2); }
.editor-area a { color: var(--accent); text-decoration: underline; }
.editor-area code { font-family: var(--font-mono); background: var(--bg3); padding: 2px 6px; border-radius: 3px; font-size: 14px; color: var(--accent); }

/* Editor word-count bar */
.editor-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--bg3); border: 1px solid var(--border2); border-top: none; border-radius: 0 0 var(--radius) var(--radius); font-family: var(--font-mono); font-size: 11px; color: var(--text3); margin-bottom: 18px; }

/* Panel card (right sidebar) */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.panel__header { padding: 12px 18px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); display: flex; align-items: center; justify-content: space-between; }
.panel__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }

/* Status badge */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-badge--draft     { background: var(--surface2); color: var(--text3); border: 1px solid var(--border2); }
.status-badge--review    { background: rgba(249,115,22,.12); color: var(--ignite); border: 1px solid rgba(249,115,22,.2); }
.status-badge--published { background: rgba(78,203,113,.12); color: var(--wellness); border: 1px solid rgba(78,203,113,.2); }
.status-badge--scheduled { background: rgba(59,130,246,.12); color: var(--playbook); border: 1px solid rgba(59,130,246,.2); }

/* Tag input */
.tag-input-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); min-height: 44px; cursor: text; }
.tag-input-wrap:focus-within { border-color: var(--accent); }
.tag-item { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: var(--accent-glow); border: 1px solid rgba(232,197,71,.25); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.tag-item button { font-size: 11px; color: var(--accent); opacity: .7; line-height: 1; }
.tag-item button:hover { opacity: 1; }
.tag-raw-input { border: none; background: none; outline: none; color: var(--text); font-size: 13px; min-width: 80px; flex: 1; }
.tag-raw-input::placeholder { color: var(--text3); }

/* Cover image upload zone */
.cover-upload { border: 2px dashed var(--border2); border-radius: var(--radius); padding: 28px 20px; text-align: center; cursor: pointer; position: relative; background: var(--bg3); }
.cover-upload:hover, .cover-upload.drag-over { border-color: var(--accent); background: var(--accent-glow); }
.cover-upload__icon { font-size: 28px; margin-bottom: 8px; }
.cover-upload__text { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.cover-upload__hint { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }
.cover-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cover-preview { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg3); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview__remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* SEO preview */
.seo-preview { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.seo-preview__url   { font-family: var(--font-mono); font-size: 11px; color: var(--wellness); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-preview__title { font-size: 16px; font-weight: 600; color: #1a0dab; margin-bottom: 2px; line-height: 1.3; }
[data-theme="light"] .seo-preview__title { color: #1a0dab; }
[data-theme="dark"]  .seo-preview__title, :root .seo-preview__title { color: #8ab4f8; }
.seo-preview__desc  { font-size: 13px; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Char counters */
.char-counter { font-family: var(--font-mono); font-size: 11px; text-align: right; margin-top: 3px; }
.char-counter.ok   { color: var(--wellness); }
.char-counter.warn { color: var(--ignite); }
.char-counter.over { color: var(--news); }

/* Action buttons (create post) */
.post-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-publish { width: 100%; padding: 13px; border-radius: var(--radius); background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 700; text-align: center; }
.btn-publish:hover { background: var(--accent2); }
.btn-publish:disabled { opacity: .5; cursor: not-allowed; }

/* ================================================================
   32. RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .channels-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .create-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-slide__inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .static-layout { grid-template-columns: 1fr; }
  .page-sidenav  { position: static; margin-bottom: 28px; }
  .team-grid     { grid-template-columns: repeat(2,1fr); }
  .stats-strip   { grid-template-columns: repeat(2,1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; }
  .posts-grid    { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .featured-grid  { grid-template-columns: 1fr; }
  .featured-stack { flex-direction: row; }
  .featured-stack .card { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 768px) {
  .nav-links, .btn-search { display: none; }
  .hamburger { display: flex; }
  .topbar__channels { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .featured-stack { flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container   { padding: 0 16px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .back-top    { bottom: 18px; right: 18px; }
}
