/* priya_prints/styles/blog-details.css */

:root {
  --bd-primary: #1a237e;
  --bd-accent: #ff8a65;
  --bd-text: #333;
  --bd-bg: #fff;
  --bd-gray: #f4f6f9;
}

body {
  background-color: var(--bd-bg);
  color: var(--bd-text);
  font-family: "Poppins", sans-serif;
  line-height: 1.8;
}

/* --- Progress Bar --- */
.read-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}
.read-progress-bar {
  height: 100%;
  background: var(--bd-accent);
  width: 0%;
  transition: width 0.1s;
}

/* --- Article Header --- */
.article-header {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--bd-gray);
  position: relative;
}

.article-meta {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 600;
  display: inline-block;
}

.category-tag {
  color: var(--bd-accent);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bd-primary);
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

/* --- Featured Image --- */
.article-hero-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin: -40px auto 60px; /* Overlap effect */
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* --- Content Body --- */
.article-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-size: 1.1rem;
  color: #444;
}

.article-content h2 {
  font-size: 1.8rem;
  color: var(--bd-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.article-content h3 {
  font-size: 1.4rem;
  color: #222;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

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

.highlight-box {
  background: #eef2ff;
  border-left: 4px solid var(--bd-primary);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--bd-primary);
  border-radius: 0 8px 8px 0;
}

/* --- Author / CTA --- */
.article-footer {
  border-top: 1px solid #eee;
  padding-top: 40px;
  margin-top: 60px;
  text-align: center;
}

.share-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bd-primary);
  text-decoration: none;
  transition: background 0.3s;
}

.share-btn:hover {
  background: var(--bd-accent);
  color: #fff;
}

/* --- Related --- */
.related-section {
  background: var(--bd-gray);
  padding: 80px 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.related-card:hover {
  transform: translateY(-5px);
}
.related-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.related-info {
  padding: 20px;
}
.related-title {
  font-size: 1.2rem;
  color: var(--bd-primary);
  margin: 0 0 10px;
  font-weight: 700;
}
.related-link {
  color: var(--bd-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  .article-hero-img {
    margin: 0 auto 40px;
    border-radius: 0;
  }
  .article-header {
    padding: 100px 20px 40px;
  }

}
