/* ============================================================
   BASE.CSS — Livepush blog foundation
   Dark theme matched to livepush.io (modern navbar design system)
   Headings/titles: Geist + system · Body/sub copy: Inter + system
   ============================================================ */

/* ── Geist (self-hosted, SIL OFL — same files as livepush.io) ── */
@font-face {
  font-family: 'Geist';
  src: url('/blog/assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/blog/assets/fonts/Geist/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/blog/assets/fonts/Geist/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/blog/assets/fonts/Geist/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Brand */
  --c-brand:        #66d72f;
  --c-brand-hover:  #76ea3c;
  --c-brand-soft:   rgba(102, 215, 47, 0.12);
  --c-brand-border: rgba(102, 215, 47, 0.28);
  --c-cta-ink:      #111318;

  /* Navigation */
  --c-nav:          rgba(27, 30, 40, 0.92);
  --c-nav-solid:    #1b1e28;
  --c-nav-border:   rgba(255, 255, 255, 0.1);

  /* Content */
  --c-bg:           #1b1e28;
  --c-surface:      #232734;
  --c-surface-2:    #2b303d;
  --c-border:       rgba(255, 255, 255, 0.11);
  --c-border-light: rgba(255, 255, 255, 0.07);

  /* Text */
  --c-text:         #f7f7f3;
  --c-text-body:    #c6ccd6;
  --c-text-muted:   #9ca2ad;
  --c-text-light:   #7d8490;

  /* Category pill colours (dark, translucent tints) */
  --c-pill-bg:      rgba(102, 215, 47, 0.12);
  --c-pill-text:    #7ee14a;

  /* Callouts */
  --c-note-bg:      rgba(91, 158, 255, 0.09);
  --c-note-border:  #5b9eff;
  --c-warn-bg:      rgba(255, 180, 84, 0.09);
  --c-warn-border:  #ffb454;
  --c-cta-bg:       rgba(102, 215, 47, 0.09);
  --c-cta-border:   rgba(102, 215, 47, 0.4);

  /* Misc */
  --c-shadow:       rgba(0, 0, 0, 0.35);
  --c-shadow-md:    rgba(0, 0, 0, 0.5);
  --card-sheen:     linear-gradient(150deg, rgba(255, 255, 255, 0.045) 0%, transparent 55%);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Spacing */
  --gap: 1.5rem;

  /* Typography — Geist for headings/titles, Inter for everything else */
  --font-heading: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'SFMono-Regular', ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --max-w: 1200px;
  --max-w-article: 740px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-text);
}

::selection { background: rgba(102, 215, 47, 0.85); color: #111318; }

/* Dark scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #181a22; }
::-webkit-scrollbar-thumb { background: #333947; border-radius: 8px; border: 3px solid #181a22; }
::-webkit-scrollbar-thumb:hover { background: #434a59; }

img { max-width: 100%; height: auto; display: block; }

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

button, input, select, textarea { font-family: inherit; font-size: inherit; }

ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 2px; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Brand logo (footer) ──────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 132px; height: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--c-brand); }

/* ── Buttons (green pill CTAs, like livepush.io) ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-brand);
  color: var(--c-cta-ink);
  box-shadow: 0 10px 28px rgba(102, 215, 47, 0.16);
}
.btn-primary:hover { background: var(--c-brand-hover); color: var(--c-cta-ink); }

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-lg { font-size: 1rem; padding: 0.7rem 1.6rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-text);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.07); }

/* ── Footer (ported from livepush.io main site) ───── */
.footer-section {
  position: relative;
  margin-top: 0;
  margin-bottom: 0 !important;
  color: #ffffff;
  background: #171a22;
  border: 0;
  border-radius: 0;
}

.footer-section a { color: #fff; }

.footer-container {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  padding: 3rem 0 4rem;
}

.footer-left-wrap {
  flex: unset;
  width: 20%;
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.footer-left-wrap .reachout-wrap {
  display: flex;
  align-items: flex-start;
}

.footer-section .navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  white-space: normal;
}

.footer-section .navbar-brand .img_wrap {
  padding-left: 0.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding-right: 40px;
}

.footer-logo img {
  width: auto;
  height: 36px;
}

.footer-logo .slogan {
  max-width: 250px;
  padding: 0.5rem 0 0 0.5rem;
  color: rgba(247, 247, 243, 0.72);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.footer-subsection {
  padding: 0 1rem 0 0.5rem;
  flex: 1;
}

.footer-subsection-2-1 { margin-bottom: 10px; }

.footer-subsection-title {
  margin: 0;
  color: rgba(247, 247, 243, 0.64);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: capitalize;
}

.footer-links-wrap {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.footer-link {
  margin: 0 0 5px;
  font-size: 14px;
}

.footer-link a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-left: -10px;
  padding: 0 10px;
  color: rgba(247, 247, 243, 0.72);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.33px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.footer-link a:hover,
.footer-link a:focus-visible {
  color: #111318;
  font-weight: 600;
  background: #66d72f;
  text-decoration: none;
  transform: translateX(2px);
}

.footer-credits {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.footer-credits-alt {
  padding: 1rem 0 0;
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid #24242e;
}

.footer-credits-alt > * { flex: 1; }

.footer-credits p {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #e2e2e2;
  text-align: right;
  margin: 0;
}

.footer-credits .navbar {
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-end !important;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-section .navbar a {
  margin-right: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500 !important;
  color: rgba(247, 247, 243, 0.72);
  border-bottom: 0;
  text-decoration: none;
}

.footer-section .navbar a:last-child { margin-right: 0; }

.footer-section .navbar a:hover,
.footer-section .navbar a:focus-visible {
  color: #f7f7f3;
}

.social-site-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-left: 0.5rem;
}

.social-site-links label {
  flex-basis: 100%;
  margin-bottom: 0.4rem;
  color: rgba(247, 247, 243, 0.72);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
}

.social-site-links .site-link {
  margin-right: 0.75rem;
  padding: 0.1rem;
  border-radius: 50px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 247, 243, 0.86);
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.social-site-links .site-link:last-of-type { margin-right: 0; }

.social-site-links .site-link:hover,
.social-site-links .site-link:focus-visible {
  color: #f7f7f3;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.social-site-links .site-link img { width: 15px; }

@media (max-width: 1000px) {
  .footer-left-wrap { flex-direction: column; }
  .footer-left-wrap .reachout-wrap {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: flex-start;
  }
  .footer-subsection {
    width: 50%;
    flex: unset;
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-credits.footer-credits-alt {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .footer-credits p { text-align: left; line-height: 1.3; }
  .footer-credits .navbar { justify-content: flex-start !important; }
  .footer-section .navbar a { margin: 0 0.75rem 0 0; }
  .footer-subsection-title { opacity: 0.7; }
}

/* ── Category pills (translucent dark tints) ──────────────── */
.pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(247, 247, 243, 0.07);
  color: var(--c-text-body);
  border: 1px solid rgba(255, 255, 255, 0.13);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.pill:hover { background: rgba(247, 247, 243, 0.12); text-decoration: none; }

.pill-obs        { background: rgba(91, 158, 255, 0.12);  color: #7cb2ff; border-color: rgba(91, 158, 255, 0.3); }
.pill-obs:hover  { background: rgba(91, 158, 255, 0.2); }
.pill-rtmp       { background: rgba(255, 180, 84, 0.12);  color: #ffc276; border-color: rgba(255, 180, 84, 0.3); }
.pill-rtmp:hover { background: rgba(255, 180, 84, 0.2); }
.pill-multi      { background: rgba(102, 215, 47, 0.12);  color: #8ae65a; border-color: rgba(102, 215, 47, 0.3); }
.pill-multi:hover { background: rgba(102, 215, 47, 0.2); }
.pill-trouble    { background: rgba(255, 107, 107, 0.12); color: #ff9494; border-color: rgba(255, 107, 107, 0.3); }
.pill-trouble:hover { background: rgba(255, 107, 107, 0.2); }
.pill-prerecord  { background: rgba(176, 122, 255, 0.12); color: #c69bff; border-color: rgba(176, 122, 255, 0.3); }
.pill-prerecord:hover { background: rgba(176, 122, 255, 0.2); }
.pill-247        { background: rgba(255, 159, 67, 0.12);  color: #ffb26e; border-color: rgba(255, 159, 67, 0.3); }
.pill-247:hover  { background: rgba(255, 159, 67, 0.2); }
.pill-compare    { background: rgba(142, 162, 255, 0.12); color: #aabbff; border-color: rgba(142, 162, 255, 0.3); }
.pill-compare:hover { background: rgba(142, 162, 255, 0.2); }
.pill-website    { background: rgba(53, 208, 186, 0.12);  color: #5fe0ca; border-color: rgba(53, 208, 186, 0.3); }
.pill-website:hover { background: rgba(53, 208, 186, 0.2); }
.pill-update     { background: rgba(232, 121, 249, 0.12); color: #efa0fb; border-color: rgba(232, 121, 249, 0.3); }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-muted { color: var(--c-text-muted); }
.text-sm { font-size: 0.875rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
}

@media (max-width: 480px) {
}
