/* ═══════════════════════════════════════════════════
   BLOG.CSS — Shared styles for blog.html & blog-single.html
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; height: 100%; }
body {
  background: #09090b;
  color: #fafafa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  min-height: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --bg-primary: #09090b;
  --bg-secondary: #0e0e10;
  --bg-surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.10);
  --border-accent: rgba(99,102,241,0.25);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent: #4f46e5;
  --accent-subtle: rgba(79,70,229,0.10);
  --white-glass: rgba(255,255,255,0.04);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
h3 { font-size: clamp(1.125rem, 1.75vw, 1.375rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
h4 { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; margin: 0; }
h6 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 1rem; }
p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; color: var(--text-muted); }

/* Container */
.container { width: 100%; max-width: 80rem; margin: 0 auto; position: relative; padding: 0 5rem; }
@media (max-width: 1024px) { .container { padding: 0 2.5rem; } }
@media (max-width: 768px) { .container { padding: 0 1.5rem; } }
@media (max-width: 480px) { .container { padding: 0 1rem; } }
.container-narrow { max-width: 52rem; }

.py-section { padding: 4rem 0; }
@media (max-width: 768px) { .py-section { padding: 2.5rem 0; } }

/* ═══ Navbar (matches index.html) ═══ */
.navbar_component {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  height: 4.375rem;
  padding: 0 5rem;
  transition: background-color 0.3s, border-color 0.3s;
}
@media (max-width: 1024px) { .navbar_component { padding: 0 2.5rem; } }
@media (max-width: 768px) { .navbar_component { padding: 0 1.5rem; } }
.navbar_component.scrolled {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  height: 100%;
  margin: 0 auto;
}
.navbar_logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  flex-shrink: 0;
}
.navbar_menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.navbar_link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.navbar_link:hover { color: var(--text-primary); }
.navbar_link.active { color: var(--text-primary); background: var(--white-glass); }
.navbar_end {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 8px;
}
.navbar_cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1.25rem;
  background: #fafafa;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.navbar_cta:hover { background: rgba(250,250,250,0.85); }
.nav-mobile-toggle { display: none; }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: auto; }
.nav-mobile-overlay a { font-size: 1.25rem; font-weight: 500; color: var(--text-primary); transition: opacity 0.2s ease; }
.nav-mobile-overlay a:hover { opacity: 0.7; }
.nav-mobile-overlay .navbar_cta { font-size: 1rem; padding: 0.75rem 2rem; margin-top: 8px; color: #09090b; }
.nav-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-close-btn:hover { background: var(--white-glass); }

@media (max-width: 768px) {
  .navbar_component { padding: 0 1.5rem; }
  .navbar_menu, .navbar_end .navbar_cta { display: none; }
  .nav-mobile-toggle {
    display: flex;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border-radius: 6px;
    background: var(--white-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
  }
  .nav-mobile-overlay { display: flex; }
}

/* ═══ Footer ═══ */
.footer_component {
  border-top: 1px solid var(--border);
  padding: 4rem 0 4rem;
  position: relative;
}
@media (max-width: 1024px) { .footer_component { padding: 3rem 0 3rem; } }
@media (max-width: 768px) { .footer_component { padding: 2.5rem 0 2.5rem; } }
.footer_top-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) { .footer_top-wrapper { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer_top-wrapper { grid-template-columns: 1fr; } }

.footer_brand { display: flex; flex-direction: column; gap: 16px; }
.footer_logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.0625rem; font-weight: 700;
}

.footer_desc { font-size: 0.875rem; color: var(--text-secondary); max-width: 320px; line-height: 1.6; }
@media (max-width: 768px) { .footer_desc { max-width: 100%; } }

.footer_social-icons {
  display: flex;
  gap: 8px;
  padding: 0;
}
.footer_social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.footer_social-icons a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

.footer_heading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-list li { list-style: none; }
.link-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.link-list a:hover { color: var(--text-primary); }

.footer_bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer_credit-text { font-size: 0.8125rem; color: var(--text-secondary); }
.footer_credit-text a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.15);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer_credit-text a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}
@media (max-width: 768px) { .footer_bottom { flex-direction: column; text-align: center; } }

/* Newsletter */
.newsletter_form {
  display: flex;
  gap: 8px;
  width: 100%;
}
.newsletter_input {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}
.newsletter_input::placeholder { color: var(--text-muted); }
.newsletter_input:focus { border-color: var(--accent); }
.newsletter_btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.newsletter_btn:hover { background: rgba(250,250,250,0.85); }
.newsletter_privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
