/* Shared styles for static article pages (includes/article-content/*.html) */

.blog-container {
  --primary: #1d4ed8;
  --text: #1f2937;
  --heading: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --light: #f8fafc;

  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.blog-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}

.hero-image {
  width: 1000px;
  height: 750px;
  margin: 34px auto 50px;
  border-radius: 18px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 34px 0 50px;
  }
}

.content-image {
  margin: 40px 0;
}

.content-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.blog-content h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--heading);
  margin: 0;
}

.blog-content h2 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--heading);
  margin: 70px 0 24px;
}

.blog-content h3 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--heading);
  margin: 45px 0 18px;
}

.blog-content p {
  font-size: 19px;
  line-height: 1.95;
  color: var(--text);
  margin: 0 0 28px;
}

.blog-content strong {
  color: var(--heading);
}

.blog-content blockquote {
  margin: 45px 0;
  padding: 35px;
  border-left: 5px solid var(--primary);
  background: #eff6ff;
  border-radius: 12px;
}

.blog-content blockquote p {
  margin: 0;
  font-size: 24px;
  line-height: 1.7;
  font-weight: 600;
  color: #1e3a8a;
}

.article-cta {
  margin: 70px 0 90px;
  padding: 45px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  text-align: center;
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
}

.article-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.author-box {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 70px;
}

.author-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-content h4 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--heading);
}

.author-content p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

.share-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 70px;
}

.share-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}

.share-links {
  display: flex;
  gap: 14px;
}

.share-links a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  color: var(--heading);
  transition: 0.25s;
}

.share-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.comments {
  margin: 80px 0;
}

.comments h2 {
  margin: 0 0 40px;
}

.comment {
  display: flex;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-replies {
  margin: 24px 0 0 40px;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}

.comment-replies .comment {
  padding-top: 24px;
  padding-bottom: 0;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-header h4 {
  margin: 0;
  font-size: 18px;
  color: var(--heading);
}

.comment-date {
  font-size: 14px;
  color: var(--muted);
}

.comment-body p {
  margin: 0;
}

.comment-reply {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.comment-form {
  margin-top: 80px;
  padding: 40px;
  background: var(--light);
  border-radius: 20px;
}

.comment-form h2 {
  margin: 0 0 15px;
}

.comment-form p {
  color: var(--muted);
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: 0.25s;
  box-sizing: border-box;
}

.comment-form textarea {
  resize: vertical;
  min-height: 180px;
  margin-top: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
}

.comment-form button {
  margin-top: 24px;
  padding: 16px 34px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.comment-form button:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .blog-container {
    margin: 50px auto;
    padding: 0 18px;
  }

  .blog-content h1 {
    font-size: 36px;
  }

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

  .blog-content h3 {
    font-size: 23px;
  }

  .blog-content p {
    font-size: 17px;
    line-height: 1.9;
  }

  .blog-content blockquote {
    padding: 24px;
  }

  .blog-content blockquote p {
    font-size: 20px;
  }

  .article-cta {
    padding: 30px 22px;
  }

  .article-cta a {
    width: 100%;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .share-section {
    justify-content: center;
    text-align: center;
  }

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

  .comment {
    gap: 16px;
  }

  .comment-replies {
    margin-left: 16px;
    padding-left: 16px;
  }

  .comment-form {
    padding: 28px 22px;
  }
}
