/* =====================================================================
   PressRadar / Hírradar – ikonok v2 (vékony vonal)
   A news.css UTÁN töltendő be. Ikonsprite-ok:
     /assets/img/feed-ikonok.svg      – alsó sáv és kártyaműveletek
     /assets/img/kategoria-ikonok.svg – kategóriák (a régi fájl helyére, azonos azonosítókkal)
   ===================================================================== */

/* 1. Színek – világos */
:root, [data-theme] {
  --nav-idle: var(--text-3, #6E695E);        /* nyugalmi ikonok: halkabb szürke */
  --nav-on: var(--accent-text, #861F2E);     /* kiválasztott menüpont: bordó (sötétben rózsás) */
}
:root{--nav-like: #E03131;                       /* tetszik: piros */
  --nav-dislike: #4F5560;                    /* nem tetszik: erős szürke, nem fekete */
  --nav-share: #4E94C5;
  --nav-profile: #2457A5;
  --nav-home: #995263;
  --nav-bookmark: #E8590C;                   /* könyvjelző: narancs */
  --nav-dot: #E03131;                        /* a radar célpontja */;--legacy-icon-stroke:1.4; --legacy-icon-fill:.14; --ic-stroke:1.4; --ic-bg:var(--surface);--chip-border:0; --chip-radius:var(--r-chip,6px); --chip-surface:var(--surface-2); --chip-padding:0 12px 0 10px}
/* 1b. Színek – sötét */
[data-theme="dark"] {
  --nav-idle: #A9B5C5;
  --nav-like: #FF6B6B;
  --nav-dislike: #DDE2E8;
  --nav-share: #91C9EF;
  --nav-profile: #699FE3;
  --nav-home: #D88C9D;
  --nav-bookmark: #FFA94D;
  --nav-dot: #FF6B6B;
}

/* 2. Az új ikonok alapja */
.pr-ic {
  width: 24px; height: 24px; flex: none;
  color: var(--nav-idle);
  --ic-stroke: 1.4;          /* vonalvastagság a 24-es rácson */
  --ic-bg: var(--surface);   /* same surface as the former later .ic override */
  --ic-dot: var(--nav-dot);
}
.pr-ic.is-like { color: var(--nav-like); }
.pr-ic.is-dislike { color: var(--nav-dislike); }
.pr-ic.is-bookmark { color: var(--nav-bookmark); }
.news-card .pr-ic, .acts .pr-ic { --ic-bg: var(--surface); }

/* 3. Aktív állapot: teli ikon, a belső rajzolat háttérszínű */
.on > .pr-ic, [aria-current="page"] > .pr-ic, [aria-pressed="true"] > .pr-ic, .pr-ic.is-on {
  --ic-fill: 1; --ic-cut: var(--ic-bg);
}
:is(.on, [aria-current="page"]) > .pr-ic:not(.is-like, .is-dislike, .is-bookmark) { color: var(--nav-on); }
:disabled > .pr-ic { opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  [aria-pressed="true"] > .pr-ic { animation: pr-pop .28s ease-out; }
  @keyframes pr-pop { 40% { transform: scale(1.18); } }
}

/* 4. Alsó sáv (mobil) */
:where(html.phone-layout) .news-mobile-nav .pr-ic { width: clamp(24px, 6.8vw, 28px); height: clamp(24px, 6.8vw, 28px); }
:where(html.phone-layout) .news-mobile-nav > .on .pr-ic { --ic-fill: 1; }
:where(html.phone-layout) .news-mobile-nav .act[aria-pressed="true"] { background: transparent; }
.acts .act[aria-pressed="true"] { background: transparent; }

/* 5. A régi beágyazott ikonok vonala is vékonyabb (fejléc, keresés stb.) */


/* 6. Kategóriaikonok (kategoria-ikonok.svg, színük a meglévő .ic-<kategória> osztályokból) */

.ic[width="16"], .ic[width="14"], .meta .tag .ic { --ic-stroke: 1.7; }   /* kis méretben arányosan erősebb */

/* 7. Kategóriák formázása: sötét kitöltés helyett halvány, a kategória színére hangolt kiemelés */
:is(.nv, .chip):has(> .ic-general) { --ic-cat: var(--c-general); }
:is(.nv, .chip):has(> .ic-world) { --ic-cat: var(--c-world); }
:is(.nv, .chip):has(> .ic-regional) { --ic-cat: var(--c-regional); }
:is(.nv, .chip):has(> .ic-business) { --ic-cat: var(--c-business); }
:is(.nv, .chip):has(> .ic-tech) { --ic-cat: var(--c-tech); }
:is(.nv, .chip):has(> .ic-sport) { --ic-cat: var(--c-sport); }
:is(.nv, .chip):has(> .ic-culture) { --ic-cat: var(--c-culture); }
:is(.nv, .chip):has(> .ic-ent) { --ic-cat: var(--c-ent); }
:is(.nv, .chip):has(> .ic-life) { --ic-cat: var(--c-life); }
:is(.nv, .chip):has(> .ic-food) { --ic-cat: var(--c-food); }
:is(.nv, .chip):has(> .ic-auto) { --ic-cat: var(--c-auto); }
:is(.nv, .chip):has(> .ic-media) { --ic-cat: var(--c-media); }
:is(.nv, .chip):has(> .ic-agri) { --ic-cat: var(--c-agri); }
:is(.nv, .chip):has(> .ic-travel) { --ic-cat: var(--c-travel); }
:is(.nv, .chip):has(> .ic-home) { --ic-cat: var(--c-home); }
:is(.nv, .chip):has(> .ic-edu) { --ic-cat: var(--c-edu); }
:is(.nv, .chip):has(> .ic-politics) { --ic-cat: var(--c-politics); }
:is(.nv, .chip):has(> .ic-latest) { --ic-cat: var(--c-latest); }
:is(.nv, .chip):has(> .ic-watch) { --ic-cat: var(--c-watch); }
:is(.nv, .chip):has(> .ic-own) { --ic-cat: var(--c-own); }
:is(.nv, .chip):has(> .ic-later) { --ic-cat: var(--c-laterlist); }

/* 7a. bal oldali menü (asztali) */
.lnav .nv.on {
  background: color-mix(in srgb, var(--ic-cat, var(--accent)) 12%, transparent);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}
.lnav .nv.on .ic { --ic: var(--ic-cat, var(--accent-text)); --ic-fill: .24; }
.lnav .nv.on .ic .f { fill-opacity: .24; }
.lnav .nv:not(.on):hover { background: var(--hover); }

/* 7b. kategóriachipek (asztali sáv) */

.chip:hover { background: var(--hover); }
:not(.news-mobile-categories) > .chip.on {
  background: color-mix(in srgb, var(--ic-cat, var(--accent)) 14%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic-cat, var(--accent)) 45%, transparent);
}
:not(.news-mobile-categories) > .chip.on .ic { --ic: var(--ic-cat, var(--accent-text)); --ic-fill: .24; }

/* 7c. mobil kategóriasáv: csak ikonok, a kiválasztott felirattal, keret nélkül */
:where(html.phone-layout) .news-mobile-categories .chip .ic { width: 24px; height: 24px; --ic-stroke: 1.4; }
:where(html.phone-layout) .news-mobile-categories .chip:not(.on) .ic { opacity: .9; }
:where(html.phone-layout) .news-mobile-categories .chip.on {
  border: 0; border-radius: 6px;
  background: color-mix(in srgb, var(--ic-cat, var(--accent)) 14%, transparent);
  color: var(--text); font-weight: 600;
}
:where(html.phone-layout) .news-mobile-categories .chip.on .ic { --ic-fill: .24; }

/* Shared live layout: keep navigation colours and the five mobile positions. */
.news-page .pr-ic{color:var(--nav-idle)}
.news-page .pr-ic.is-like{color:var(--nav-like)}
.news-page .pr-ic.is-dislike{color:var(--nav-dislike)}
.news-page .pr-ic.is-bookmark{color:var(--nav-bookmark)}
.news-page :is(.lnav,.news-mobile-categories) .pr-ic{color:var(--ic-cat,var(--nav-idle))}
.news-page :is(.on,.is-current summary)>.pr-ic:not(.is-like,.is-dislike,.is-bookmark){color:var(--nav-on)}
.news-page .lnav .nv.on{box-shadow:none;border-left:0}
.news-page .like-burst .pr-ic{color:#f2a0aa;--ic-fill:.9}
.news-page .gesture-feedback{padding:12px;border:0;border-radius:50%;box-shadow:var(--shadow)}
.gesture-feedback>[data-gesture-icon]{display:none}
.gesture-feedback[data-gesture=later]>[data-gesture-icon=later],
.gesture-feedback[data-gesture=skip]>[data-gesture-icon=skip],
.gesture-feedback[data-gesture=next]>[data-gesture-icon=next],
.gesture-feedback[data-gesture=previous]>[data-gesture-icon=previous]{display:flex}
.news-page .gesture-feedback .ic{width:40px;height:40px}
.news-page .gesture-feedback .ic-next,.news-page .gesture-feedback .ic-previous{color:var(--text)}
.news-page .feed-empty{max-width:460px;margin:clamp(24px,12vh,120px) auto;padding:26px 24px;color:var(--warn);background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn) 30%,var(--surface));text-align:center}
.feed-empty>.ic{color:var(--warn);margin:0 auto 12px}
.feed-empty p{margin:0;font-weight:600}
.feed-empty .empty-keywords-link{display:inline-block;margin-top:12px;font-size:12px;line-height:1.5;color:var(--text-2);text-decoration:underline;text-underline-offset:3px}
.news-page .search input{padding-right:40px}
.news-page .search .search-history-toggle{left:auto;right:0;display:grid;place-items:center;width:38px}
.news-page .search .search-history-toggle svg{position:static}
.search-history-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.news-page .search .search-history-toggle:disabled{opacity:.3}
.search-history-panel{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:60;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:5px;max-height:min(360px,55dvh);overflow-y:auto;overscroll-behavior:contain}
.search-history-panel ul{list-style:none;margin:0;padding:0}
.news-page .search .search-history-panel button{position:static;display:block;width:100%;height:auto;min-height:40px;padding:9px 12px;text-align:start;color:var(--text);font:inherit;overflow-wrap:anywhere;border-radius:var(--r)}
.news-page .search .search-history-panel button:hover,.news-page .search .search-history-panel button:focus-visible{background:var(--hover)}
.news-page .search .search-history-panel .search-history-clear{margin-top:5px;border-top:1px solid var(--line);font-size:11px;color:var(--text-2);text-align:center;text-decoration:underline;text-underline-offset:3px}
.search-history-error{font-size:12px;color:var(--err);padding:0 12px}
@media(max-width:860px),(orientation:landscape){


 :where(html.phone-layout) .news-mobile-nav>.account-menu summary{height:52px;padding:0}
 :where(html.phone-layout) .news-mobile-nav>.account-menu summary span{display:none}
 :where(html.phone-layout) .deck-action-slot{display:flex;min-width:0}
 :where(html.phone-layout) .news-mobile-nav [hidden]{display:none}
 :where(html.phone-layout) .news-mobile-nav .pr-ic{width:clamp(24px,7vw,28px);height:clamp(24px,7vw,28px)}
 :where(html.phone-layout) .mobile-deck .feed-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);margin:0;z-index:3}
}

.phone-landscape .mobile-deck .news-mobile-nav>.account-menu summary{height:44px}
.news-page .onboarding-like-burst .pr-ic{color:#f2a0aa;--ic-fill:1}

.news-mobile-nav .account-menu.is-current summary>.pr-ic{--ic-fill:1;--ic-cut:var(--bg)}

/* Account-only mobile tools remain tappable, with a muted icon and no lock. */
:where(html.phone-layout) .news-page :is(.news-mobile-categories,.news-mobile-nav) .requires-account>.ic{color:var(--nav-idle);--ic:var(--nav-idle);--ic-dot:var(--nav-idle);--ic-fill:.08;filter:grayscale(1);opacity:.5}
.news-page [data-article-action=later][aria-pressed=true]>.pr-ic,
:where(html.phone-layout) .news-page .news-mobile-nav>.saved-link.on>.pr-ic{--ic-fill:.24;--ic-cut:currentColor;animation:none}

/* Bottom actions retain their identity in idle and selected states. */
:where(html.phone-layout) .news-page .news-mobile-nav .ic.pr-ic.ic-share{color:var(--nav-share)}
:where(html.phone-layout) .news-page .news-mobile-nav .ic.pr-ic.ic-user{color:var(--nav-profile)}
:where(html.phone-layout) .news-page .news-mobile-nav .ic.pr-ic.ic-home{color:var(--nav-home)}
