/* ==============================
   BLOG SHARED STYLES
   ============================== */

:root {
  --blog-bg: #f6f7fb;
  --blog-surface: #ffffff;
  --blog-text: #172033;
  --blog-muted: #667085;
  --blog-border: #e6e9f0;
  --blog-accent: #00a995;
  --blog-accent-dark: #007d70;
  --blog-highlight: #fbc257;
  --blog-dark: #10182b;
}

.site-container,
.article-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.blog-hero {
  padding: 9rem 0 4rem;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(0, 198, 174, 0.18), transparent 34%),
    var(--blog-dark);
}

.blog-hero-inner {
  max-width: 760px;
}

.blog-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blog-highlight);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero h1,
.article-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.blog-hero-copy {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.75;
}

.blog-index-section {
  min-height: 55vh;
  padding: 4rem 0 6rem;
  background: var(--blog-bg);
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.blog-filter {
  padding: 0.65rem 1rem;
  color: var(--blog-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  cursor: pointer;
}

.blog-filter:hover,
.blog-filter.active {
  color: #ffffff;
  background: var(--blog-accent-dark);
  border-color: var(--blog-accent-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 1.5rem;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 43, 0.06);
}

.blog-card[hidden] {
  display: none;
}

.blog-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  color: var(--blog-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-card-meta span,
.article-meta span:first-child {
  color: var(--blog-accent-dark);
}

.blog-card h2 {
  margin: 1rem 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-card h2 a {
  color: var(--blog-text);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--blog-accent-dark);
}

.blog-card > p {
  margin: 0 0 1.3rem;
  color: var(--blog-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.blog-read-more {
  margin-top: auto;
  color: var(--blog-accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
}

.blog-empty-state {
  padding: 2rem;
  color: var(--blog-muted);
  text-align: center;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
}

/* ==============================
   ARTICLE
   ============================== */

.article-page {
  background: var(--blog-bg);
}

.article-container {
  max-width: 980px;
}

.article-hero {
  padding: 8.5rem 0 3.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(0, 198, 174, 0.17), transparent 34%),
    var(--blog-dark);
}

.article-back-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--blog-highlight);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.article-back-link:hover {
  text-decoration: underline;
}

.article-meta {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.62);
}

.article-intro {
  max-width: 740px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
  line-height: 1.7;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3.5rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.article-content {
  min-width: 0;
  color: var(--blog-text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-content p {
  margin: 0 0 1.4rem;
}

.article-content h2 {
  margin: 2.7rem 0 1rem;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
  color: var(--blog-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.65;
  background: #edf9f7;
  border-left: 4px solid var(--blog-accent);
  border-radius: 0 12px 12px 0;
}

.article-sidebar {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1rem;
}

.article-sidebar-card {
  padding: 1rem;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 14px;
}

.article-sidebar-label {
  margin: 0 0 0.7rem;
  color: var(--blog-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-sidebar-card a {
  color: var(--blog-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.article-sidebar-card a:hover {
  color: var(--blog-accent-dark);
}

.article-action-button {
  width: 100%;
  padding: 0.7rem 0.9rem;
  color: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--blog-accent-dark);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.article-action-button:hover {
  background: var(--blog-accent);
}

.copy-link-status {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: var(--blog-muted);
  font-size: 0.72rem;
}

.article-footer {
  padding: 1.5rem 0 4rem;
}

.personal-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--blog-dark);
}

.personal-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
  font-size: 0.78rem;
}

.personal-footer a {
  color: var(--blog-highlight);
  text-decoration: none;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-hero {
    padding-top: 7.5rem;
  }

  .blog-index-section {
    padding-top: 2.5rem;
  }

  .blog-grid,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: 0;
  }

  .article-hero {
    padding-top: 7.5rem;
  }

  .article-layout {
    padding-top: 2.5rem;
  }

  .personal-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


  .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;

  background: rgba(12, 20, 38, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.scrolled {
  position: fixed;
  background: rgba(12, 20, 38, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;

  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;

  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 750;
}

.brand-role {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;

  padding: 0.65rem 0;

  color: rgba(255, 255, 255, .8)!important;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a.active {
  color: #ffffff;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;

  background: #fbc257;
  border-radius: 999px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.82rem 1.2rem;

  color: #101522;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;

  background: #fbc257;
  border-radius: 999px;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.nav-cta:hover {
  color: #101522;
  background: #ffd477;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;

  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;

  background: #ffffff;
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 820px) {
  .header-inner {
    min-height: 74px;
  }

  .brand-role {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 1rem;

    background: #10182b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    transform: translateY(-130%);
    visibility: hidden;
    opacity: 0;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .site-nav a {
    padding: 1rem;
    color: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .site-nav a.active::after {
    display: none;
  }

  .site-nav a.active {
    color: #fbc257;
  }
}
