/* Article Details Page */
.article-details {
  padding: 60px 0;
  background: #f8f9fa;
}

.article-content-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Article Image with Badge */
.article-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.article-main-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.article-category-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #fff;
  color: #1976D2;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.article-category-badge i {
  font-size: 14px;
}

/* Article Title */
.article-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 32px 32px 24px 32px;
  padding: 0;
}

/* Article Meta Info */
.article-meta-info {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px 24px 32px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.meta-item-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.meta-item-detail:nth-child(1) i {
  color: #00BCD4;
  font-size: 16px;
}

.meta-item-detail:nth-child(2) i {
  color: #666;
  font-size: 16px;
}

.meta-item-detail:nth-child(3) i {
  color: #9C27B0;
  font-size: 16px;
}

/* Article Actions Bar */
.article-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-bottom: 1px solid #eee;
}

.action-btn-detail {
  background: #f5f5f5;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.action-btn-detail i {
  font-size: 18px;
}

.action-btn-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.like-btn-detail:hover {
  background: #fce4ec;
  color: #e91e63;
}

.save-btn-detail:hover {
  background: #e3f2fd;
  color: #1976D2;
}

.share-btn-detail:hover {
  background: #e8f5e9;
  color: #4CAF50;
}

/* Article Body */
.article-body {
  padding: 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-body p {
  margin-bottom: 20px;
  text-align: justify;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
  font-weight: 700;
}

.article-body h2 {
  font-size: 28px;
  padding-left: 16px;
  border-left: 4px solid #4CAF50;
}

.article-body h3 {
  font-size: 24px;
}

.article-body h4 {
  font-size: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body blockquote {
  background: #f8f9fa;
  border-left: 4px solid #4CAF50;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 8px;
  font-style: italic;
  color: #555;
}

/* Sidebar Widget */
.sidebar-widget {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.widget-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #4CAF50;
}

/* Related Articles List */
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-article-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #fff;
}

.related-article-item:hover {
  background: #f8f9fa;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-article-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-article-item:hover .related-article-image img {
  transform: scale(1.1);
}

.related-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-article-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-time {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-article-time i {
  font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar-widget {
    position: static;
    margin-top: 32px;
  }
  
  .article-title {
    font-size: 28px;
    margin: 24px 24px 20px 24px;
  }
  
  .article-meta-info,
  .article-actions-bar,
  .article-body {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 24px;
    margin: 20px 20px 16px 20px;
  }
  
  .article-meta-info,
  .article-actions-bar,
  .article-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .article-meta-info {
    gap: 16px;
  }
  
  .meta-item-detail {
    font-size: 13px;
  }
  
  .article-actions-bar {
    flex-wrap: wrap;
  }
  
  .action-btn-detail {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }
  
  .article-body {
    font-size: 15px;
  }
  
  .article-category-badge {
    top: 16px;
    left: 16px;
    font-size: 12px;
    padding: 8px 16px;
  }
  
  .related-article-image {
    flex: 0 0 70px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  .article-title {
    font-size: 20px;
  }
  
  .article-body h2 {
    font-size: 22px;
  }
  
  .article-body h3 {
    font-size: 18px;
  }
  
  .related-article-title {
    font-size: 13px;
  }
}
