/* Article Page - Reader-Focused Design */

/* Article Page Layout */
.article-page {
  background: #fff;
  padding: 2rem 0 3rem;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

/* Article Header */
.article-header {
  text-align: left;
  margin-bottom: 3rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}

.article-title {
  font-family: "Lobster Two", cursive;
  font-size: 2.75rem;
  font-weight: 700;
  color: #383838;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.article-subtitle {
  font-size: 1.25rem;
  color: #666;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 2rem;
  font-family: "Libre Baskerville", serif;
  text-align: left;
}

.article-author-widget {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 600;
  color: #383838;
  font-size: 1.1rem;
  font-family: "Libre Baskerville", serif;
}

.author-title {
  display: block;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  font-family: "Libre Baskerville", serif;
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.article-tag {
  background: #b48a78;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Libre Baskerville", serif;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: #a17a67;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-family: "Libre Baskerville", serif;
}

.article-date,
.article-reading-time {
  padding: 0.25rem 0.75rem;
  background: #f8f9fa;
  border-radius: 15px;
  font-weight: 500;
}

/* Featured Image */
.article-image {
  margin-bottom: 3rem;
  text-align: center;
}

.article-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Article Body - Optimized for Reading */
.article-body {
  font-family: "Libre Baskerville", serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #383838;
  letter-spacing: 0.01em;
}

.article-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: #383838;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #b48a78;
  line-height: 1.6;
}

.article-body p {
  margin-bottom: 1.75rem;
  text-align: justify;
  hyphens: auto;
}

.article-body h2 {
  font-family: "Lobster Two", cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #383838;
  margin: 3rem 0 1.5rem 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #383838;
  margin: 2.5rem 0 1rem 0;
  font-family: "Libre Baskerville", serif;
}

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-left: 5px solid #b48a78;
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
  position: relative;
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
}

.article-body blockquote footer {
  font-size: 1rem;
  color: #777;
  font-weight: 600;
  margin-top: 1rem;
  text-align: right;
}

.article-body blockquote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  color: #b48a78;
  opacity: 0.3;
  font-family: 'Lobster Two', cursive;
  line-height: 1;
}

.article-prayer {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #b48a78 0%, #a17a67 100%);
  color: white;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-prayer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.article-prayer p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Article Footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

/* Social Sharing */
.article-share {
  text-align: center;
}

.article-share h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #383838;
  margin-bottom: 1.5rem;
  font-family: "Libre Baskerville", serif;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
  font-family: "Libre Baskerville", serif;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.copy {
  background: #6c757d;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* Related Articles */
.related-articles {
  background: #f8f9fa;
  padding: 4rem 0;
  margin-top: 3rem;
}

.related-articles h2 {
  text-align: center;
  font-size: 2.2rem;
  font-family: "Lobster Two", cursive;
  color: #383838;
  margin-bottom: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.related-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-content {
  padding: 1.5rem;
}

.related-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-family: "Libre Baskerville", serif;
}

.related-content h3 a {
  color: #383838;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
  line-height: 1.3;
}

.related-content h3 a:hover {
  color: #b48a78;
  text-decoration: none;
}

.related-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "Libre Baskerville", serif;
}

.related-content time {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
  font-family: "Libre Baskerville", serif;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #b48a78, #a17a67);
  z-index: 1000;
  transition: width 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-content {
    padding: 0 1rem;
  }
  
  .article-title {
    font-size: 2.2rem;
  }
  
  .article-subtitle {
    font-size: 1.1rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .article-author {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .author-info {
    text-align: center;
  }
  
  .article-body {
    font-size: 1.05rem;
  }
  
  .article-lead {
    font-size: 1.15rem;
    padding: 1rem;
  }
  
  .article-body h2 {
    font-size: 1.75rem;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .share-btn {
    width: 200px;
    justify-content: center;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-page {
    padding: 1rem 0 2rem;
  }
  
  .article-title {
    font-size: 1.9rem;
  }
  
  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .article-lead {
    font-size: 1.1rem;
  }
  
  .article-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
  }
  
  .article-body blockquote {
    padding: 1.5rem;
    font-size: 1.1rem;
  }
  
  .article-prayer {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .article-share,
  .related-articles,
  .reading-progress {
    display: none;
  }
  
  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .article-title {
    font-size: 24pt;
  }
  
  .article-body h2 {
    font-size: 18pt;
  }
  
  .article-body blockquote {
    border-left: 3pt solid #b48a78;
    padding: 12pt;
  }
}
