/* ============ CODEHOUSE.GR BLOG — matches premium dark theme ============ */
:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-2: #101016;
  --panel: #14141c;
  --panel-2: #191924;
  --line: rgba(244,244,240,.08);
  --text: #f4f4f0;
  --text-dim: rgba(244,244,240,.62);
  --lime: #c6ff4a;
  --lime-dim: rgba(198,255,74,.14);
  --font-head: 'Space Grotesk', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--lime); }

/* Nav */
.bnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(11,11,15,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bnav-brand { display: flex; align-items: center; gap: 10px; }
.bnav-brand img { height: 26px; width: auto; }
.bnav-links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; color: var(--text-dim); }
.bnav-links a:hover { color: var(--lime); }
.bnav-cta {
  padding: 9px 18px; border-radius: 100px; background: var(--lime); color: #0b0b0f !important;
  font-weight: 700; font-size: 14px;
}
@media (max-width: 640px) { .bnav-links a:not(.bnav-cta) { display: none; } }

/* Blog index */
.bhero { padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 56px) 30px; max-width: 1060px; margin: 0 auto; }
.bkicker { font-family: var(--font-head); color: var(--lime); font-size: 14px; letter-spacing: .12em; margin-bottom: 14px; }
.bhero h1 { font-family: var(--font-head); font-size: clamp(32px, 5.5vw, 56px); line-height: 1.12; letter-spacing: -0.02em; }
.bhero p.sub { color: var(--text-dim); margin-top: 16px; max-width: 620px; font-size: 17px; }

.bgrid {
  max-width: 1060px; margin: 40px auto 90px; padding: 0 clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
}
.bcard {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; transition: transform .35s var(--ease), border-color .35s;
}
.bcard:hover { transform: translateY(-5px); border-color: rgba(198,255,74,.35); }
.bcard .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--lime); background: var(--lime-dim); padding: 5px 12px; border-radius: 100px;
}
.bcard h2 { font-family: var(--font-head); font-size: 21px; line-height: 1.3; }
.bcard p { color: var(--text-dim); font-size: 15px; flex: 1; }
.bcard .meta { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }
.bcard .read { color: var(--lime); font-weight: 700; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 40px) 40px; }
.article .bkicker a { color: var(--lime); }
.article h1 { font-family: var(--font-head); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.article .ameta { display: flex; gap: 18px; color: var(--text-dim); font-size: 14px; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article h2 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 29px); margin: 44px 0 16px; line-height: 1.25; }
.article h3 { font-family: var(--font-head); font-size: 20px; margin: 32px 0 12px; }
.article p { margin-bottom: 18px; color: rgba(244,244,240,.86); }
.article ul, .article ol { margin: 0 0 20px 22px; color: rgba(244,244,240,.86); }
.article li { margin-bottom: 9px; }
.article strong { color: var(--text); }
.article a:not(.btn) { color: var(--lime); border-bottom: 1px solid rgba(198,255,74,.35); }
.article blockquote {
  border-left: 3px solid var(--lime); background: var(--panel);
  padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 26px 0; color: var(--text-dim);
}
.article table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.article th { font-family: var(--font-head); text-align: left; color: var(--lime); border-bottom: 1px solid rgba(198,255,74,.3); padding: 10px 12px; }
.article td { border-bottom: 1px solid var(--line); padding: 11px 12px; color: rgba(244,244,240,.84); }
.article .toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 24px; margin: 0 0 34px; font-size: 15px;
}
.article .toc b { font-family: var(--font-head); display: block; margin-bottom: 10px; }
.article .toc a { display: block; color: var(--text-dim); border: none; padding: 4px 0; }
.article .toc a:hover { color: var(--lime); }
.article .answer-box { border-left-width: 4px; background: var(--lime-dim); color: var(--text); font-size: 18px; }
.article-faq { margin: 0 0 12px; }
.article-faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.article-faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 16px 4px; }
.article-faq summary::marker { color: var(--lime); }
.article-faq details[open] { border-color: rgba(198,255,74,.3); }
.article-faq details p { padding: 0 4px 12px; margin-bottom: 0; color: var(--text-dim); }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(198,255,74,.3); border-radius: 22px;
  padding: 34px; text-align: center; margin: 48px 0 10px;
}
.cta-box h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 10px; }
.cta-box p { color: var(--text-dim); margin-bottom: 22px; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 100px;
  background: var(--lime); color: #0b0b0f; font-weight: 800; font-size: 15.5px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(198,255,74,.25); }

/* Footer */
.bfooter {
  border-top: 1px solid var(--line); padding: 34px clamp(20px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 14px;
}
.bfooter a { color: var(--lime); }
@media (max-width: 640px) {
  .article .ameta { flex-wrap: wrap; gap: 6px 14px; }
  .article .answer-box { font-size: 16px; padding: 16px 18px; }
}
