/* News Detail Page Styles */
.news-detail-page {
  padding-top: 80px;
  min-height: 100vh;
}

/* Article Header */
.article-header {
  background-color: var(--background-light);
  padding: 2rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb span {
  color: var(--text-secondary);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
}

.article-category {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date,
.article-read-time {
  color: var(--text-secondary);
}

.article-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-excerpt {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.author-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.author-bio {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Article Content */
.article-content {
  padding: 3rem 0;
}

.article-image {
  margin-bottom: 3rem;
  text-align: center;
}

.article-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
}

.article-body h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #1a1a1a;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.article-body h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5rem 0 1rem 0;
}

.article-body h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.25rem 0 0.75rem 0;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: var(--font-size-base);
  color: #2d3748;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #2d3748;
}

.article-body li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.article-body blockquote {
  background-color: var(--background-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Article Footer */
.article-footer {
  max-width: 800px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.share-section h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

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

.share-btn.linkedin {
  background-color: #0077b5;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Related Articles */
.related-articles {
  background-color: var(--background-light);
  padding: 3rem 0;
}

.related-articles h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

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

.related-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

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

.related-content {
  padding: 1.5rem;
}

.related-content h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.related-content h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

.related-content h4 a:hover {
  color: var(--primary-color);
}

.related-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.related-date {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Article Not Found */
.article-not-found {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.article-not-found h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.article-not-found p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .share-buttons {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .news-detail-page {
    padding-top: 70px;
  }

  .article-header {
    padding: 1.5rem 0;
  }

  .article-title {
    font-size: var(--font-size-2xl);
  }

  .article-excerpt {
    font-size: var(--font-size-lg);
  }

  .author-info {
    padding: 1rem;
  }

  .article-body {
    padding: 0 1rem;
  }

  .article-body h2 {
    font-size: var(--font-size-xl);
  }

  .article-body h3 {
    font-size: var(--font-size-lg);
  }

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

@media (max-width: 480px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .article-title {
    font-size: var(--font-size-xl);
  }

  .article-excerpt {
    font-size: var(--font-size-base);
  }

  .breadcrumb {
    flex-wrap: wrap;
  }

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

  .share-btn {
    width: 100%;
    text-align: center;
  }
}