/* ============================================================
   JobBot Daily — Blog shared stylesheet
   Matches index.html design system: Unbounded + Onest fonts,
   dark/light theme toggle, sticky nav, btn-primary style.
   ============================================================ */

:root {
  --bg: #06060e;
  --surface: #0b0b16;
  --card: #10101c;
  --border: rgba(255,255,255,0.07);
  --text: #eeeef8;
  --muted: #6e6e90;
  --accent: #5b3cf5;
  --accent-light: #7c5fff;
  --accent2: #2af5df;
  --accent2-dim: rgba(42,245,223,0.12);
  --glow: rgba(91,60,245,0.4);
  --orange: #ff6b35;
}
body.light {
  --bg: #f4f4fb;
  --surface: #eaeaf5;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --text: #0a0a18;
  --muted: #606080;
  --glow: rgba(91,60,245,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
nav, section, footer, header, article, div { position: relative; z-index: 1; }

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: 'Unbounded', sans-serif; line-height: 1.15; }

/* ── GRADIENT UTILITIES ── */
.grad {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px var(--glow);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 60px var(--glow); text-decoration: none; color: #fff; }
.btn-primary svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ── NAV ── */
nav.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 60px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,14,0.92);
}
body.light nav.site-nav { background: rgba(244,244,251,0.92); }

.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900; font-size: 17px;
  letter-spacing: -0.5px; flex-shrink: 0;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent2); }
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex; align-items: center; gap: 28px; margin-left: auto;
}
.nav-links a {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s; white-space: nowrap; letter-spacing: -0.2px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: 24px; }

.theme-toggle {
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
  transition: border-color 0.2s, color 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent2); color: var(--text); }
body.light .icon-moon { display: none; }
body:not(.light) .icon-sun { display: none; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 28px 0 0;
  font-family: 'Unbounded', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent2); text-decoration: none; }
.breadcrumb span { opacity: 0.4; }

/* ── ARTICLE LAYOUT ── */
.blog-container { max-width: 760px; margin: 0 auto; padding: 0 28px; }

.article-header { padding: 40px 0 52px; }

.article-tag {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent2);
  background: var(--accent2-dim);
  border: 1px solid rgba(42,245,223,0.2);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 22px;
}

.article-header h1 {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 900; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 20px; line-height: 1.1;
}

.article-meta {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 700; color: var(--muted);
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 36px;
  letter-spacing: 0.04em;
}

.lead {
  font-size: 18px; line-height: 1.75; color: var(--text);
  border-left: 3px solid var(--accent-light);
  padding-left: 22px; opacity: 0.9;
}

/* ── ARTICLE BODY ── */
.article-body { padding-bottom: 80px; font-size: 17px; line-height: 1.8; }

.article-body h2 {
  font-size: clamp(20px, 3vw, 26px); font-weight: 900;
  letter-spacing: -0.8px; color: var(--text);
  margin: 56px 0 18px; line-height: 1.2;
}
.article-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--accent-light); margin: 36px 0 14px;
  letter-spacing: -0.2px;
}
.article-body p { margin-bottom: 20px; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 26px; margin-bottom: 22px; }
.article-body li { margin-bottom: 10px; color: var(--text); }
.article-body strong { color: var(--text); font-weight: 600; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 0 14px 14px 0;
  padding: 20px 26px; margin: 32px 0;
}
.highlight-box p { margin: 0; font-size: 16px; }

/* ── EXAMPLE BOXES ── */
.example-bad, .example-good {
  padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-size: 15px;
}
.example-bad {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #fca5a5;
}
.example-good {
  background: rgba(42,245,223,.06); border: 1px solid rgba(42,245,223,.2); color: var(--accent2);
}
.example-bad::before { content: "✗ "; font-weight: 700; }
.example-good::before { content: "✓ "; font-weight: 700; }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, rgba(91,60,245,.14), rgba(42,245,223,.07));
  border: 1px solid rgba(91,60,245,.3);
  border-radius: 20px; padding: 36px 40px;
  margin: 56px 0; text-align: center;
}
.cta-block h3 {
  font-size: 20px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--text); margin: 0 0 10px;
}
.cta-block p { color: var(--muted); margin: 0 0 24px; font-size: 15px; line-height: 1.7; }

/* ── LETTER EXAMPLES ── */
.letter-example {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; margin: 24px 0; font-size: 15px; line-height: 1.8;
}
.letter-header {
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.letter-annotation {
  font-family: 'Unbounded', sans-serif; font-size: 10px; color: var(--accent2);
  margin-top: 8px; display: block; letter-spacing: 0.04em;
}

.bad-example {
  background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.18);
  border-radius: 10px; padding: 14px 18px; margin: 12px 0; font-size: 15px; color: #fca5a5;
}
.bad-example::before { content: "✗ "; }
.good-example {
  background: rgba(42,245,223,.06); border: 1px solid rgba(42,245,223,.18);
  border-radius: 10px; padding: 14px 18px; margin: 12px 0; font-size: 15px; color: var(--accent2);
}
.good-example::before { content: "✓ "; }

/* ── STEP LIST ── */
.step-list { list-style: none; padding: 0; margin: 28px 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex; gap: 18px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 12px; align-items: flex-start;
}
.step-list li::before {
  content: counter(steps);
  font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0; width: 26px; line-height: 1.5;
}
.step-list li strong { color: var(--text); display: block; font-weight: 700; margin-bottom: 4px; }
.step-list li span { font-size: 14px; color: var(--muted); }

/* ── FAQ SECTION ── */
.faq-section { margin-top: 60px; }
.faq-section > h2 { margin-top: 0; }

details { border-bottom: 1px solid var(--border); padding: 20px 0; }
summary {
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; letter-spacing: -0.2px;
}
summary::after {
  content: "+"; font-size: 20px; font-family: sans-serif; font-weight: 400;
  color: var(--accent-light); transition: transform 0.3s;
  flex-shrink: 0; margin-left: 16px;
}
details[open] summary::after { content: "−"; }
details p { margin: 16px 0 0; font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ── FUNNEL VISUAL (stats article) ── */
.funnel { margin: 36px 0; display: flex; flex-direction: column; gap: 8px; }
.funnel-step {
  border-radius: 12px; padding: 16px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Unbounded', sans-serif;
}
.funnel-step:nth-child(1) { background: rgba(91,60,245,.18); border: 1px solid rgba(91,60,245,.3); }
.funnel-step:nth-child(2) { background: rgba(91,60,245,.12); border: 1px solid rgba(91,60,245,.2); }
.funnel-step:nth-child(3) { background: rgba(42,245,223,.1); border: 1px solid rgba(42,245,223,.2); }
.funnel-step:nth-child(4) { background: rgba(42,245,223,.16); border: 1px solid rgba(42,245,223,.3); }
.funnel-label { font-size: 14px; font-weight: 700; color: var(--text); }
.funnel-num {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── STAT CARDS ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin: 32px 0; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.stat-card .stat-num {
  font-family: 'Unbounded', sans-serif; font-size: 30px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.stat-card .stat-label { font-family: 'Unbounded', sans-serif; font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14px; }
.compare-table th {
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  padding: 12px 16px; border-bottom: 2px solid var(--border); text-align: left;
}
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.compare-table tr:hover td { background: rgba(255,255,255,.02); }
.compare-table .check { color: var(--accent2); }
.compare-table .cross { color: #f87171; }
.compare-table .bot-name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 13px; color: var(--text); }
.compare-table .price-tag { font-size: 12px; color: var(--muted); }

/* ── TYPE CARDS ── */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.type-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.type-card.ai { border-color: rgba(91,60,245,.3); }
.type-card h4 {
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--text); margin-bottom: 10px;
}
.type-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ── PRO TIP ── */
.pro-tip {
  background: rgba(91,60,245,.08); border: 1px solid rgba(91,60,245,.2);
  border-radius: 14px; padding: 20px 26px; margin: 28px 0;
}
.pro-tip-label {
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 10px;
}
.pro-tip p { margin: 0; font-size: 15px; }

/* ── BLOG INDEX ── */
.blog-hero { padding: 64px 0 56px; }
.section-label {
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent2);
  margin-bottom: 16px; display: block;
}
.blog-hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -2px;
  color: var(--text); margin-bottom: 18px; line-height: 1.07;
}
.blog-hero p { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.8; }

.filters { padding: 0 0 44px; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  font-family: 'Unbounded', sans-serif; font-size: 11px; font-weight: 700;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .2s; letter-spacing: 0.02em;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent-light); color: var(--accent-light); background: rgba(91,60,245,.08); }

.blog-grid { display: grid; gap: 20px; }

.article-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 32px;
  transition: border-color .2s, transform .2s; display: block; color: inherit;
  text-decoration: none;
}
.article-card:hover { border-color: rgba(91,60,245,.4); transform: translateY(-3px); text-decoration: none; }

.card-tag {
  display: inline-block; font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 18px;
}
.tag-ats { color: var(--accent2); background: var(--accent2-dim); border: 1px solid rgba(42,245,223,.2); }
.tag-letters { color: var(--accent-light); background: rgba(91,60,245,.1); border: 1px solid rgba(124,95,255,.2); }
.tag-stats { color: var(--orange); background: rgba(255,107,53,.08); border: 1px solid rgba(255,107,53,.2); }
.tag-guide { color: var(--accent-light); background: rgba(91,60,245,.1); border: 1px solid rgba(124,95,255,.2); }
.tag-tools { color: var(--accent2); background: var(--accent2-dim); border: 1px solid rgba(42,245,223,.2); }
.tag-resume { color: #a78bfa; background: rgba(124,58,237,.12); border: 1px solid rgba(167,139,250,.15); }

.article-card h2 {
  font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 900;
  letter-spacing: -0.6px; color: var(--text); line-height: 1.2; margin-bottom: 12px;
}
.article-card p { font-size: 15px; color: var(--muted); margin-bottom: 22px; line-height: 1.7; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Unbounded', sans-serif; font-size: 11px; color: var(--muted);
}
.read-link { color: var(--accent2); font-weight: 700; }
.article-card:hover .read-link { text-decoration: underline; }

.featured-card { background: linear-gradient(160deg, rgba(91,60,245,.1), var(--card)); border-color: rgba(91,60,245,.25); }
.featured-badge {
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light);
  margin-bottom: 10px; display: block;
}

/* ── CTA BANNER (blog index) ── */
.cta-banner { margin: 56px 0 0; }
.cta-inner {
  background: linear-gradient(135deg, rgba(91,60,245,.16), rgba(42,245,223,.08));
  border: 1px solid rgba(91,60,245,.3); border-radius: 22px;
  padding: 44px; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; width: 600px; height: 300px;
  background: linear-gradient(135deg, rgba(91,60,245,.25), rgba(42,245,223,.08));
  filter: blur(120px); top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; letter-spacing: -1px;
  color: var(--text); margin-bottom: 12px; position: relative;
}
.cta-inner p {
  color: var(--muted); font-size: 16px; margin-bottom: 28px;
  max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.75; position: relative;
}
.cta-subtext { margin-top: 14px; font-size: 12px; color: var(--muted); font-family: 'Unbounded', sans-serif; font-weight: 700; letter-spacing: 0.04em; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 60px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer p, footer a { font-size: 12px; color: var(--muted); font-family: 'Unbounded', sans-serif; font-weight: 700; }
footer a:hover { color: var(--text); text-decoration: none; }
.footer-logo { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 15px; color: var(--text); }
.footer-logo span { color: var(--accent2); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav.site-nav { padding: 14px 24px; gap: 12px; }
  .nav-links { display: none; }
  footer { padding: 24px 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .blog-container { padding: 0 18px; }
  nav.site-nav { padding: 12px 16px; gap: 8px; }
  .nav-right { gap: 8px; }
  .theme-toggle { width: 30px; height: 30px; }
  .nav-logo { font-size: 14px; }
  .type-cards { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .cta-inner { padding: 28px 20px; }
  .cta-block { padding: 24px 20px; }
  .article-card { padding: 22px 20px; }
  nav.site-nav .btn-primary { font-size: 11px; padding: 10px 14px; }
}
@media (max-width: 400px) {
  nav.site-nav { padding: 12px 10px; gap: 4px; }
  nav.site-nav .btn-primary { padding: 8px 12px; font-size: 10px; }
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.2s; padding: 0;
}
.hamburger:hover { border-color: var(--accent2); }
.hamburger span {
  display: block; width: 16px; height: 2px;
  background: var(--muted); border-radius: 2px; transition: all 0.3s;
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 200;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; padding: 40px;
}
.mobile-nav.open { display: flex; }
body.light .mobile-nav { background: var(--bg); }
.mobile-nav .close-btn {
  position: absolute; top: 18px; right: 18px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; width: 40px; height: 40px;
  cursor: pointer; color: var(--muted); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.mobile-nav .close-btn:hover { border-color: var(--accent2); color: var(--text); }
.mobile-nav > a:not(.btn-primary) {
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--text); text-decoration: none; transition: color 0.2s;
}
.mobile-nav > a:not(.btn-primary):hover { color: var(--accent2); text-decoration: none; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hamburger { width: 30px; height: 30px; }
}
