/* Public news landing (/news) — the "Modern" direction: dark portal, indigo
   accent, a channel-video hero, and rounded category card blocks. Self-
   contained (no app chrome); responsive down to mobile. */
:root {
  --pn-bg: #0c0e16; --pn-panel: #11141d; --pn-panel2: #141823; --pn-border: #1f2433;
  --pn-text: #eaecf5; --pn-muted: #97a0b5; --pn-dim: #6b7488;
  --pn-accent: #818cf8; --pn-accent-solid: #6366f1;
  --pn-up: #1ec77b; --pn-down: #ff5d6c;
  --pn-crypto: #22d3ee; --pn-metals: #f5c451; --pn-stocks: #34d399; --pn-ipo: #fb7185;
  --pn-yt: #ff0028;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--pn-bg); color: var(--pn-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.pn-wrap { max-width: 1320px; margin: 0 auto; padding: 0 22px 48px; }

/* ---- header (login top-right) ---- */
.pn-nav { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--pn-border); flex-wrap: wrap; }
.pn-logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.pn-logo b { color: var(--pn-accent); }
.pn-logo .pn-tag { font-weight: 500; font-size: 14px; color: var(--pn-muted); }
.pn-search { flex: 1; min-width: 180px; max-width: 520px; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; background: var(--pn-panel2); border: 1px solid var(--pn-border); color: var(--pn-muted); font-size: 14px; }
/* ---- centered floating pill (primary nav) ---- */
.pn-pill { margin: 0 auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center;
  background: var(--pn-panel2); border: 1px solid var(--pn-border); border-radius: 999px; padding: 5px; }
.pn-pill > a, .pn-macro-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px;
  color: var(--pn-muted); padding: 8px 15px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.pn-pill > a:hover:not(.on), .pn-macro-btn:hover { color: var(--pn-text); }
.pn-pill > a.on { background: var(--pn-accent-solid); color: #fff; }
.pn-caret { opacity: .75; transition: transform .15s ease; }
/* macro dropdown */
.pn-macro { position: relative; }
.pn-macro-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  min-width: 190px; background: var(--pn-panel); border: 1px solid var(--pn-border); border-radius: 13px; padding: 7px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .14s ease, transform .14s ease; z-index: 40; }
.pn-macro:hover .pn-macro-menu, .pn-macro:focus-within .pn-macro-menu, .pn-macro.open .pn-macro-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.pn-macro:hover .pn-caret, .pn-macro.open .pn-caret { transform: rotate(180deg); }
.pn-macro-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--pn-text); }
.pn-macro-menu a:hover { background: var(--pn-panel2); color: var(--pn-accent); }
.pn-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pn-lang { display: inline-flex; background: var(--pn-panel2); border: 1px solid var(--pn-border); border-radius: 10px; overflow: hidden; }
.pn-lang a { background: transparent; border: 0; color: var(--pn-muted); font-weight: 700; font-size: 13px; padding: 7px 12px; cursor: pointer; font-family: inherit; }
.pn-lang a.on { background: var(--pn-accent-solid); color: #fff; }
.pn-signin { background: var(--pn-accent-solid); color: #fff; font-weight: 700; padding: 9px 20px; border-radius: 999px; font-size: 14px; }
.pn-signin:hover { filter: brightness(1.08); }

/* ---- channel promo banner (masthead, language-specific) ----
   EN edition shows BannerUK.png, the Greek edition BannerGR.png; news.js sets
   the src from the matching data- attribute. Hidden until its image actually
   loads (.is-ready) so a missing file leaves no broken icon on the live page. */
.pn-banner { display: none; margin: 18px 0 4px; border-radius: 16px; overflow: hidden; line-height: 0; background: #000; border: 1px solid var(--pn-border); }
.pn-banner.is-ready { display: block; }
.pn-banner img { width: 100%; height: auto; display: block; }
.pn-banner:hover { filter: brightness(1.05); }

/* ---- ticker ---- */
.pn-ticker { display: flex; gap: 26px; padding: 11px 0; overflow-x: auto; border-bottom: 1px solid var(--pn-border); scrollbar-width: none; }
.pn-ticker::-webkit-scrollbar { display: none; }
.pn-ti { white-space: nowrap; font-size: 13px; }
.pn-ti b { color: var(--pn-muted); font-weight: 600; margin-right: 8px; }
.pn-ti span { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; }
.up { color: var(--pn-up); } .down { color: var(--pn-down); }

/* ---- channel hero ---- */
.pn-channel { display: grid; grid-template-columns: 380px 1fr; gap: 20px; margin: 20px 0;
  background: linear-gradient(120deg, #1e1b4b, #3b0764); border: 1px solid #312e81; border-radius: 18px; padding: 18px; }
.pn-channel .pn-vt { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0c0a1e; }
.pn-channel .pn-vt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-vt .pn-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: var(--pn-yt); display: grid; place-items: center; color: #fff; font-size: 24px; box-shadow: 0 8px 26px rgba(255,0,40,.5); }
.pn-vt .pn-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.85); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.pn-channel .pn-meta { align-self: center; min-width: 0; }
.pn-channel .pn-kk { color: #c7d2fe; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.pn-channel h2 { font-size: 24px; line-height: 1.18; margin: 8px 0 6px; font-weight: 800; }
.pn-channel .pn-sub-note { color: #c9c6ee; font-size: 14px; }
.pn-channel .pn-subscribe { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; background: var(--pn-yt); color: #fff;
  font-weight: 800; padding: 9px 18px; border-radius: 999px; font-size: 14px; }

/* ---- main layout: news grid + rail ---- */
.pn-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.pn-block { background: var(--pn-panel); border: 1px solid var(--pn-border); border-radius: 16px; padding: 16px 18px; }
.pn-block-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pn-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.pn-block-h .pn-all { margin-left: auto; font-size: 12px; color: var(--pn-dim); }
.pn-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--pn-border); align-items: start; }
.pn-item:first-of-type { border-top: 0; padding-top: 0; }
.pn-thumb { aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: var(--pn-panel2); position: relative; }
/* glyph + category gradient sit behind the photo; the photo covers them when
   it loads, and a JS-attached error handler hides a failed photo to reveal
   them (no inline onerror — CSP forbids inline event handlers). */
.pn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-thumb-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; opacity: .5; }
.pn-item .pn-t { font-size: 14px; line-height: 1.32; font-weight: 600; }
.pn-item:hover .pn-t { color: var(--pn-accent); }
.pn-item .pn-m { font-size: 11.5px; color: var(--pn-dim); margin-top: 4px; }
.pn-skel { height: 76px; border-radius: 9px; background: linear-gradient(100deg, #161a26, #1d2231, #161a26); background-size: 200% 100%; animation: pn-sh 1.3s linear infinite; margin: 8px 0; }
@keyframes pn-sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- rail ---- */
.pn-rail { display: flex; flex-direction: column; gap: 18px; }
.pn-card { background: var(--pn-panel); border: 1px solid var(--pn-border); border-radius: 16px; padding: 16px 18px; }
.pn-card h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--pn-text); }
.pn-mkt { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--pn-border); font-size: 13px; }
.pn-mkt:first-of-type { border-top: 0; }
.pn-mkt .pn-mkt-n { font-weight: 600; }
.pn-mkt .pn-mkt-px { margin-left: auto; font-family: "JetBrains Mono", monospace; font-weight: 700; }
.pn-cta { background: linear-gradient(135deg, var(--pn-accent-solid), #a855f7); border: 0; }
.pn-cta h3 { color: #fff; }
.pn-cta p { color: #e7e6ff; font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.pn-cta a { display: inline-block; background: #fff; color: #1e1b4b; font-weight: 800; padding: 9px 18px; border-radius: 999px; font-size: 14px; }

/* ---- footer ---- */
.pn-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--pn-border); color: var(--pn-dim); font-size: 12.5px; line-height: 1.6; }
.pn-footer a { color: var(--pn-muted); text-decoration: underline; }

/* ---- channel links row (subscribe · all episodes · X) ---- */
.pn-chlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.pn-channel .pn-subscribe { margin-top: 0; }
.pn-chlink { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--pn-panel2); border: 1px solid var(--pn-border); color: var(--pn-text); font-weight: 700; font-size: 13px; }
.pn-chlink:hover { border-color: var(--pn-accent); color: var(--pn-accent); }

/* ---- Trump tracker ---- */
.pn-trump { background: var(--pn-panel); border: 1px solid var(--pn-border); border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.pn-trump-sub { margin-left: auto; font-size: 12px; color: var(--pn-dim); }
.pn-trump-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pn-asset { background: var(--pn-panel2); border: 1px solid var(--pn-border); border-radius: 12px; padding: 11px 13px; }
.pn-asset-h { display: flex; align-items: center; gap: 8px; }
.pn-asset-l { font-weight: 800; font-size: 15px; }
.pn-asset-k { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--pn-dim); }
.pn-asset-n { font-size: 12px; color: var(--pn-muted); margin: 2px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-asset-px { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 14px; }
.pn-trump-news { margin-top: 14px; border-top: 1px solid var(--pn-border); padding-top: 4px; }
.pn-trump-newsh { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pn-dim); margin: 8px 0 4px; }
.pn-trump-news .pn-item { grid-template-columns: 72px 1fr; }

/* ---- focus + motion (quality floor) ---- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--pn-accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .pn-skel { animation: none; } }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .pn-layout { grid-template-columns: 1fr; }
  .pn-rail { flex-direction: row; flex-wrap: wrap; }
  .pn-rail > * { flex: 1 1 260px; }
}
@media (max-width: 680px) {
  .pn-grid { grid-template-columns: 1fr; }
  .pn-channel { grid-template-columns: 1fr; }
  .pn-search { display: none; }
  .pn-pill { display: none; }
}
