/* ============================================================================
 * news.css — Bossran-style light list skin for the standalone News page
 * (public/news.html / news.html). Loaded AFTER style.css and scoped to
 * body[data-page="news"] so the dark Main Page "Latest News" preview (which
 * reuses .news-grid/.news-row) is left completely untouched.
 * Look: light "newspaper" list, centered filter tabs, bordered rows with a
 * category tag, date, dark title and a 2-line gray excerpt — matching
 * bossran.online's news list.
 * ========================================================================== */

body[data-page="news"] {
  background: #ffffff;
  color: #191919;
}

/* Subtle 10% opacity background image (hero-bg-08) to reduce glare */
body[data-page="news"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/hero-bg-08.png");
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  z-index: -1;
}

/* Neutralise the dark hero background + overlay on the News section. */
body[data-page="news"] #news .bg-fx,
body[data-page="news"] #news .bg-fx-overlay { display: none; }
body[data-page="news"] #news {
  background: transparent; /* let body::before show through */
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
body[data-page="news"] .section-title { color: #191919; }
body[data-page="news"] .section-title .accent { color: #b8860b; }
body[data-page="news"] .section-intro { color: #6b6b6b; }

/* ---- Minimal top bar: keep brand + HOME readable on light bg ----------- */
body[data-page="news"] .news-nav {
  background: linear-gradient(180deg, #0A1020 0%, #070B14 100%);
  border-bottom: 3px solid var(--accent, #FFD60A);
}
body[data-page="news"] .news-nav .brand span b { color: #fff; }
body[data-page="news"] .news-nav .brand span small { color: var(--accent, #FFD60A); }
body[data-page="news"] .news-nav .btn { color: #fff; border-color: rgba(255,255,255,.4); }
body[data-page="news"] .news-nav .btn:hover { border-color: var(--accent, #FFD60A); color: var(--accent, #FFD60A); }

/* ---- Centered filter tabs (Bossran .tab) ------------------------------- */
body[data-page="news"] .news-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 34px auto 0;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  flex-wrap: wrap;
}
body[data-page="news"] .news-tabs button {
  color: #191919;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 0 22px;
  line-height: 34px;
  position: relative;
}
body[data-page="news"] .news-tabs button:hover { color: var(--accent, #FFD60A); }
body[data-page="news"] .news-tabs button.is-active { color: #191919; background: transparent; }
body[data-page="news"] .news-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 2px;
  background: var(--accent, #FFD60A);
}

/* ---- List grid + rows (Bossran .list / .list li) ----------------------- */
body[data-page="news"] .news-grid {
  display: block;
  max-width: 880px;
  margin: 28px auto 0;
  border-top: 1px solid #e2e2e2;
  gap: 0;
}
body[data-page="news"] .news-row {
  display: block;
  width: 100%;
  padding: 22px 6px;
  border: none;
  border-bottom: 1px solid #e2e2e2;
  border-radius: 0;
  background: transparent;
  color: #191919;
  transition: background .25s ease, transform .25s ease;
}
body[data-page="news"] .news-row:hover {
  background: rgba(255, 214, 10, 0.07);
  transform: translateX(-8px);
  border-color: transparent;
}
body[data-page="news"] .news-row .row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
body[data-page="news"] .news-row .row-cat {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #191919;
  background: var(--accent, #FFD60A);
  padding: 2px 10px;
  border-radius: 3px;
}
body[data-page="news"] .news-row .row-date {
  color: #8a8a8a;
  font-size: 12px;
  letter-spacing: 1.5px;
}
body[data-page="news"] .news-row .row-dot { display: none; }
body[data-page="news"] .news-row .row-event {
  color: #b8860b;
  font-size: 12px;
  letter-spacing: 1px;
}
body[data-page="news"] .news-row .row-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
body[data-page="news"] .news-row .row-title {
  flex: 1 1 100%;
  font-family: var(--font-display, 'Rajdhani', 'Microsoft YaHei', sans-serif);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  color: #191919;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-page="news"] .news-row .row-exc {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #7d7d7d;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body[data-page="news"] .news-row .row-go {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 2px;
  color: #b8860b;
}
body[data-page="news"] .news-row:hover .row-go { color: var(--accent, #FFD60A); }
body[data-page="news"] .news-row .row-foot {
  margin-top: 6px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* Empty state + pagination + "view all" on light bg. */
body[data-page="news"] .news-empty { color: #8a8a8a; text-align: center; padding: 40px 0; }
body[data-page="news"] .news-pagination .page-btn {
  background: #fff; color: #191919; border-color: #d9d9d9;
}
body[data-page="news"] .news-pagination .page-btn:hover:not([disabled]) {
  border-color: var(--accent, #FFD60A); color: var(--accent, #FFD60A);
}
body[data-page="news"] .news-pagination .page-status { color: #8a8a8a; }
body[data-page="news"] .view-all-link {
  color: #b8860b; border-color: rgba(184,134,11,.4); background: rgba(255,214,10,.06);
}
body[data-page="news"] .view-all-link:hover { border-color: var(--accent, #FFD60A); color: var(--accent, #FFD60A); }

@media (max-width: 640px) {
  body[data-page="news"] .news-row:hover { transform: none; }
}

/* ============================================================================
 * News Article Sections - Styling for consolidated article content
 * ========================================================================== */

body[data-page="news"] .news-articles-section {
  background: transparent;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

body[data-page="news"] .news-articles-section .wrap {
  max-width: 880px;
  margin: 0 auto;
}

body[data-page="news"] .news-article {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body[data-page="news"] .news-article:target {
  border-color: var(--accent, #FFD60A);
  box-shadow: 0 4px 16px rgba(255, 214, 10, 0.15);
  animation: highlight-article 2s ease-out;
}

@keyframes highlight-article {
  0% { background: rgba(255, 214, 10, 0.15); }
  100% { background: transparent; }
}

body[data-page="news"] .news-article .article-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #e2e2e2;
  background: #fafafa;
}

body[data-page="news"] .news-article .article-cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent, #FFD60A);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

body[data-page="news"] .news-article .article-title {
  font-family: var(--font-display, 'Rajdhani', 'Microsoft YaHei', sans-serif);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  color: #191919;
  text-transform: uppercase;
  margin: 0 0 12px;
}

body[data-page="news"] .news-article .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8a8a8a;
  letter-spacing: 0.5px;
}

body[data-page="news"] .news-article .article-meta .article-sep {
  color: #ccc;
}

body[data-page="news"] .news-article .article-content {
  padding: 24px 32px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

body[data-page="news"] .news-article .article-content p {
  margin: 0 0 16px;
}

body[data-page="news"] .news-article .article-content ul,
body[data-page="news"] .news-article .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

body[data-page="news"] .news-article .article-content li {
  margin: 8px 0;
  line-height: 1.6;
}

body[data-page="news"] .news-article .article-content strong {
  color: #191919;
  font-weight: 600;
}

body[data-page="news"] .news-article .article-content em {
  color: #555;
}

body[data-page="news"] .news-article .article-content del {
  color: #999;
  opacity: 0.8;
}

body[data-page="news"] .news-article .article-content u {
  text-decoration: underline;
  text-decoration-color: var(--accent, #FFD60A);
}

body[data-page="news"] .news-article .article-content a {
  color: var(--accent, #FFD60A);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

body[data-page="news"] .news-article .article-content a:hover {
  border-bottom-color: var(--accent, #FFD60A);
}

body[data-page="news"] .news-article .article-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid #e2e2e2;
  background: #fafafa;
}

body[data-page="news"] .news-article .article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #191919;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s;
}

body[data-page="news"] .news-article .article-back:hover {
  color: var(--accent, #FFD60A);
  border-color: var(--accent, #FFD60A);
  background: rgba(255, 214, 10, 0.07);
}

/* When showing article, hide the news list */
body[data-page="news"].show-article #news {
  display: none;
}

body[data-page="news"].show-article #news-articles {
  display: block !important;
}

/* Responsive adjustments for article view */
@media (max-width: 640px) {
  body[data-page="news"] .news-article .article-header,
  body[data-page="news"] .news-article .article-content,
  body[data-page="news"] .news-article .article-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  body[data-page="news"] .news-article .article-title {
    font-size: clamp(20px, 5vw, 26px);
  }
}
