/* VORTEX — الأخبار v2: تصميم الصحيفة الرقمية، الروابط التلقائية، الملفات المرفقة */
:root { --nv-line: rgba(255,255,255,.09); --nv-card: #0c1217; --nv-mute: #8E99A4; }
body[data-page="news"], body[data-page="news-article"] { background: #05080c; }
.hidden { display: none !important; }

/* ===== الصفحة الرئيسية ===== */
.nv { width: min(1240px, 100% - 28px); margin: 0 auto; padding: 18px 0 70px; color: #eef6f9; }
.nv-mast { padding: 22px 0 14px; border-bottom: 1px solid var(--nv-line); margin-bottom: 16px; }
.nv-mast-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--nv-mute); }
.nv-tag { color: #76e5fd; letter-spacing: .08em; font-weight: 700; }
.nv-mast h1 { margin: 10px 0 14px; font-size: clamp(38px, 7vw, 76px); font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff 30%, #76e5fd 150%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.nv-cats a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--nv-line); color: #D3DAE0; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.03); transition: .2s; }
.nv-cats a.on, .nv-cats a:hover { background: linear-gradient(135deg, #13abd2, #76e5fd); color: #04151c; border-color: transparent; }
.nv-breaking { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,80,110,.18), rgba(255,80,110,.04)); border: 1px solid rgba(255,80,110,.35); margin-bottom: 16px; font-weight: 700; min-width: 0; }
.nv-breaking #nwBreakingText { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-breaking a { color: #fff; }
.nv-badge { background: #ff4d6d; color: #fff; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 900; flex: 0 0 auto; }
.nv-state { padding: 60px 0; text-align: center; color: var(--nv-mute); }
.nv-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.nv-hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--nv-line); background: var(--nv-card); min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.nv-hero-img { position: absolute; inset: 0; z-index: 0; display: block; }
.nv-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.nv-hero:hover .nv-hero-img img { transform: scale(1.04); }
.nv-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, #05080c 6%, rgba(5,8,12,.6) 55%, rgba(5,8,12,.08)); }
.nv-hero-copy { position: relative; z-index: 2; padding: 28px; display: grid; gap: 12px; }
.nv-hero h2 { margin: 0; font-size: clamp(24px, 3.6vw, 42px); line-height: 1.25; font-weight: 900; }
.nv-hero .nv-stretch { position: static; }
.nv-kind { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px; background: rgba(19,171,210,.14); border: 1px solid rgba(118,229,253,.3); color: #76e5fd; font-size: 12px; font-weight: 800; }
.nv-sub { margin: 0; color: #D3DAE0; line-height: 1.8; }
.nv-hero small, .nv-card small { color: var(--nv-mute); font-size: 13px; }
.nv-stretch { color: inherit; text-decoration: none; }
.nv-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nv-sub a, .nv-hero-copy a.auto-link { position: relative; z-index: 3; }
.nv-most { border: 1px solid var(--nv-line); border-radius: 22px; background: var(--nv-card); padding: 20px; }
.nv-most h2 { margin: 0 0 8px; font-size: 18px; }
.nv-most ol { margin: 0; padding: 0; list-style: none; }
.nv-most li a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--nv-line); color: #eef6f9; font-weight: 700; line-height: 1.6; }
.nv-most li:first-child a { border-top: 0; }
.nv-rank { flex: 0 0 auto; font-family: var(--ds-font-mono, monospace); font-size: 22px; font-weight: 900; color: #13abd2; min-width: 30px; }
.nv-ads { margin: 18px 0; }
.nv-ad { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--nv-line); background: var(--nv-card); color: inherit; }
.nv-ad img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.nv-ad div { padding: 16px 18px; }
.nv-ad strong { font-size: 18px; }
.nv-ad p { margin: 6px 0 0; color: #D3DAE0; }
.nv-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 26px 0 14px; border-bottom: 1px solid var(--nv-line); padding-bottom: 10px; }
.nv-sec-head h2 { margin: 0; font-size: 22px; }
.nv-sec-head span { color: var(--nv-mute); font-size: 13px; }
.nv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.nv-card { position: relative; border: 1px solid var(--nv-line); border-radius: 18px; background: var(--nv-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.nv-card:hover { transform: translateY(-3px); border-color: rgba(118,229,253,.35); box-shadow: 0 18px 40px -20px rgba(19,171,210,.45); }
.nv-card-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(145deg, #0d2a35, #05080c); overflow: hidden; }
.nv-card-img img { width: 100%; height: 100%; object-fit: cover; }
.nv-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(118,229,253,.35); font-weight: 900; letter-spacing: .2em; font-size: 13px; }
.nv-card-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.nv-card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.nv-more { display: flex; justify-content: center; margin-top: 20px; }
.nv-btn { min-height: 44px; padding: 0 22px; border-radius: 12px; border: 1px solid rgba(118,229,253,.35); background: rgba(19,171,210,.1); color: #76e5fd; font-weight: 800; font-family: inherit; cursor: pointer; }
.nv-btn:hover { background: #13abd2; color: #04151c; }

/* الروابط التلقائية في أي نص */
.nv a.auto-link, .na-body a, .na-sub a, .nvf a.auto-link { color: #76e5fd; text-decoration: underline; text-decoration-color: rgba(118,229,253,.4); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ===== صفحة الخبر ===== */
.na-title { font-size: clamp(30px, 5vw, 54px); line-height: 1.2; font-weight: 900; margin: 14px 0; }
.na-sub { font-size: 19px; color: #D3DAE0; line-height: 1.8; }
.na-cover { margin: 22px 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--nv-line); }
.na-cover img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.na-crumbs { font-size: 14px; color: var(--nv-mute); }
.na-body { font-size: 18px; line-height: 2; max-width: 760px; margin-inline: auto; overflow-wrap: anywhere; }
.na-body p { margin: 0 0 1.1em; }
.na-body h2 { font-size: 24px; margin: 1.4em 0 .5em; color: #76e5fd; }
.na-body blockquote { margin: 1.4em 0; padding: 16px 20px; border-inline-start: 3px solid #13abd2; background: rgba(19,171,210,.06); border-radius: 12px; color: #D3DAE0; }
.na-body figure { margin: 1.6em 0; }
.na-body figure img, .na-body figure video { width: 100%; border-radius: 16px; display: block; }
.na-body figcaption { font-size: 13px; color: var(--nv-mute); text-align: center; margin-top: 8px; }
.na-body .nvf-embed { margin: 1.6em 0; }

/* ===== الملفات المرفقة ===== */
.nvf { max-width: 860px; margin: 36px auto 0; display: grid; gap: 14px; }
.nvf > h2 { margin: 0; font-size: 20px; border-bottom: 1px solid var(--nv-line); padding-bottom: 10px; }
.nvf-group h3 { margin: 0 0 10px; font-size: 14px; color: var(--nv-mute); font-weight: 700; }
.nvf-list { display: grid; gap: 12px; }
.nvf-item { border: 1px solid var(--nv-line); border-radius: 16px; background: var(--nv-card); overflow: hidden; }
.nvf-item img, .nvf-item video { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #000; }
.nvf-item audio { width: 100%; padding: 10px; }
.nvf-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.nvf-type { font-size: 12px; font-weight: 800; color: #76e5fd; border: 1px solid rgba(118,229,253,.3); border-radius: 999px; padding: 3px 10px; }
.nvf-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.nvf-row small { color: var(--nv-mute); }
.nvf-dl { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; background: linear-gradient(135deg, #13abd2, #76e5fd); color: #04151c; font-weight: 800; }
.nvf-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--nv-line); }
.nvf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== الجوال ===== */
@media (max-width: 900px) { .nv-top { grid-template-columns: 1fr; } .nv-hero { min-height: 360px; } }
@media (max-width: 640px) {
  .nv { width: calc(100% - 24px); }
  .nv-grid { grid-template-columns: 1fr; }
  .nv-hero { min-height: 320px; }
  .nv-hero-copy { padding: 18px; }
  .nv-card h3 { font-size: 16px; }
  .na-body { font-size: 17px; }
  .nvf-dl { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nv-card, .nv-hero-img img { transition: none; } .nv-card:hover { transform: none; } }
