/* ═══════════════════════════════════════════════════
   ClickNews — main.css  (mobile-first)
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #0f0f0f;
  --ink2: #2d2d2d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #e63946;
  --accent-light: #fff1f2;
  --green: #16a34a;
  --blue: #2563eb;
  --orange: #ea580c;
  --yellow: #ca8a04;
  --purple: #7c3aed;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.13);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
  --header-h: 56px;
  --ticker-h: 32px;
  --tr: 0.22s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg: #0c0c0e;
  --surface: #18181b;
  --ink: #f4f4f5;
  --ink2: #d4d4d8;
  --muted: #71717a;
  --border: #27272a;
  --accent-light: #2d0a0d;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
}

/* ── DARK MODE EXPLICIT OVERRIDES ─────────────── */
[data-theme="dark"] .site-header {
  background: #18181b;
  border-bottom-color: #27272a;
}
[data-theme="dark"] .site-footer {
  background: #0a0a0c;
  color: rgba(255,255,255,.55);
}
[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255,255,255,.07);
}
[data-theme="dark"] .footer-bottom-links a {
  color: rgba(255,255,255,.3);
}
[data-theme="dark"] .mobile-nav {
  background: #18181b;
  border-top-color: #27272a;
}
[data-theme="dark"] .ticker {
  background: #0a0a0c;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background var(--tr), color var(--tr); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

/* ── READING PROGRESS ─────────────────────────── */
#rpbar { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 9999; transition: width .1s linear; border-radius: 0 2px 2px 0; }

/* ── TICKER ──────────────────────────────────── */
.ticker { background: var(--ink); color: #fff; overflow: hidden; height: var(--ticker-h); display: flex; align-items: center; }
.ticker-track { display: flex; gap: 60px; white-space: nowrap; animation: tick 40s linear infinite; font-size: 11px; font-family: var(--mono); padding: 0 24px; }
.ticker-track em { color: var(--accent); font-style: normal; margin-right: 8px; font-weight: 700; }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── HEADER ──────────────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 16px; height: var(--header-h); display: flex; align-items: center; gap: 12px; }

.site-logo { font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--ink); flex-shrink: 0; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }
.logo-dot { color: var(--accent); }

/* Nav — hidden on mobile, visible md+ */
.header-nav { display: none; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.header-nav::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .header-nav { display: flex; } }

.nav-btn { background: none; border: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 100px; transition: all var(--tr); white-space: nowrap; }
.nav-btn:hover { color: var(--ink); background: var(--border); }
.nav-btn.active { color: var(--accent); background: var(--accent-light); }

/* Header actions — hamburger always on right */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all var(--tr); flex-shrink: 0; }
.icon-btn:hover { background: var(--border); color: var(--ink); }

/* Hamburger — always visible, always right */
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; border-radius: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .28s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ───────────────────────── */
.mobile-nav { position: fixed; top: calc(var(--header-h) + var(--ticker-h)); left: 0; right: 0; bottom: 0; background: var(--surface); z-index: 190; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto; padding: 20px 16px; border-top: 1px solid var(--border); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mct-item { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 4px; }
.mct-parent { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--bg); font-size: 14px; font-weight: 700; cursor: pointer; border: none; width: 100%; font-family: var(--sans); color: var(--ink); transition: background var(--tr); border-radius: var(--radius-sm); }
.mct-parent:hover { background: var(--border); }
.mct-arrow { font-size: 11px; transition: transform .2s; color: var(--muted); }
.mct-parent.expanded .mct-arrow { transform: rotate(90deg); }
.mct-children { display: none; padding: 4px 0 4px 14px; }
.mct-children.open { display: block; }
.mct-child { display: block; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 6px; transition: all var(--tr); border: none; background: none; width: 100%; font-family: var(--sans); text-align: left; }
.mct-child:hover { color: var(--ink); background: var(--bg); }

/* ═════════════════════════════════════════════
   HERO SLIDER
═════════════════════════════════════════════ */
.hero-section { position: relative; background: var(--ink); overflow: hidden; }
.hero-slider-wrap { position: relative; width: 100%; overflow: hidden; }
.hero-slider { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-slide { min-width: 100%; position: relative; cursor: pointer; aspect-ratio: 4/3; overflow: hidden; }
@media (min-width: 600px) { .hero-slide { aspect-ratio: 16/7; } }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.hero-slide:hover img { transform: scale(1.03); }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, transparent 100%); }
.hero-slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 16px 56px; }
@media (min-width: 600px) { .hero-slide-content { padding: 28px 32px 68px; } }
.hero-cat-badge { display: inline-block; padding: 3px 11px; border-radius: 100px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 10px; background: var(--accent); }
.hero-slide-title { font-family: var(--serif); font-size: clamp(18px, 4vw, 38px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 10px; max-width: 680px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-slide-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.65); flex-wrap: wrap; }
.hero-slide-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.35); }

.slider-controls { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; z-index: 10; }
.slider-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: flex; align-items: center; justify-content: center; transition: all var(--tr); }
.slider-btn:hover { background: rgba(255,255,255,.3); }
.slider-dots { display: flex; gap: 5px; align-items: center; }
.slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; transition: all var(--tr); padding: 0; }
.slider-dot.active { background: #fff; width: 18px; border-radius: 3px; }

/* TOP TRENDS PIN — top-left */
.trends-pin { position: absolute; top: 12px; left: 12px; z-index: 20; background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); width: min(230px, 46vw); box-shadow: var(--shadow-xl); }
@media (max-width: 480px) { .trends-pin { display: none; } }
.trends-pin-header { display: flex; align-items: center; gap: 7px; padding: 10px 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.trends-pin-title { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.trends-list { list-style: none; padding: 6px 0; }
.trends-list-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 12px; cursor: pointer; transition: background var(--tr); border-bottom: 1px solid rgba(255,255,255,.04); }
.trends-list-item:last-child { border: none; }
.trends-list-item:hover { background: rgba(255,255,255,.07); }
.trend-rank { font-family: var(--serif); font-size: 16px; font-weight: 700; color: rgba(255,255,255,.2); line-height: 1; min-width: 18px; flex-shrink: 0; padding-top: 1px; }
.trend-rank.rank-1 { color: var(--accent); }
.trend-rank.rank-2 { color: #f97316; }
.trend-rank.rank-3 { color: #eab308; }
.trend-info { flex: 1; min-width: 0; }
.trend-title { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; }
.trend-meta { font-size: 10px; color: rgba(255,255,255,.38); margin-top: 2px; }

/* ═════════════════════════════════════════════
   SITE BODY — 3-col on desktop, 1-col mobile
═════════════════════════════════════════════ */
.site-body { max-width: 1200px; margin: 0 auto; padding: 16px 14px; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .site-body { grid-template-columns: 240px 1fr 268px; gap: 22px; padding: 26px 20px; } }
@media (min-width: 1100px) { .site-body { grid-template-columns: 256px 1fr 280px; } }

/* LEFT SIDEBAR */
.left-sidebar { display: none; position: sticky; top: calc(var(--header-h) + 12px); }
@media (min-width: 900px) { .left-sidebar { display: block; } }
.sidebar-widget { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.widget-heading { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.ct-parent { margin-bottom: 2px; }
.ct-parent-btn { display: flex; align-items: center; width: 100%; padding: 8px 10px; background: none; border: none; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); transition: background var(--tr); gap: 8px; }
.ct-parent-btn:hover { background: var(--bg); }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ct-arrow { margin-left: auto; font-size: 9px; color: var(--muted); transition: transform .2s; }
.ct-parent-btn.open .ct-arrow { transform: rotate(90deg); }
.ct-parent-btn.active-cat { background: var(--accent-light); color: var(--accent); }
.ct-children { display: none; padding-left: 18px; margin-bottom: 2px; }
.ct-children.open { display: block; }
.ct-child-btn { display: flex; align-items: center; width: 100%; padding: 6px 10px; background: none; border: none; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 6px; transition: all var(--tr); gap: 6px; text-align: left; }
.ct-child-btn::before { content: '└'; font-size: 10px; color: var(--border); flex-shrink: 0; }
.ct-child-btn:hover { color: var(--ink); background: var(--bg); }
.ct-child-btn.active-cat { color: var(--accent); background: var(--accent-light); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-chip { padding: 4px 10px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all var(--tr); }
.tag-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═════════════════════════════════════════════
   MAIN FEED — LIST LAYOUT
═════════════════════════════════════════════ */
.feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.feed-title { font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--ink); }
.feed-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-btn { padding: 5px 12px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all var(--tr); }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Post list — horizontal card rows */
.posts-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }

.post-list-item { display: flex; gap: 0; cursor: pointer; transition: background var(--tr); border-bottom: 1px solid var(--border); }
.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover { background: var(--bg); }

.pli-thumb { width: 110px; height: 82px; flex-shrink: 0; overflow: hidden; background: var(--border); }
@media (min-width: 480px) { .pli-thumb { width: 140px; height: 100px; } }
@media (min-width: 700px) { .pli-thumb { width: 180px; height: 120px; } }
.pli-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-list-item:hover .pli-thumb img { transform: scale(1.05); }

.pli-body { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.pli-cat { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; display: block; }
.pli-title { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; transition: color var(--tr); }
@media (min-width: 600px) { .pli-title { font-size: 16px; } }
.post-list-item:hover .pli-title { color: var(--accent); }
.pli-excerpt { font-size: 12px; color: var(--muted); line-height: 1.55; display: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; margin-bottom: 8px; }
@media (min-width: 600px) { .pli-excerpt { display: -webkit-box; } }
.pli-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.pli-meta .sep { width: 2px; height: 2px; border-radius: 50%; background: var(--border); }
.pli-avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; flex-shrink: 0; }

/* Load More */
.load-more-wrap { text-align: center; padding-bottom: 28px; }
.load-more-btn { padding: 12px 32px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all var(--tr); }
.load-more-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* RIGHT SIDEBAR */
.right-sidebar { display: none; }
@media (min-width: 900px) { .right-sidebar { display: none; } }
.nl-widget { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.nl-widget .widget-heading { color: rgba(255,255,255,.3); border-color: rgba(255,255,255,.07); }
.nl-h { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.nl-sub { font-size: 12px; color: rgba(255,255,255,.42); margin-bottom: 14px; }
.nl-form input { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 8px; padding: 10px 12px; color: #fff; font-family: var(--sans); font-size: 13px; outline: none; margin-bottom: 8px; transition: border var(--tr); }
.nl-form input::placeholder { color: rgba(255,255,255,.28); }
.nl-form input:focus { border-color: var(--accent); }
.nl-btn { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity var(--tr); }
.nl-btn:hover { opacity: .85; }
.trend-item-side { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.trend-item-side:last-child { border: none; }
.trend-num-side { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--border); line-height: 1; min-width: 20px; flex-shrink: 0; }
.trend-thumb-side { width: 56px; height: 42px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.trend-thumb-side img { width: 100%; height: 100%; object-fit: cover; }
.trend-title-side { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color var(--tr); }
.trend-item-side:hover .trend-title-side { color: var(--accent); }
.trend-meta-side { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ═════════════════════════════════════════════
   POST PAGE
═════════════════════════════════════════════ */
.post-page { max-width: 1400px; margin: 0 auto; padding: 20px 14px; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .post-page { grid-template-columns: 240px 1fr 268px; padding: 26px 20px; } }
@media (min-width: 1100px) { .post-page { grid-template-columns: 256px 1fr 280px; } }
.post-sticky { position: sticky; top: calc(var(--header-h) + 12px); }
.post-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; margin-bottom: 18px; background: none; border: 1px solid var(--border); font-family: var(--sans); font-weight: 600; padding: 6px 14px; border-radius: 100px; transition: all var(--tr); }
.post-back:hover { background: var(--surface); color: var(--ink); }
.post-cat-pill { display: inline-block; padding: 3px 12px; border-radius: 100px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; background: var(--accent); }
.post-h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.18; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.post-meta-strip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.post-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.share-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.share-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 100px; border: none; font-family: var(--sans); font-size: 11px; font-weight: 700; cursor: pointer; transition: all var(--tr); }
.sb-twitter { background: #000; color: #fff; }
.sb-twitter:hover { background: #222; }
.sb-facebook { background: #1877f2; color: #fff; }
.sb-facebook:hover { background: #0d5ecb; }
.sb-whatsapp { background: #25d366; color: #fff; }
.sb-whatsapp:hover { background: #1da851; }
.sb-copy { background: var(--bg); color: var(--ink); border: 1px solid var(--border); }
.sb-copy:hover { background: var(--border); }
.post-hero { width: 100%; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 24px; box-shadow: var(--shadow-lg); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 750px;  margin: auto; font-size: 16px; line-height: 1.9; color: var(--ink2); }
.post-body p { margin-bottom: 18px; }
.post-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 28px 0 12px; color: var(--ink); }
.post-body h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin: 22px 0 9px; color: var(--ink); }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { border-left: 4px solid var(--accent); padding: 13px 18px; background: var(--accent-light); border-radius: 0 8px 8px 0; font-style: italic; color: var(--muted); margin: 24px 0; font-size: 17px; line-height: 1.6; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--border); }
.post-subscribe { background: linear-gradient(135deg, var(--ink), #1c1c40); color: #fff; border-radius: 14px; padding: 28px; margin: 32px 0; text-align: center; }
.ps-emoji { font-size: 32px; margin-bottom: 8px; }
.ps-h { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ps-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.ps-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; flex-direction: column; }
@media (min-width: 480px) { .ps-form { flex-direction: row; } }
.ps-form input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 10px 13px; color: #fff; font-family: var(--sans); font-size: 13px; outline: none; }
.ps-form input::placeholder { color: rgba(255,255,255,.3); }
.ps-form input:focus { border-color: var(--accent); }
.ps-form button { background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 10px 14px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.comments-wrap { margin-top: 36px; }
.comments-h { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.comments-count { font-size: 13px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.comment-form-box { background: var(--bg); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; border: 1px solid var(--border); }
.cf-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.cf-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
@media (min-width: 480px) { .cf-grid { grid-template-columns: 1fr 1fr; } }
.cf-input { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: var(--sans); font-size: 13px; outline: none; background: var(--surface); color: var(--ink); transition: border var(--tr); }
.cf-input:focus { border-color: var(--accent); }
.cf-textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: var(--sans); font-size: 13px; outline: none; min-height: 90px; resize: vertical; background: var(--surface); color: var(--ink); margin-bottom: 10px; line-height: 1.6; transition: border var(--tr); }
.cf-textarea:focus { border-color: var(--accent); }
.cf-submit { background: var(--ink); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; transition: background var(--tr); }
.cf-submit:hover { background: var(--accent); }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border: none; }
.c-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--purple)); }
.c-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.c-date { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.c-text { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.c-reply { background: none; border: none; font-size: 12px; color: var(--accent); font-weight: 700; cursor: pointer; margin-top: 6px; font-family: var(--sans); }
.c-reply:hover { text-decoration: underline; }
.no-comments { text-align: center; padding: 28px; color: var(--muted); font-size: 14px; }
.related-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.related-item:last-child { border: none; }
.related-item:hover { opacity: .75; }
.ri-thumb { width: 54px; height: 42px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.ri-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ri-title { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color var(--tr); }
.related-item:hover .ri-title { color: var(--accent); }

/* ═════════════════════════════════════════════
   FOOTER
═════════════════════════════════════════════ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.55); margin-top: 56px; }
.footer-body { max-width: 1400px; margin: 0 auto; padding: 40px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (min-width: 700px) { .footer-body { grid-template-columns: 2fr 1fr 1fr; } }
.f-brand { grid-column: 1 / -1; }
@media (min-width: 700px) { .f-brand { grid-column: auto; } }
.f-brand .f-logo { font-family: var(--serif); font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.f-brand .f-logo span { color: var(--accent); }
.f-brand p { font-size: 13px; line-height: 1.7; max-width: 240px; margin-bottom: 14px; }
.f-social { display: flex; gap: 7px; }
.f-soc { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(255,255,255,.45); transition: all var(--tr); text-decoration: none; }
.f-soc:hover { background: var(--accent); color: #fff; }
.f-col h4 { color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.f-col ul li a { font-size: 13px; color: rgba(255,255,255,.38); transition: color var(--tr); }
.f-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding: 16px; border-top: 1px solid rgba(255,255,255,.07); margin-top: 36px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.footer-bottom-links a { color: rgba(255,255,255,.22); margin-left: 12px; transition: color var(--tr); font-size: 12px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }
.admin-footer-link { font-size: 11px; }

/* ═════════════════════════════════════════════
   SEARCH OVERLAY
═════════════════════════════════════════════ */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box { background: var(--surface); border-radius: 14px; width: min(560px, 94vw); padding: 20px; box-shadow: var(--shadow-xl); transform: translateY(-14px); transition: transform .22s; }
.search-overlay.open .search-box { transform: translateY(0); }
.search-input-wrap { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 11px; margin-bottom: 12px; }
.search-input { flex: 1; border: none; background: none; font-family: var(--sans); font-size: 17px; outline: none; color: var(--ink); }
.search-close-btn { background: none; border: none; font-size: 17px; color: var(--muted); cursor: pointer; padding: 0 4px; }
.search-close-btn:hover { color: var(--ink); }
.search-hints { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sh { padding: 4px 11px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; color: var(--muted); cursor: pointer; transition: all var(--tr); }
.sh:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-results { max-height: 320px; overflow-y: auto; }
.search-result-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.search-result-item:last-child { border: none; }
.search-result-item:hover { opacity: .75; }
.sr-thumb { width: 52px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.sr-cat { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.search-no-results { text-align: center; padding: 22px; color: var(--muted); font-size: 14px; }

/* ═════════════════════════════════════════════
   TOAST & ANIMATIONS
═════════════════════════════════════════════ */
.toast { position: fixed; bottom: 18px; right: 16px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-xl); z-index: 9999; transform: translateY(60px); opacity: 0; transition: all .3s; max-width: 290px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok { background: var(--green); }
.toast.err { background: #dc2626; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp .35s ease both; }
.skeleton { background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═════════════════════════════════════════════
   STATUS / REACTION SECTION
═════════════════════════════════════════════ */
.status-section {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.reaction-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--sans);
  transition: all var(--tr);
  color: var(--muted);
  flex-shrink: 0;
}
.reaction-btn:hover { background: var(--bg); color: var(--ink); }
.reaction-btn.active { color: var(--accent); }
.reaction-btn.active .reaction-icon { filter: drop-shadow(0 0 4px rgba(230,57,70,.4)); }

.reaction-icon {
  font-size: 17px;
  line-height: 1;
  display: block;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.reaction-count {
  font-size: 13px;
  font-weight: 700;
  min-width: 12px;
}
.reaction-label {
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 420px) { .reaction-label { display: none; } }

.reaction-spacer { flex: 1; }

.share-toggle-btn { color: var(--blue); }
.share-toggle-btn:hover { background: #eff6ff; color: var(--blue); }

/* Share Panel */
.share-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(.4,0,.2,1);
  border-top: 0px solid var(--border);
}
.share-panel.open {
  max-height: 260px;
  border-top: 1px solid var(--border);
}

.share-panel-inner { padding: 14px 16px 16px; }
.share-panel-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.share-panel-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.spb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.spb-wa { background: #dcfce7; color: #15803d; }
.spb-wa:hover { background: #25d366; color: #fff; }
.spb-tw { background: #f1f5f9; color: #0f0f0f; }
.spb-tw:hover { background: #0f0f0f; color: #fff; }
.spb-fb { background: #eff6ff; color: #1877f2; }
.spb-fb:hover { background: #1877f2; color: #fff; }
.spb-li { background: #f0f9ff; color: #0077b5; }
.spb-li:hover { background: #0077b5; color: #fff; }
.spb-copy { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.spb-copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.share-url-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.share-url-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  outline: none;
  cursor: text;
  min-width: 0;
}
.share-url-copy {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--tr);
}
.share-url-copy:hover { opacity: .8; }

/* ═════════════════════════════════════════════
   INFINITE POST READER
═════════════════════════════════════════════ */
#infinitePostsContainer { margin-top: 0; }

.infinite-post-unit {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease;
}
.infinite-post-unit.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Divider between posts */
.ipu-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 32px;
  padding: 0 4px;
}
.ipu-divider::before,
.ipu-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}
.ipu-divider::after {
  background: linear-gradient(to left, transparent, var(--border));
}
.ipu-divider-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}

.ipu-content {
  padding-bottom: 4px;
}

/* Next Post Loader */
.next-post-loader {
  margin: 28px 0 10px;
}
.npl-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.npl-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.npl-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}
.npl-bar {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.npl-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--blue));
  border-radius: 100px;
  transition: width .85s cubic-bezier(.4,0,.2,1);
}
.comment-list:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.comments-wrap {
  margin-top: 20px;
}