/* News Details page specific styles */

/* Hero Section */
.news-details-hero {
  background: linear-gradient(
    135deg,
    rgba(163, 191, 250, 0.1),
    rgba(255, 232, 214, 0.1)
  );
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.news-details-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0.05;
  z-index: -1;
}

body[data-theme="dark"] .news-details-hero .hero-background {
  opacity: 0.1;
}

.news-details-hero .hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.news-details-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.news-details-hero .news-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.news-details-hero .news-date,
.news-details-hero .news-category {
  color: var(--text-muted-light);
  font-size: 0.875rem;
  font-weight: 500;
}

body[data-theme="dark"] .news-details-hero .news-date,
body[data-theme="dark"] .news-details-hero .news-category {
  color: var(--text-muted-dark);
}

.news-details-hero .news-date i {
  margin-right: 8px;
}

.news-details-hero .news-category {
  background: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
}

body[data-theme="dark"] .news-details-hero .news-category {
  background: var(--secondary-dark);
}

/* News Details Content */
.news-details-content {
  background: var(--bg-light);
}

body[data-theme="dark"] .news-details-content {
  background: var(--bg-dark);
}

.news-image {
  margin-bottom: 2rem;
}

.news-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-image:hover img {
  transform: scale(1.02);
}

.news-content {
  padding: 2rem 0;
}

.news-content p {
  font-size: 1.125rem;
  color: var(--text-muted-light);
  margin-bottom: 1.5rem;
}

.news-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.news-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-light);
    &:before {
      content: "\f26b";
      font-family: "bootstrap-icons";
      font-size: 1.25rem;
      left: 0;
      top: 0;
      color: var(--secondary-color);
    }
    p {
      margin-bottom: 0;
    }
  }
}

body[data-theme="dark"] .news-content ul {
  li {
    color: var(--text-dark);
  }
}

.news-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .news-list li {
  color: var(--text-dark);
}

.news-list i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

body[data-theme="dark"] .news-list i {
  color: var(--secondary-dark);
}

.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-share span {
  color: var(--text-muted-light);
  font-weight: 500;
}

body[data-theme="dark"] .news-share span {
  color: var(--text-muted-dark);
}

.news-share .social-link {
  width: 40px;
  height: 40px;
  background: rgba(163, 191, 250, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-share .social-link:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

body[data-theme="dark"] .news-share .social-link {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-dark);
}

body[data-theme="dark"] .news-share .social-link:hover {
  background: var(--secondary-dark);
}

/* Author Section */
.news-author {
  background: rgba(232, 236, 239, 0.3);
}

body[data-theme="dark"] .news-author {
  background: rgba(
    26,
    26,
    26,
    0.5
  ); /* Slightly darker for contrast in dark mode */
}

.author-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(163, 191, 250, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

body[data-theme="dark"] .author-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.author-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(163, 191, 250, 0.2);
}

.author-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}

body[data-theme="dark"] .author-image img {
  border-color: var(--secondary-dark);
}

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

.author-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

body[data-theme="dark"] .author-title {
  color: var(--text-dark);
}

.author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

body[data-theme="dark"] .author-name {
  color: var(--secondary-dark);
}

.author-preview {
  color: var(--text-muted-light);
  font-size: 1rem;
  line-height: 1.6;
}

body[data-theme="dark"] .author-preview {
  color: var(--text-muted-dark);
}

/* Related News Section */
.related-news {
  background: rgba(
    232,
    236,
    239,
    0.2
  ); /* Lighter background for better contrast */
  padding: 3rem 0; /* Increased padding for visual hierarchy */
}

body[data-theme="dark"] .related-news {
  background: rgba(26, 26, 26, 0.4); /* Darker background for dark mode */
}

.related-news .section-badge {
  background: rgba(163, 191, 250, 0.15);
  border-color: rgba(163, 191, 250, 0.3);
}

body[data-theme="dark"] .related-news .section-badge {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.related-news .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.related-news .section-text {
  color: var(--text-muted-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

body[data-theme="dark"] .related-news .section-text {
  color: var(--text-muted-dark);
}

.related-news .news-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(163, 191, 250, 0.15);
  height: 100%;
}

body[data-theme="dark"] .related-news .news-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.related-news .news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(163, 191, 250, 0.25);
}

.related-news .news-image {
  position: relative;
  overflow: hidden;
}

.related-news .news-image img {
  width: 100%;
  height: 200px; /* Adjusted for better proportion */
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.related-news .news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

body[data-theme="dark"] .related-news .news-category {
  background: var(--secondary-dark);
}

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

.related-news .news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

body[data-theme="dark"] .related-news .news-title {
  color: var(--text-dark);
}

.related-news .news-excerpt {
  color: var(--text-muted-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

body[data-theme="dark"] .related-news .news-excerpt {
  color: var(--text-muted-dark);
}

.related-news .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-news .news-date {
  color: var(--text-muted-light);
  font-size: 0.75rem;
}

body[data-theme="dark"] .related-news .news-date {
  color: var(--text-muted-dark);
}

.related-news .news-date i {
  margin-right: 6px;
}

.related-news .news-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .related-news .news-link {
  color: var(--secondary-dark);
}

.related-news .news-link:hover {
  color: var(--accent-color);
}

body[data-theme="dark"] .related-news .news-link:hover {
  color: var(--accent-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-details-hero {
    padding: 100px 0 60px;
  }

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

  .news-image img {
    height: 300px;
  }

  .news-content {
    padding: 1rem 0;
  }

  .news-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .related-news {
    padding: 2rem 0;
  }

  .related-news .news-image img {
    height: 150px;
  }

  .related-news .news-content {
    padding: 1rem;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
