/* News Details Page Specific Styles */

/* Article Hero Section */
.article-hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(var(--primary-color-rgb), 0.8) 100%
  );
  margin-top: -100px;
}

.article-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/placeholder.svg?height=700&width=1200");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.8) 0%,
    rgba(var(--primary-color-rgb), 0.7) 50%,
    rgba(var(--primary-color-rgb), 0.6) 100%
  );
}

.article-breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.article-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.article-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-breadcrumb .breadcrumb-item a:hover {
  color: white;
}

.article-breadcrumb .breadcrumb-item.active {
  color: white;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.article-category-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.article-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.article-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-author-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  /* margin-bottom: 0.25rem; */
}

.article-author-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.article-meta-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-meta-info span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Article Content Section */
.article-content-section {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
}

.article-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 3rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-body a {
  color: var(--text-primary);
}

.article-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  line-height: 1.6;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
}

.article-body p {
  margin-bottom: 1.5rem;
}

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

.article-body li {
  margin-bottom: 0.5rem;
}

.article-tags {
  padding: 2rem 3rem 1rem 3rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-tags-label {
  font-weight: 600;
  color: var(--text-primary);
}

.article-tag {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.article-share {
  padding: 1rem 3rem 2rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-share-label {
  font-weight: 600;
  color: var(--text-primary);
}

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

.article-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

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

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

.article-share-btn.whatsapp {
  background: #25d366;
}

.article-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-author-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.sidebar-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 3px solid var(--primary-color);
}

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

.sidebar-author-role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sidebar-author-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sidebar-related-articles {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.sidebar-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-article-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.sidebar-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}

.sidebar-article-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-article-content {
  flex: 1;
}

.sidebar-article-title {
  margin-bottom: 0.5rem;
  line-height: 0.8;
}

.sidebar-article-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.3s ease;
}

.sidebar-article-title a:hover {
  color: var(--primary-color);
}

.sidebar-article-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.sidebar-cta-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(var(--primary-color-rgb), 0.9) 100%
  );
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: white;
}

.sidebar-cta-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sidebar-cta-title {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-cta-text {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  opacity: 0.9;
  line-height: 1.6;
}

/* Dark Mode Support */
.dark .article-content {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.dark .sidebar-author-card,
.dark .sidebar-related-articles {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.dark .sidebar-article-card {
  border-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .article-hero-title {
    font-size: 2.5rem;
  }

  .article-sidebar {
    position: static;
    margin-top: 3rem;
  }

  .article-hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .article-meta-info {
    justify-content: center;
  }
}

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

  .article-body {
    padding: 2rem;
    font-size: 1rem;
  }

  .article-lead {
    font-size: 1.1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .article-body h3 {
    font-size: 1.2rem;
  }

  .article-tags,
  .article-share {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .sidebar-author-card,
  .sidebar-related-articles,
  .sidebar-cta-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .article-hero-section {
    min-height: 60vh;
  }

  .article-hero-title {
    font-size: 1.75rem;
  }

  .article-body {
    padding: 1.5rem;
  }

  .article-tags,
  .article-share {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .article-author {
    flex-direction: column;
    text-align: center;
  }

  .article-author-info {
    align-items: center;
  }

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