/* BeyondTube Pro Blog — design matches landing page */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

:root {
  --bg:          #020617;   /* slate-950 */
  --surface:     rgba(255,255,255,0.025);
  --surface-h:   rgba(255,255,255,0.042);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(239,68,68,0.28);
  --text:        #ffffff;
  --s300:        #cbd5e1;
  --s400:        #94a3b8;
  --red:         #ef4444;
  --orange:      #f97316;
  --gradient:    linear-gradient(135deg, #ef4444, #f97316);
  --glow:        0 0 22px rgba(239,68,68,0.28);
  --glow-h:      0 0 36px rgba(239,68,68,0.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  font-size: 18px; /* Added explicit base font size so rem scales larger */
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Aurora ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(239,68,68,0.09) 0%, rgba(249,115,22,0.055) 45%, transparent 72%);
  filter: blur(48px);
}
.aurora::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -15%;
  width: 55%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(249,115,22,0.06) 0%, transparent 70%);
  filter: blur(64px);
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.nav-logo .icon {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav-logo .icon svg { width: 18px; height: 18px; fill: #fff; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-back { color: var(--s400); font-size: 0.84rem; text-decoration: none; transition: color .15s; }
.nav-back:hover { color: var(--s300); }
.btn-cta {
  background: var(--gradient);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn-cta:hover { opacity: 0.9; box-shadow: var(--glow-h); text-decoration: none; }

/* ── Blog index hero ── */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 44px;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 55%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--s400); font-size: 1.02rem; }

/* ── Blog grid ── */
.grid {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 24px 100px;
  display: grid;
  gap: 12px;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
  box-shadow: 0 0 0 1px rgba(239,68,68,0.1);
}
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.22);
  color: #fca5a5;
  padding: 2px 9px;
  border-radius: 100px;
}
.card h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.38;
  margin: 0 0 8px;
}
.card p { color: var(--s400); font-size: 0.875rem; margin: 0 0 14px; line-height: 1.55; }
.card-arrow { color: #fb923c; font-size: 0.84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ── Article layout ── */
article {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.date { color: var(--s400); font-size: 0.82rem; }

h1 {
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 60%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
p { color: var(--s300); margin-bottom: 18px; font-size: 0.97rem; }
ul, ol { color: var(--s300); padding-left: 22px; margin-bottom: 18px; font-size: 0.97rem; }
li { margin-bottom: 8px; }
strong { color: #fff; font-weight: 600; }
a { color: #fb923c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── CTA box ── */
.cta-box {
  margin-top: 60px;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cta-box strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.cta-box p { margin: 0; color: var(--s300); font-size: 0.92rem; }
.cta-btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: box-shadow .2s, opacity .2s;
}
.cta-btn:hover { opacity: 0.9; box-shadow: var(--glow-h); text-decoration: none; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 32px 24px;
  text-align: center;
  color: var(--s400);
  font-size: 0.82rem;
}
footer a { color: var(--s400); text-decoration: underline; }
footer a:hover { color: var(--s300); }

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.9rem; }
  article, .hero, .grid { padding-left: 20px; padding-right: 20px; }
  .cta-box { padding: 22px 20px; }
}
