@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Inter:wght@400;500;600&family=Share+Tech+Mono&display=swap');

/* ═══════════════════════════════════════════════════════════════
   DARK SCRUB — Blog Article Styles
   Shared CSS for all /blog/*.html article pages
   Provides nav, footer, page hero, article body, and CTA styling
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ───────────────────────────────────────────── */
:root {
  --bg: #0a0a10;
  --bg-mid: #181824;
  --bg-mid-card: #1e1e2c;
  --bg-light: #222234;
  --border: #1e1e2e;
  --border-hover: #3a3a50;
  --text: #d0d0dc;
  --text-muted: #9a9ab0;
  --text-dim: #5a5a70;
  --red: #e63333;
  --red-dark: #881a1a;
  --teal: #2dd4bf;
  --teal-dim: #1a8a7a;
  --michroma: 'Michroma', 'Share Tech Mono', monospace;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --tech: 'Share Tech Mono', monospace;
}

/* ─── RESET + BASE ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-mid);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── FEED BAR / TOP BAR (both patterns) ──────────────────── */
.feed-bar,
.top-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 20px;
  font-family: var(--michroma);
  font-size: 9px;
  color: var(--text-dim);
  text-align: right;
  letter-spacing: 2px;
}

/* ─── NAVIGATION (both patterns) ──────────────────────────── */
.site-nav,
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .nav-logo,
nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Major Mono Display', monospace;
  font-size: 16px;
  color: #ff3b30;
  letter-spacing: 2px;
  text-decoration: none;
}

nav .nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

nav .nav-logo span {
  font-family: 'Major Mono Display', monospace;
  font-size: 16px;
  color: #ff3b30;
  letter-spacing: 2px;
}

.site-nav .nav-links,
nav .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.site-nav .nav-links a,
nav .nav-links a {
  font-family: var(--michroma);
  font-size: 11px;
  color: #999999;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav .nav-links a:hover,
nav .nav-links a:hover { color: #e0e0e0; }

nav .nav-cta {
  background: #ff3b30;
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--michroma);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  transition: background 0.2s;
}

nav .nav-cta:hover { background: #e0342a; }

.site-nav .nav-toggle,
nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-nav .nav-links,
  nav .nav-links { display: none; }

  .site-nav .nav-links.open,
  nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    z-index: 100;
  }

  .site-nav .nav-toggle,
  nav .nav-toggle { display: block; }
}

/* ─── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 24px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Gradient overlay for inline background-image style */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,16,0.3) 0%, rgba(24,24,36,0.95) 100%);
  z-index: 0;
}

/* Background image container approach */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.25;
  filter: saturate(0.7) brightness(0.8);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-hero-content .container {
  padding: 0 24px;
}

/* Section label inside hero */
.section-label,
.page-label {
  font-family: var(--michroma);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: 'Chakra Petch', 'Arial Narrow', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-subtitle {
  font-family: var(--michroma);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.page-hero-divider {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 20px;
}

/* ─── CONTAINER (used by some articles) ───────────────────── */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── ARTICLE LAYOUT ──────────────────────────────────────── */
.blog-article {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-tag {
  display: inline-block;
  font-family: var(--michroma);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--teal-dim);
  background: rgba(45, 212, 191, 0.06);
}

.article-header h1 {
  font-family: 'Chakra Petch', 'Arial Narrow', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  font-family: var(--michroma);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ─── ARTICLE BODY ────────────────────────────────────────── */
article {
  padding-bottom: 48px;
}

article p {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.4em;
  max-width: 720px;
}

article strong {
  color: #ffffff;
}

article h2 {
  font-family: 'Chakra Petch', 'Arial Narrow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-left: 3px solid var(--red);
  padding-left: 12px;
  margin-top: 2.5rem;
  margin-bottom: 0.8em;
}

article h3 {
  font-family: 'Chakra Petch', 'Arial Narrow', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #e8e8f0;
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  margin-top: 2rem;
  margin-bottom: 0.8em;
}

article ul, article ol {
  padding-left: 20px;
  margin-bottom: 1.4em;
}

article li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.4em;
}

article ul li::marker { color: var(--teal); }
article ol li::marker { color: var(--teal); font-weight: 600; }

article blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  margin: 1.5em 0;
  color: #e0e0e8;
  font-style: italic;
}

article a { color: var(--teal); }
article a:hover { text-decoration: underline; }

/* ─── COMPARISON TABLE ─────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0 2em;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.compare-table th {
  font-family: var(--michroma);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
}

.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}

.compare-table tr.highlight td {
  color: var(--teal);
  font-weight: 500;
}

/* ─── OLD ARTICLE CTA (some articles use this) ────────────── */
.article-cta {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg-mid-card);
  text-align: center;
}

.article-cta p:first-child {
  font-family: var(--michroma);
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.article-cta .btn,
.article-cta a.btn {
  display: inline-block;
  font-family: var(--michroma);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--red);
  color: #000;
  padding: 14px 32px;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 8px;
}

.article-cta .btn:hover { background: #ff4444; }

/* ─── CALLOUT BOX ─────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--teal);
  background: rgba(45, 212, 191, 0.05);
  padding: 20px 24px;
  margin: 1.5em 0;
}

.callout p {
  font-family: var(--michroma);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.5px;
  margin: 0;
}

/* ─── BLOG CTA ────────────────────────────────────────────── */
.blog-cta {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg-mid-card);
  text-align: center;
}

.blog-cta h3 {
  font-family: var(--michroma);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 1px;
  border: none;
  padding-left: 0;
}

.blog-cta a {
  display: inline-block;
  font-family: var(--michroma);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--red);
  color: #000;
  padding: 14px 32px;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-cta a:hover {
  background: #ff4444;
  box-shadow: 0 0 30px rgba(230, 51, 51, 0.3);
}

/* ─── FOOTER (both patterns) ──────────────────────────────── */
.site-footer,
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 60px;
  background: var(--bg);
}

.site-footer .footer-inner,
footer .footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Footer logo — text-only pattern */
.site-footer .nav-logo,
footer .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Major Mono Display', monospace;
  font-size: 16px;
  color: #ff3b30;
  letter-spacing: 2px;
  text-decoration: none;
}

/* Footer logo image */
footer .nav-logo img,
footer .footer-brand img,
.site-footer .nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

footer .nav-logo span {
  font-family: 'Major Mono Display', monospace;
  font-size: 16px;
  color: #ff3b30;
  letter-spacing: 2px;
}

/* Footer brand wrapper */
footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer nav links — both patterns */
.site-footer .footer-nav,
footer .footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.site-footer .footer-nav a,
footer .footer-links a {
  font-family: var(--michroma);
  font-size: 10px;
  color: #8a8a9e;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.site-footer .footer-nav a:hover,
footer .footer-links a:hover { color: #c4c4cc; }

/* Footer legal text */
.site-footer .footer-copy,
footer .footer-legal {
  width: 100%;
  font-family: var(--michroma);
  font-size: 9px;
  color: #7a7a90;
  letter-spacing: 1px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  line-height: 1.6;
}

/* No cookies line */
.site-footer .no-cookie-line,
footer .footer-no-cookies {
  font-family: var(--michroma);
  font-size: 9px;
  color: var(--teal);
  letter-spacing: 2px;
  margin-top: 8px;
  text-align: center;
}

/* Footer disclaimer (on some pages) */
footer .footer-inner > p[style] {
  font-family: var(--michroma) !important;
  font-size: 9px !important;
  color: #4a4a5e !important;
  text-align: center;
  max-width: 700px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { min-height: 240px; padding: 2rem 16px; }
  .article-header { padding: 32px 0 24px; }
  article p, article li { font-size: 16px; }
  .blog-cta { padding: 24px 16px; }
  .article-cta { padding: 24px 16px; }
  .site-footer .footer-nav { gap: 16px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}
