/* ============================================
   BLOG — Dark Theme
   ============================================ */

.blog-page {
  background: #050508;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ============================================
   BLOG INDEX — Hero
   ============================================ */

.blog-index-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.blog-index-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.blog-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a90d9;
  margin-bottom: 1rem;
}

.blog-index-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.blog-index-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 550px;
  margin: 0 auto;
}


/* ============================================
   BLOG INDEX — Featured Post
   ============================================ */

.blog-featured {
  padding: 0 2rem 2rem;
}

.blog-featured-inner {
  max-width: 900px;
  margin: 0 auto;
}

.blog-featured-card {
  display: block;
  background: #0f0f14;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-featured-card:hover {
  border-color: rgba(74,144,217,0.3);
  box-shadow: 0 0 30px rgba(74,144,217,0.06);
}

.blog-featured-content {
  max-width: 650px;
}

.blog-featured-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.blog-featured-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}


/* ============================================
   BLOG INDEX — Tag Navigation
   ============================================ */

.blog-tags-nav {
  padding: 0 2rem 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-tags-inner {
  display: flex;
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4px;
}

.blog-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.blog-tag:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.15);
}

.blog-tag.active {
  color: #4a90d9;
  border-color: rgba(74,144,217,0.4);
  background: rgba(74,144,217,0.08);
}


/* ============================================
   BLOG INDEX — Post Grid
   ============================================ */

.blog-grid-container {
  padding: 1rem 2rem 5rem;
  flex: 1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #0f0f14;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: rgba(74,144,217,0.3);
  box-shadow: 0 0 24px rgba(74,144,217,0.05);
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.blog-card-category {
  color: #4a90d9;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-date,
.blog-card-reading-time {
  color: rgba(255,255,255,0.35);
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.blog-card-author-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

.blog-card-author-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}


/* ============================================
   BLOG POST — Header
   ============================================ */

.blog-post {
  flex: 1;
}

.blog-post-header {
  padding: 7rem 2rem 3rem;
}

.blog-post-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}

.blog-breadcrumbs a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.blog-breadcrumbs a:hover {
  color: rgba(255,255,255,0.7);
}

.blog-breadcrumb-sep {
  color: rgba(255,255,255,0.2);
}

.blog-post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a90d9;
  margin-bottom: 1rem;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.blog-post-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.blog-post-author-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.blog-post-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.blog-post-dot {
  color: rgba(255,255,255,0.2);
}


/* ============================================
   BLOG POST — Content Layout
   ============================================ */

.blog-post-layout {
  display: flex;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  gap: 3rem;
}

.blog-post-content {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}


/* ============================================
   BLOG POST — Article Typography (Dark)
   ============================================ */

.blog-post-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}

.blog-post-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.blog-post-content h3 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}

.blog-post-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.blog-post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.25rem;
}

.blog-post-content a {
  color: #4a90d9;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.blog-post-content a:hover {
  border-bottom-color: #4a90d9;
}

.blog-post-content strong {
  font-weight: 650;
  color: #fff;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.blog-post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.35rem;
}

.blog-post-content li > ul,
.blog-post-content li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.blog-post-content code {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 6px;
}

.blog-post-content pre {
  background: #0a0a14;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.blog-post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}

.blog-post-content blockquote {
  border-left: 3px solid #4a90d9;
  background: rgba(74,144,217,0.06);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}

.blog-post-content blockquote p {
  margin-bottom: 0;
  color: rgba(255,255,255,0.75);
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.blog-post-content th {
  text-align: left;
  font-weight: 600;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.blog-post-content td {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0 1.5rem;
}

.blog-post-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2.5rem 0;
}


/* ============================================
   BLOG POST — Table of Contents (Dark)
   ============================================ */

.blog-toc {
  width: 220px;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.blog-toc-inner {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.blog-toc-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}

.blog-toc .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc .toc ul ul {
  padding-left: 0.75rem;
}

.blog-toc .toc li {
  margin-bottom: 2px;
}

.blog-toc .toc a {
  display: block;
  padding: 4px 0 4px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.blog-toc .toc a:hover {
  color: rgba(255,255,255,0.75);
  border-left-color: rgba(74,144,217,0.5);
}


/* ============================================
   BLOG POST — Footer (Tags)
   ============================================ */

.blog-post-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.blog-post-footer-inner {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-post-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.blog-post-tag:hover {
  color: #4a90d9;
  border-color: rgba(74,144,217,0.3);
}


/* ============================================
   BLOG POST — Author Card
   ============================================ */

.blog-author-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.blog-author-card-inner {
  background: #0f0f14;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.75rem;
}

.blog-author-card-name {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 0.2rem;
}

.blog-author-card-role {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}

.blog-author-card-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
}


/* ============================================
   BLOG — Empty State
   ============================================ */

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
}


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

@media (max-width: 1100px) {
  .blog-toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-index-hero {
    padding: 6rem 1.5rem 2rem;
  }

  .blog-index-title {
    font-size: 2rem;
  }

  .blog-featured,
  .blog-tags-nav,
  .blog-grid-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .blog-featured-card {
    padding: 1.5rem;
  }

  .blog-featured-title {
    font-size: 1.4rem;
  }

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

  .blog-post-header {
    padding: 5.5rem 1.5rem 2rem;
  }

  .blog-post-title {
    font-size: 1.8rem;
  }

  .blog-post-layout {
    padding: 0 1.5rem 2rem;
  }

  .blog-post-footer,
  .blog-author-card {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
