
:root {
  --bg-primary: #0a0f1d;
  --bg-surface: #131c31;
  --bg-card: #18233c;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --yt-red: #ef4444;
  --yt-red-hover: #dc2626;
  --dz-yellow: #facc15;
  --dz-yellow-hover: #eab308;
  --tg-blue: #0284c7;
  --border: #233352;
  --border-light: rgba(255, 255, 255, 0.08);
  --tag-bg: rgba(56, 189, 248, 0.15);
  --tag-text: #7dd3fc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.75;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
  background: rgba(19, 28, 49, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo { 
  font-size: 1.35rem; 
  font-weight: 800; 
  color: var(--text-main); 
  text-decoration: none; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
}
header .logo span { color: var(--accent); }
header nav { display: flex; align-items: center; gap: 0.75rem; }
header nav a { 
  color: var(--text-muted); 
  text-decoration: none; 
  font-size: 0.9rem; 
  font-weight: 600; 
  padding: 0.4rem 0.85rem; 
  border-radius: 8px; 
  transition: all 0.2s; 
}
header nav a:hover { color: var(--text-main); background: var(--border); }
header nav a.nav-yt { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
header nav a.nav-yt:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }
header nav a.nav-dz { color: #fde047; background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.3); }
header nav a.nav-dz:hover { background: rgba(250, 204, 21, 0.25); color: #fff; }

.container { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.5rem 6rem; }

/* Hero Section */
.hero { text-align: center; margin-bottom: 3.5rem; padding-top: 1rem; }
.hero h1 { 
  font-size: 2.75rem; 
  font-weight: 800; 
  margin-bottom: 0.75rem; 
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #818cf8 100%); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  letter-spacing: -0.02em; 
}
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 650px; margin: 0 auto; }

/* Articles Grid on Index */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.card:hover { 
  transform: translateY(-4px); 
  border-color: var(--accent); 
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35); 
}
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  color: var(--tag-text);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body .meta { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  margin-bottom: 0.75rem; 
  display: flex; 
  gap: 0.85rem; 
  align-items: center; 
}
.card-body h2 { 
  font-size: 1.25rem; 
  color: var(--text-main); 
  margin-bottom: 0.75rem; 
  line-height: 1.45; 
  font-weight: 700; 
}
.card-body p { 
  color: var(--text-muted); 
  font-size: 0.92rem; 
  line-height: 1.55; 
  margin-top: auto; 
}
.card-media-link { display: block; text-decoration: none; }
.card-title-link { text-decoration: none; color: inherit; }
.card-title-link:hover h2 { color: var(--accent); }
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.btn-card-read {
  flex: 1;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}
.btn-card-read:hover {
  background: var(--accent);
  color: #0a0f1d;
}
.btn-card-dz {
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-card-dz:hover {
  background: #facc15;
  color: #000;
}
.btn-card-yt {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-card-yt:hover {
  background: #ef4444;
  color: #fff;
}
.article-crosslinks {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: rgba(19, 28, 49, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.crosslink-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-dz {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.badge-dz:hover { background: #facc15; color: #000; }
.badge-yt {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.badge-yt:hover { background: #ef4444; color: #fff; }
.badge-tg {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.badge-tg:hover { background: #0284c7; color: #fff; }

/* Article Page */
.article-header { margin-bottom: 2.25rem; }
.article-header h1 { 
  font-size: 2.4rem; 
  line-height: 1.3; 
  margin-bottom: 1rem; 
  font-weight: 800; 
  letter-spacing: -0.02em; 
}
.article-header .subtitle { 
  font-size: 1.2rem; 
  color: var(--text-muted); 
  margin-bottom: 1.25rem; 
  font-style: italic; 
  line-height: 1.5; 
}
.article-meta { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1.25rem; 
  color: var(--text-muted); 
  font-size: 0.9rem; 
  border-bottom: 1px solid var(--border); 
  padding-bottom: 1.5rem; 
}

.article-content { font-size: 1.12rem; color: #cbd5e1; }
.article-content h2 { 
  color: var(--text-main); 
  font-size: 1.65rem; 
  margin: 2.5rem 0 1rem; 
  border-bottom: 1px solid var(--border); 
  padding-bottom: 0.5rem; 
  font-weight: 800; 
}
.article-content h3 { color: var(--accent); font-size: 1.35rem; margin: 2rem 0 0.85rem; font-weight: 700; }
.article-content p { margin-bottom: 1.4rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.75rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: #ffffff; }

/* Figures & Images */
.article-figure {
  margin: 2.25rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13px 13px 0 0;
}
.article-figure figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(10, 15, 29, 0.5);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* AEO Lede Box */
.aeo-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 1.35rem 1.65rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.06);
}
.aeo-box .label { 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  color: var(--accent); 
  font-weight: 800; 
  margin-bottom: 0.5rem; 
  display: flex; 
  align-items: center; 
  gap: 0.4rem; 
}
.aeo-box p { color: #f1f5f9; font-weight: 500; font-size: 1.05rem; margin: 0; line-height: 1.6; }

/* ========================================================================= */
/* CONVERSION FUNNELS: YOUTUBE & DZEN CALLOUTS */
/* ========================================================================= */

/* 1. Top Video Hook Box */
.video-cta-card {
  background: linear-gradient(135deg, #1f1113 0%, #291216 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.12);
}
.video-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fca5a5;
  display: inline-block;
}
.video-cta-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.video-cta-card p {
  color: #e2e8f0;
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.5;
}
.btn-youtube {
  background: var(--yt-red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  margin-top: 0.5rem;
}
.btn-youtube:hover {
  background: var(--yt-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}
.yt-icon { width: 22px; height: 22px; fill: currentColor; }

/* 2. Mid-Article Dzen Callout */
.dzen-callout {
  background: linear-gradient(135deg, #1c1a12 0%, #272213 100%);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 14px;
  padding: 1.6rem 1.85rem;
  margin: 2.75rem 0;
  box-shadow: 0 12px 32px rgba(250, 204, 21, 0.08);
}
.dzen-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde047;
  margin-bottom: 0.5rem;
}
.dzen-callout h4 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.dzen-callout p {
  color: #e2e8f0;
  font-size: 0.98rem;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}
.btn-dzen {
  background: var(--dz-yellow);
  color: #000000 !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.25);
}
.btn-dzen:hover {
  background: var(--dz-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.45);
}
.dzen-glyph {
  font-weight: 900;
  font-family: serif;
  background: #000;
  color: #facc15;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* 3. Dual Funnel Battle Box (End of Article) */
.dual-funnel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  margin-top: 3.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.funnel-header { text-align: center; margin-bottom: 1.85rem; }
.funnel-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.funnel-header h3 { font-size: 1.55rem; color: #ffffff; font-weight: 800; margin-bottom: 0.5rem; }
.funnel-header p { color: var(--text-muted); font-size: 1.02rem; max-width: 620px; margin: 0 auto; }

.funnel-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.btn-channel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}
.btn-channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.btn-channel-yt:hover { border-color: var(--yt-red); background: rgba(239, 68, 68, 0.08); }
.btn-channel-dz:hover { border-color: var(--dz-yellow); background: rgba(250, 204, 21, 0.08); }
.btn-channel-tg:hover { border-color: var(--tg-blue); background: rgba(2, 132, 199, 0.08); }

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.btn-channel-yt .channel-icon { background: rgba(239, 68, 68, 0.15); color: var(--yt-red); }
.btn-channel-yt .channel-icon svg { width: 26px; height: 26px; }
.btn-channel-dz .channel-icon { background: rgba(250, 204, 21, 0.15); color: var(--dz-yellow); }
.btn-channel-tg .channel-icon { background: rgba(2, 132, 199, 0.15); }

.channel-info { display: flex; flex-direction: column; overflow: hidden; }
.channel-info .platform { font-size: 0.78rem; text-transform: uppercase; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em; }
.channel-info .handle { font-size: 1.05rem; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-info .action { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-top: 0.2rem; }

/* 4. Sticky Floating Funnel Bar */
.sticky-funnel-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 820px;
  background: rgba(19, 28, 49, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 0.85rem 1.35rem;
  z-index: 99;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sticky-text { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: #f1f5f9; }
.pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--yt-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.sticky-actions { display: flex; align-items: center; gap: 0.65rem; }
.btn-sticky-yt {
  background: var(--yt-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-sticky-yt:hover { background: var(--yt-red-hover); }
.btn-sticky-dz {
  background: var(--dz-yellow);
  color: #000 !important;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-sticky-dz:hover { background: var(--dz-yellow-hover); }
.btn-sticky-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  transition: color 0.2s;
}
.btn-sticky-close:hover { color: #fff; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}

@media (max-width: 640px) {
  header { padding: 0.85rem 1rem; }
  header nav a { padding: 0.3rem 0.5rem; font-size: 0.8rem; }
  .hero h1 { font-size: 2rem; }
  .article-header h1 { font-size: 1.85rem; }
  .sticky-text { font-size: 0.82rem; }
  .sticky-text strong { display: none; }
}
