/**
 * SuperX Theme - News Detail Page CSS
 * Matches the design from sample_news_detail.html
 */

/* ============================================
   News Detail Page Wrapper
   ============================================ */
.news-detail-page {
  background-color: var(--superx-bg-white);
  min-height: 60vh;
}

.news-detail-outer {
  max-width: var(--superx-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   News Header Section
   ============================================ */
.news-detail-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--superx-border);
  margin-bottom: 0;
}

.news-detail-category {
  display: inline-block;
  background: var(--superx-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.news-detail-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--superx-text-primary);
  margin: 0 0 20px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.news-detail-date {
  font-size: 14px;
  color: var(--superx-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-detail-date .bi {
  font-size: 14px;
  color: var(--superx-primary);
}

.news-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-detail-tag {
  display: inline-block;
  background: var(--superx-bg-gray);
  color: var(--superx-text-muted);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--superx-transition-fast);
}

.news-detail-tag:hover {
  background: var(--superx-primary);
  color: #ffffff;
  text-decoration: none;
}

/* ============================================
   News Description (sub-headline)
   ============================================ */
.news-detail-description {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--superx-border-light);
  margin-bottom: 0;
}

.news-detail-description p {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--superx-text-secondary);
  margin: 0;
}

/* ============================================
   Featured Image
   ============================================ */
.news-detail-featured-image {
  margin: 36px 0 0;
}

.news-detail-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--superx-radius-lg);
  display: block;
}

.news-detail-featured-image-caption {
  font-size: 13px;
  color: var(--superx-text-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* ============================================
   News Body Content
   ============================================ */
.news-detail-content {
  padding: 40px 0 48px;
}

/* Content body typography */
.news-detail-content-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--superx-text-secondary);
}

.news-detail-content-body p {
  margin: 0 0 1.4em;
}

.news-detail-content-body p:last-child {
  margin-bottom: 0;
}

.news-detail-content-body strong,
.news-detail-content-body b {
  color: var(--superx-text-primary);
  font-weight: 600;
}

.news-detail-content-body h2,
.news-detail-content-body h3,
.news-detail-content-body h4 {
  color: var(--superx-text-primary);
  font-weight: 700;
  margin: 1.8em 0 0.8em;
  line-height: 1.35;
}

.news-detail-content-body h2 {
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--superx-border);
}

.news-detail-content-body h3 {
  font-size: 1.2rem;
}

.news-detail-content-body h4 {
  font-size: 1.05rem;
}

.news-detail-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--superx-radius-md);
  margin: 24px 0;
  display: block;
}

/* Image caption - for <p> elements right after images */
.news-detail-content-body .image-caption,
.news-detail-content-body figcaption {
  font-size: 13px;
  color: var(--superx-text-muted);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
  font-style: italic;
}

.news-detail-content-body figure {
  margin: 24px 0;
}

.news-detail-content-body a {
  color: var(--superx-primary);
  text-decoration: underline;
}

.news-detail-content-body a:hover {
  color: var(--superx-primary-dark);
}

.news-detail-content-body ul,
.news-detail-content-body ol {
  padding-left: 24px;
  margin: 0 0 1.4em;
}

.news-detail-content-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.news-detail-content-body blockquote {
  border-left: 4px solid var(--superx-primary);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--superx-bg-light);
  border-radius: 0 var(--superx-radius-md) var(--superx-radius-md) 0;
  font-style: italic;
  color: var(--superx-text-secondary);
}

/* ============================================
   News Footer / Back Button Area
   ============================================ */
.news-detail-footer {
  padding: 32px 0 56px;
  border-top: 1px solid var(--superx-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--superx-primary);
  border: 2px solid var(--superx-primary);
  border-radius: var(--superx-radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--superx-transition);
  cursor: pointer;
}

.news-back-btn:hover {
  background: var(--superx-primary);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.news-back-btn svg,
.news-back-btn i {
  font-size: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .news-detail-outer {
    padding: 0 16px;
  }

  .news-detail-header {
    padding: 36px 0 28px;
  }

  .news-detail-title {
    font-size: 1.45rem;
  }

  .news-detail-content {
    padding: 28px 0 36px;
  }

  .news-detail-content-body {
    font-size: 14px;
  }

  .news-detail-description {
    padding: 24px 0 20px;
  }

  .news-detail-footer {
    padding: 24px 0 40px;
  }
}

@media (max-width: 480px) {
  .news-detail-title {
    font-size: 1.25rem;
  }

  .news-detail-category {
    font-size: 11px;
  }
}

