/* Single Post Page Styles */

.single-post-container {
  width: 100%;
}

/* Hero Section */
.single-hero-section {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 0 5rem;
}

.hero-background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/article-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.single-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(237,219,128,0.7) 0%, 
    rgba(161,174,28,0.8) 33%, 
    rgba(77,101,40,0.8) 66%, 
    rgba(19,44,23,0.9) 100%
  );
  z-index: 2;
}

.single-hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #fff;
  padding: 60px 20px;
  width: 100%;
}

.single-hero-text {
  text-align: left;
  color: white;
}

.single-hero-title {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.single-meta {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  color: #f8f9fa;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.single-author,
.single-date {
  display: inline-block;
}

/* Featured Image Section */
.single-featured-image {
  padding: 3rem 0 0 0;
  background: #fff;
}

.featured-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.single-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Section */
.single-content-section {
  padding: 4rem 5rem;
  background: #fff;
}

.single-article {
  max-width: 100% !important;
  margin: 0 auto;
}

.single-description {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.single-description .lead {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

.single-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.single-content p {
  margin-bottom: 1.5rem;
}

.single-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single-content ul,
.single-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.single-content li {
  margin-bottom: 0.5rem;
}

.single-content blockquote {
  border-left: 4px solid #a1ae1c;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Tags Section */
.single-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.single-tags h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f8f9fa;
  color: #555;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.tag-list a:hover {
  background: #a1ae1c;
  color: #fff;
}

/* Related Posts Section */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid #e9ecef;
}

.related-posts h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.related-post-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.related-post-image {
  overflow: hidden;
  height: 200px;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.related-post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: #a1ae1c;
}

.related-post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.related-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.related-post-link {
  color: #a1ae1c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.related-post-link:hover {
  color: #4d6528;
}

/* Back to Articles Button */
.back-to-articles {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .single-hero-section {
    padding: 0 2rem;
  }

  .single-hero-title {
    font-size: 2.5rem;
  }

  .single-content-section {
    padding: 3rem 2rem;
  }

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

@media (max-width: 640px) {
  .single-hero-title {
    font-size: 2rem;
  }

  .single-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .single-content-section {
    padding: 2rem 1rem;
  }

  .single-content {
    font-size: 1rem;
  }

  .single-description .lead {
    font-size: 1.1rem;
  }
}
