/* Blog-specific styles */

/* Breadcrumbs */
.breadcrumbs {
  padding: 24px 0 12px;
  font-size: 14px;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "→";
  color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
  opacity: 1;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
}

/* Article Main */
.article-main {
  padding: 0 0 80px;
}

/* Article Header */
.article-header {
  margin: 40px 0 48px;
  text-align: center;
}

.article-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-category {
  background: linear-gradient(135deg, var(--orange), var(--ultramarine));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}

.article-date,
.article-reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.article-subtitle {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Table of Contents */
.toc-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 48px 0;
}

.toc-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 12px;
}

.toc li::before {
  content: counter(toc-counter) ". ";
  color: var(--orange-light);
  font-weight: 600;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: var(--orange-light);
  opacity: 1;
}

/* Article Content */
.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.article-content section {
  margin-bottom: 56px;
}

.article-content h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  margin: 56px 0 24px;
  line-height: 1.2;
  scroll-margin-top: 100px;
}

.article-content section:first-child h2 {
  margin-top: 0;
}

.article-content h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  margin: 40px 0 16px;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-content a {
  color: var(--orange-light);
  text-decoration: underline;
  text-decoration-color: rgba(255, 155, 47, 0.3);
  text-underline-offset: 2px;
}

.article-content a:hover {
  text-decoration-color: var(--orange-light);
  opacity: 1;
}

/* Info Box */
.info-box {
  background: rgba(10, 5, 104, 0.08);
  border-left: 4px solid var(--ultramarine);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}

.info-box p {
  margin: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(27, 0, 255, 0.12));
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-box h3 {
  margin: 0 0 16px;
  font-size: 28px;
}

.cta-box p {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Article Footer */
.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.article-share {
  text-align: center;
}

.article-share p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

/* Related Articles */
.related-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
}

.related-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-4px);
}

.related-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.related-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.coming-soon {
  display: inline-block;
  background: rgba(255, 106, 0, 0.15);
  color: var(--orange-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blog Index Styles */
.blog-header {
  text-align: center;
  padding: 80px 0 40px;
}

.blog-header h1 {
  font-size: clamp(40px, 5vw, 56px);
  margin: 0 0 16px;
}

.blog-header p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-4px);
  opacity: 1;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card-category {
  background: linear-gradient(135deg, var(--orange), var(--ultramarine));
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 12px;
}

.blog-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.blog-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .article-title {
    font-size: 32px;
  }

  .article-subtitle {
    font-size: 17px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 28px;
  }

  .article-content h3 {
    font-size: 22px;
  }

  .toc-box {
    padding: 20px;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .button {
    width: 100%;
  }

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

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

