/* ============================================================
   N.B.S.V.A — NEWS PAGE V2 (violet dashboard-aesthetic skin)
   Loaded AFTER css/style.css. Scoped to body.news-v2.
   ============================================================ */

body.news-v2 {
  --violet: #7B4BFF;
  --violet-hi: #9D7BFF;
  --violet-deep: #4C2ACC;
  --violet-soft: rgba(123, 75, 255, .12);
  --bg: #070610;
  --panel: #0E0C1A;
  --card: #12101F;
  --card-raised: #171427;
  --news-red: #E02B2B;
  --news-green: #12b76a;
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(123, 75, 255, .18), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(76, 42, 204, .10), transparent 65%),
    var(--bg);
  overflow-x: hidden;
}

/* Ambient sorceress background — same trick as the dashboard */
body.news-v2 .nv2-bg-art {
  position: fixed; inset: 0; z-index: 0;
  background-image: url('../assets/dashboard-hero.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 92vh;
  opacity: .1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 85%, transparent 100%);
}
body.news-v2 #nav-wrapper { position: relative; z-index: 5; }
body.news-v2 #footer-wrapper,
body.news-v2 .nv2-hero,
body.news-v2 .section { position: relative; z-index: 1; }

/* -------- Hero -------- */
body.news-v2 .nv2-hero {
  padding: 60px 0 20px;
}
body.news-v2 .nv2-hero .container {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
}
body.news-v2 .nv2-eyebrow { color: var(--violet-hi); }
body.news-v2 .nv2-title {
  font-family: 'Archivo', var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: .01em; font-size: clamp(2rem, 4.8vw, 3.2rem); margin: 6px 0 10px;
  line-height: 1.05;
}
body.news-v2 .nv2-violet {
  background: linear-gradient(180deg, var(--violet-hi), var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(123, 75, 255, .4);
}
body.news-v2 .nv2-sub { color: var(--muted); max-width: 620px; font-size: .95rem; }
body.news-v2 .nv2-nova {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(14, 12, 26, .6); backdrop-filter: blur(6px);
  border: 1px solid rgba(123, 75, 255, .3);
}
body.news-v2 .nv2-nova-mark {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  color: var(--violet-hi); font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(157, 123, 255, .6));
}
body.news-v2 .nv2-nova-text strong { display: block; font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
body.news-v2 .nv2-nova-text span { display: block; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }

/* -------- 2-column grid -------- */
body.news-v2 .nv2-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start;
}

/* -------- Filter chips -------- */
body.news-v2 .nv2-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
body.news-v2 .nv2-chip {
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .18s var(--ease);
}
body.news-v2 .nv2-chip:hover { border-color: rgba(123, 75, 255, .4); color: var(--violet-hi); }
body.news-v2 .nv2-chip.active {
  background: linear-gradient(180deg, var(--violet-hi), var(--violet));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(123, 75, 255, .55);
}

/* -------- Featured card -------- */
body.news-v2 .nv2-featured {
  background: var(--card); border: 1px solid rgba(123, 75, 255, .25);
  border-radius: 18px; overflow: hidden; margin-bottom: 26px;
  box-shadow: 0 24px 60px -20px rgba(76, 42, 204, .3);
}
body.news-v2 .nv2-featured-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
body.news-v2 .nv2-featured-star { color: var(--gold, #F5B301); font-size: 1.1rem; }
body.news-v2 .nv2-featured-label {
  font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem; color: var(--gold, #F5B301);
}
body.news-v2 .nv2-featured-body {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 22px;
  padding: 20px 22px;
}
body.news-v2 .nv2-featured-media { border-radius: 14px; overflow: hidden; background: var(--panel); min-height: 190px; }
body.news-v2 .nv2-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.news-v2 .nv2-featured-placeholder {
  width: 100%; height: 100%; min-height: 190px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet-deep), var(--card));
  color: rgba(255, 255, 255, .4); font-family: 'Archivo', var(--display);
  font-weight: 900; letter-spacing: .1em;
}
body.news-v2 .nv2-featured-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.news-v2 .nv2-featured-meta { display: flex; align-items: center; gap: 10px; }
body.news-v2 .nv2-tag {
  font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: .68rem; padding: 4px 10px; border-radius: 6px;
  background: var(--violet-soft); color: var(--violet-hi); border: 1px solid rgba(123, 75, 255, .3);
}
body.news-v2 .nv2-tag-enforcement { background: rgba(224, 43, 43, .12); color: #ff8a80; border-color: rgba(224, 43, 43, .35); }
body.news-v2 .nv2-tag-update      { background: rgba(18, 183, 106, .12); color: #4fdc9c; border-color: rgba(18, 183, 106, .35); }
body.news-v2 .nv2-tag-community   { background: rgba(29, 155, 240, .12); color: #6cc0ff; border-color: rgba(29, 155, 240, .35); }
body.news-v2 .nv2-tag-events      { background: rgba(245, 179, 1, .12); color: #ffcf4d; border-color: rgba(245, 179, 1, .35); }
body.news-v2 .nv2-date { color: var(--muted); font-size: .82rem; }
body.news-v2 .nv2-featured-text h2 {
  font-family: 'Archivo', var(--display); font-weight: 900;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.2;
}
body.news-v2 .nv2-featured-text p { color: var(--muted); font-size: .92rem; }

/* Violet primary button (scoped) */
body.news-v2 .btn-violet {
  align-self: flex-start; margin-top: 4px;
  background: linear-gradient(180deg, var(--violet-hi), var(--violet));
  border: none; color: #fff; padding: 11px 20px; border-radius: 12px;
  font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem;
  box-shadow: 0 14px 30px -10px rgba(123, 75, 255, .55);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
body.news-v2 .btn-violet:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(123, 75, 255, .7); }

/* -------- Latest header + count -------- */
body.news-v2 .nv2-latest-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
body.news-v2 .nv2-latest-mark { color: var(--news-green); font-size: 1.05rem; }
body.news-v2 .nv2-latest-label {
  font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: .92rem;
}
body.news-v2 .nv2-count { color: var(--muted); font-size: .88rem; }

/* -------- Feed cards (fb-post is defined in style.css, we retint) -------- */
body.news-v2 .fb-post {
  background: var(--card); border: 1px solid rgba(123, 75, 255, .18);
  border-radius: 16px; margin-bottom: 14px;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
body.news-v2 .fb-post:hover {
  border-color: rgba(123, 75, 255, .35); transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(123, 75, 255, .25);
}
body.news-v2 .fb-post .fb-action.liked { color: var(--violet-hi); }
body.news-v2 .fb-post .btn-green {
  background: linear-gradient(180deg, var(--violet-hi), var(--violet));
  border: none; color: #fff;
}
body.news-v2 .nv2-flash { animation: nv2Flash 1.6s ease; }
@keyframes nv2Flash {
  0%   { box-shadow: 0 0 0 3px rgba(123, 75, 255, 0), 0 0 0 rgba(123, 75, 255, 0); }
  25%  { box-shadow: 0 0 0 3px rgba(123, 75, 255, .5), 0 12px 30px rgba(123, 75, 255, .4); }
  100% { box-shadow: 0 0 0 3px rgba(123, 75, 255, 0), 0 0 0 rgba(123, 75, 255, 0); }
}

/* -------- Load more -------- */
body.news-v2 .nv2-loadmore-wrap { text-align: center; margin: 8px 0 20px; }
body.news-v2 .nv2-loadmore {
  border: 1px solid rgba(123, 75, 255, .35); color: var(--violet-hi);
  padding: 12px 28px; border-radius: 12px;
  font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem;
}
body.news-v2 .nv2-loadmore:hover { background: var(--violet-soft); }

/* -------- Sidebar cards -------- */
body.news-v2 .nv2-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; min-width: 0; }
body.news-v2 .nv2-card {
  background: var(--card); border: 1px solid rgba(123, 75, 255, .18);
  border-radius: 16px; padding: 18px;
}
body.news-v2 .nv2-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
body.news-v2 .nv2-card h3 {
  font-family: 'Archivo', var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; font-size: .92rem; color: var(--violet-hi);
}
body.news-v2 .nv2-alerts-title { color: #ff8a80 !important; }
body.news-v2 .nv2-alerts { border-color: rgba(224, 43, 43, .25); }
body.news-v2 .nv2-view-all { color: var(--violet-hi); font-size: .78rem; text-decoration: none; }
body.news-v2 .nv2-view-all:hover { text-decoration: underline; }

body.news-v2 .nv2-si {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 10px; text-decoration: none; color: var(--text);
  transition: background .18s, transform .18s var(--ease);
  position: relative; margin-bottom: 6px;
}
body.news-v2 .nv2-si:hover { background: var(--panel); transform: translateX(2px); }
body.news-v2 .nv2-si-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 1rem;
  background: var(--violet-soft); border: 1px solid rgba(123, 75, 255, .3);
  color: var(--violet-hi);
}
body.news-v2 .nv2-si-alert .nv2-si-icon {
  background: rgba(224, 43, 43, .12); border-color: rgba(224, 43, 43, .35); color: #ff8a80;
}
body.news-v2 .nv2-si-body { flex: 1; min-width: 0; }
body.news-v2 .nv2-si-body strong {
  display: block; font-size: .84rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
body.news-v2 .nv2-si-body span { color: var(--muted); font-size: .72rem; }
body.news-v2 .nv2-si-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--news-green);
  box-shadow: 0 0 8px var(--news-green); flex-shrink: 0;
}
body.news-v2 .nv2-si-alert .nv2-si-dot { background: var(--news-red); box-shadow: 0 0 8px var(--news-red); }
body.news-v2 .nv2-empty { color: var(--muted); font-size: .82rem; text-align: center; padding: 8px 0; }

/* Follow row */
body.news-v2 .nv2-follow p { color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
body.news-v2 .nv2-social-row { display: flex; gap: 8px; flex-wrap: wrap; }
body.news-v2 .nv2-soc {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; text-decoration: none; color: #fff; font-size: 1rem;
  transition: transform .18s var(--ease), filter .18s;
}
body.news-v2 .nv2-soc:hover { transform: translateY(-2px); filter: brightness(1.15); }
body.news-v2 .nv2-soc.wa { background: #25D366; }
body.news-v2 .nv2-soc.fb { background: #1877F2; font-family: Georgia, serif; font-weight: bold; }
body.news-v2 .nv2-soc.dc { background: #5865F2; }
body.news-v2 .nv2-soc.yt { background: #FF0000; }
body.news-v2 .nv2-soc.tg { background: #26A5E4; }

body.news-v2 .nv2-empty-card {
  background: var(--card); border: 1px dashed var(--line-strong);
  border-radius: 14px; padding: 40px 20px; text-align: center;
}
body.news-v2 .nv2-empty-card p { color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  body.news-v2 .nv2-grid { grid-template-columns: minmax(0, 1fr); }
  body.news-v2 .nv2-side { position: static; flex-direction: row; flex-wrap: wrap; }
  body.news-v2 .nv2-side > .nv2-card { flex: 1 1 260px; min-width: 0; }
  body.news-v2 .nv2-featured-body { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.news-v2 .nv2-hero { padding: 48px 0 14px; }
  body.news-v2 .nv2-hero .container { flex-direction: column; }
  body.news-v2 .nv2-nova { align-self: flex-start; }
  body.news-v2 .nv2-featured-body { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  body.news-v2 .nv2-featured-media { min-height: 200px; }
  body.news-v2 .nv2-featured-media img { max-height: 260px; }
  body.news-v2 .nv2-side { flex-direction: column; }
  body.news-v2 .nv2-side > .nv2-card { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  body.news-v2 .nv2-title { font-size: 1.75rem; }
  body.news-v2 .nv2-chip { padding: 8px 14px; font-size: .78rem; }
  body.news-v2 .nv2-featured-text h2 { font-size: 1.15rem; }
  body.news-v2 .nv2-bg-art { background-size: auto 55vh; opacity: .07; }
  body.news-v2 .nv2-soc { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  body.news-v2 .nv2-title { font-size: 1.5rem; }
  body.news-v2 .nv2-nova span { display: none; }
}
