/* =====================================================================
   KYTHRION — Haber Merkezi v3
   - Haber akışı (ticker): taşmayan, kesintisiz kayan şerit
   - Ana içerik + sağ sütun (En çok okunan / Konular)
   - Haberler yan yana 2 sütun
   Yalnızca .news-page kapsamında çalışır. kx-news.css'ten SONRA yüklenir.
   ===================================================================== */

/* ---------- Haber akışı (ticker) ---------- */
body .news-page .nx-ticker{
  display:flex;align-items:stretch;height:54px;margin:0 0 22px;
  border:1px solid rgba(255,255,255,.09);border-radius:14px;overflow:hidden;
  background:linear-gradient(100deg,rgba(124,92,255,.12),rgba(13,17,30,.82) 32%,rgba(13,17,30,.6));
  box-shadow:0 12px 34px rgba(0,0,0,.16);
}
body .news-page .nx-ticker-label{
  position:relative;z-index:2;flex:none;display:flex;align-items:center;gap:10px;padding:0 18px 0 16px;
  background:linear-gradient(100deg,#171b30,#121627);border-right:1px solid rgba(255,255,255,.09);
  color:#ece9ff;font:800 12px/1 var(--body,Inter,sans-serif);letter-spacing:.2px;white-space:nowrap;
}
body .news-page .nx-ticker-label::after{
  content:"";position:absolute;top:0;bottom:0;right:-26px;width:26px;pointer-events:none;
  background:linear-gradient(90deg,#121627,transparent);
}
body .news-page .nx-pulse{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:#22d3ee;box-shadow:0 0 12px rgba(34,211,238,.8)}
body .news-page .nx-pulse::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(34,211,238,.6);animation:nxPulse 1.8s ease-out infinite}
@keyframes nxPulse{from{transform:scale(.5);opacity:1}to{transform:scale(1.8);opacity:0}}

body .news-page .nx-ticker-viewport{
  position:relative;flex:1 1 0;min-width:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34px,#000 calc(100% - 34px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 34px,#000 calc(100% - 34px),transparent 100%);
}
body .news-page .nx-ticker-run{display:flex;flex-wrap:nowrap;width:max-content;height:100%;animation:nxMarquee 60s linear infinite;will-change:transform}
body .news-page .nx-ticker:hover .nx-ticker-run{animation-play-state:paused}
body .news-page .nx-ticker-group{display:flex;flex:none;flex-wrap:nowrap;align-items:center;height:100%}
body .news-page .nx-ticker-group a{
  display:inline-flex;flex:none;align-items:center;gap:11px;height:100%;padding:0 26px;
  color:#d9def0;font-size:13px;font-weight:650;white-space:nowrap;
  transition:color .2s,background .2s;
}
body .news-page .nx-ticker-group a::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:rgba(139,108,255,.9)}
body .news-page .nx-ticker-group a time{flex:none;font:600 10px var(--mono,monospace);color:#7f87a3;letter-spacing:.3px}
body .news-page .nx-ticker-group a span{display:block;white-space:nowrap}
body .news-page .nx-ticker-group a:hover{color:#fff;background:rgba(255,255,255,.05)}
@keyframes nxMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

/* ---------- Ana yerleşim: içerik + sağ sütun ---------- */
body .news-page .nx-layout{display:grid;grid-template-columns:minmax(0,1fr) 344px;gap:34px;align-items:start}
body .news-page .nx-main{min-width:0}
body .news-page .nx-side{position:sticky;top:96px;display:grid;gap:20px;min-width:0}

/* Manşet: dikey, geniş görselli */
body .news-page .nx-main .news-hero{grid-template-columns:minmax(0,1fr);margin-bottom:30px;border-radius:22px}
body .news-page .nx-main .news-hero .news-hero-media{aspect-ratio:16/8!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%}
body .news-page .nx-main .news-hero .news-hero-media>img{animation:nxKen 1.8s cubic-bezier(.2,.7,.2,1) both}
@keyframes nxKen{from{transform:scale(1.09)}to{transform:scale(1)}}
body .news-page .nx-main .news-hero:hover .news-hero-media>img{transform:scale(1.03)}
body .news-page .nx-main .news-hero-copy{padding:clamp(22px,3vw,36px);gap:14px;overflow:visible}
body .news-page .nx-main .news-hero-copy h2{font-size:clamp(28px,3vw,40px);line-height:1.06}
body .news-page .nx-main .news-hero-foot{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 20px}

/* Haber kartları: yan yana 2 */
body .news-page .nx-main .news-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px}
body .news-page .nx-main .news-card-content h3{font-size:clamp(18px,1.55vw,22px);min-height:2.5em}
body .news-page .nx-main .news-card-content p{-webkit-line-clamp:3}
body .news-page.is-list .nx-main .news-grid-premium{grid-template-columns:1fr!important}
body .news-page.is-list .nx-main .news-card-image{width:260px}

/* Kart girişinde hafif sıralı yükselme (JS data-reveal ile birlikte) */
@media(prefers-reduced-motion:no-preference){
  .news-js .nx-main .news-card-premium[data-reveal]{transition-delay:calc(var(--i,0)*90ms)}
  body .news-page .nx-widget{animation:nxRise .7s cubic-bezier(.2,.7,.2,1) both}
  body .news-page .nx-popular{animation-delay:.12s}
  body .news-page .nx-topics{animation-delay:.24s}
  @keyframes nxRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
}

/* ---------- Sağ sütun widget'ları ---------- */
body .news-page .nx-widget{
  border:1px solid rgba(255,255,255,.09);border-radius:20px;padding:20px 20px 12px;
  background:linear-gradient(150deg,rgba(21,26,44,.95),rgba(9,12,21,.9));
  box-shadow:0 20px 55px -30px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.04);
}
body .news-page .nx-widget-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}
body .news-page .nx-widget-head span{display:block;font:600 11px var(--body,Inter,sans-serif);color:#67e8f9;margin-bottom:4px}
body .news-page .nx-widget-head h2{margin:0;font:800 26px/1.05 var(--display,inherit);letter-spacing:-.3px}
body .news-page .nx-widget-head>i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;color:var(--cyan,#22d3ee);background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.2);font-size:13px}
body .news-page .nx-widget-empty{margin:10px 0 8px;font-size:13px;color:var(--muted)}

/* En çok okunan */
body .news-page .nx-pop-item{
  position:relative;display:grid;grid-template-columns:26px 68px minmax(0,1fr);align-items:center;gap:12px;
  padding:13px 0;color:var(--text,#fff);border-bottom:1px solid rgba(255,255,255,.06);
}
body .news-page .nx-pop-item:last-of-type{border-bottom:0}
body .news-page .nx-pop-rank{font:900 24px/1 var(--display,inherit);text-align:center;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.28);transition:.25s}
body .news-page .nx-pop-item:first-of-type .nx-pop-rank{-webkit-text-stroke:0;background:linear-gradient(160deg,#8b5cf6,#22d3ee);-webkit-background-clip:text;background-clip:text}
body .news-page .nx-pop-thumb{display:block;position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#0d1020;border:1px solid rgba(255,255,255,.08)}
body .news-page .nx-pop-thumb img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
body .news-page .nx-pop-item:hover .nx-pop-thumb img{transform:scale(1.08)}
body .news-page .nx-pop-item:hover .nx-pop-rank{-webkit-text-stroke-color:var(--cyan,#22d3ee)}
body .news-page .nx-pop-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
body .news-page .nx-pop-copy small{font:700 10px var(--mono,monospace);letter-spacing:.8px;text-transform:uppercase;color:var(--cyan,#22d3ee);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .news-page .nx-pop-copy b{font-size:13.5px;line-height:1.32;font-weight:750;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s}
body .news-page .nx-pop-item:hover .nx-pop-copy b{color:#c4b5fd}
body .news-page .nx-pop-copy em{font:500 10px var(--mono,monospace);font-style:normal;color:var(--muted)}
body .news-page .nx-pop-copy em i{color:var(--cyan,#22d3ee);margin-right:5px}
/* görüntülenme çubuğu: sayfa açılınca dolar */
body .news-page .nx-pop-bar{position:absolute;left:0;bottom:-1px;height:2px;width:var(--w,10%);border-radius:2px;background:linear-gradient(90deg,#8b5cf6,#22d3ee);text-decoration:none;transform-origin:left;opacity:.9}
@media(prefers-reduced-motion:no-preference){
  body .news-page .nx-pop-bar{animation:nxBar 1.1s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.45s + var(--i,0)*.09s)}
  @keyframes nxBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}

/* Konular */
body .news-page .nx-tags{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 12px}
body .news-page .nx-tags a{
  display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:10px;
  border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.03);
  color:#cfd5ea;font:700 12px var(--body,Inter,sans-serif);transition:transform .2s,border-color .2s,background .2s,color .2s;
}
body .news-page .nx-tags a small{font:700 10px var(--mono,monospace);padding:1px 6px;border-radius:99px;background:rgba(255,255,255,.08);color:var(--muted)}
body .news-page .nx-tags a:hover{transform:translateY(-2px);color:#fff;border-color:rgba(34,211,238,.5);background:rgba(34,211,238,.08)}
body .news-page .nx-tags a.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#8b5cf6,#4f8cff)}
body .news-page .nx-tags a.active small{background:rgba(255,255,255,.22);color:#fff}

/* ---------- Duyarlı ---------- */
@media(max-width:1180px){
  body .news-page .nx-layout{grid-template-columns:minmax(0,1fr) 300px;gap:26px}
  body .news-page .nx-pop-item{grid-template-columns:22px 58px minmax(0,1fr);gap:10px}
}
@media(max-width:980px){
  body .news-page .nx-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  body .news-page .nx-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}
@media(max-width:700px){
  body .news-page .nx-side{grid-template-columns:minmax(0,1fr)}
  body .news-page .nx-main .news-grid-premium{grid-template-columns:minmax(0,1fr)!important;gap:16px}
  body .news-page .nx-main .news-hero .news-hero-media{aspect-ratio:16/10!important}
  body .news-page .nx-main .news-hero-foot{flex-direction:column;align-items:flex-start}
  body .news-page .nx-main .news-card-content h3{min-height:0}
  body .news-page .nx-ticker{height:50px}
  body .news-page .nx-ticker-label{padding:0 14px 0 12px}
  body .news-page .nx-ticker-group a{padding:0 20px;font-size:12px}
}
@media(max-width:700px){body .news-page.is-list .nx-main .news-card-image{width:100%}}

/* Hareket azaltma */
@media(prefers-reduced-motion:reduce){
  body .news-page .nx-ticker-viewport{overflow-x:auto;-webkit-mask-image:none;mask-image:none;scrollbar-width:thin}
  body .news-page .nx-ticker-run{animation:none;transform:none}
  body .news-page .nx-ticker-group[aria-hidden="true"]{display:none}
  body .news-page .nx-pulse::after,
  body .news-page .nx-main .news-hero .news-hero-media>img,
  body .news-page .nx-widget,
  body .news-page .nx-pop-bar{animation:none!important}
}
