/* ============================================================
   NEWS PAGE — TalesWeaver tarzı tablo + detay sayfası
   news.php (liste ve ?id= detay) için tüm stiller.
   site.css'ten bağımsız brand variables.
   ============================================================ */

:root {
  --n-ink:   #e2ecff;
  --n-mid:   #cfe2ff;
  --n-lo:    rgba(207,226,255,.55);
  --n-cyan:  #5b8def;
  --n-pink:  #ff5fb3;
  --n-gold:  #ffd57a;
  --n-deep:  #0a0e1c;
  --n-card:  #161a2e;
  --n-soft:  #1f2440;
  --n-line:  rgba(255,255,255,.06);
}

/* ============================================================
   PAGE LAYOUT — topbar (.mega-top__inner) ile aynı genişlik
   max-width: 1480px + margin auto + padding 24px
   ============================================================ */
.news-page {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}
.news-main {
  min-width: 0;
}

/* ============================================================
   PAGE HEADER — başlık + filter sub-nav
   ============================================================ */
.news-head {
  border-bottom: 1px solid rgba(91,141,239,.18);
  padding-bottom: 14px;
  margin-bottom: 0;
}
.news-head h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--n-cyan), var(--n-gold));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.01em;
}
.news-head__sub {
  color: var(--n-lo);
  font-size: 13px;
  margin: 0;
}

/* === Sub-nav: kategori sekme === */
.news-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--n-line);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar { display: none; }
.news-tab {
  position: relative;
  padding: 12px 18px;
  background: none;
  border: none;
  color: var(--n-mid);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
  letter-spacing: -.005em;
}
.news-tab::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--n-cyan), var(--n-gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.news-tab:hover { color: var(--n-ink); }
.news-tab:hover::after { transform: scaleX(.5); }
.news-tab.is-active {
  color: var(--n-gold);
  font-weight: 700;
}
.news-tab.is-active::after { transform: scaleX(1); }

/* === Filter chip'leri (sağ üst) === */
.news-filters {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: -6px 0 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.news-filters span {
  font-size: 10px;
  color: var(--n-lo);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: 4px;
}
.news-filter {
  padding: 5px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: var(--n-mid);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .02em;
}
.news-filter:hover {
  background: rgba(91,141,239,.14);
  border-color: rgba(91,141,239,.35);
  color: var(--n-ink);
}
.news-filter.is-active {
  background: linear-gradient(90deg, var(--n-cyan), var(--n-gold));
  border-color: transparent;
  color: var(--n-deep);
  font-weight: 800;
}

/* ============================================================
   NEWS LIST — TalesWeaver tarzı tablo satırı
   ============================================================ */
.news-list {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.news-row {
  display: grid;
  grid-template-columns: 95px 100px minmax(0, 1fr) 100px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--n-line);
  text-decoration: none;
  color: var(--n-ink);
  transition: background .15s, transform .15s;
}
.news-row:first-child { border-top: 1px solid var(--n-line); }
.news-row:hover {
  background: linear-gradient(90deg, rgba(91,141,239,.08), transparent 80%);
}
.news-row.is-pinned {
  background: linear-gradient(90deg, rgba(255,213,122,.08), transparent 70%);
  border-top: 1px solid rgba(255,213,122,.18);
  border-bottom: 1px solid rgba(255,213,122,.18);
}
.news-row__date {
  font-size: 11px;
  color: var(--n-lo);
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  letter-spacing: -.02em;
  display: flex; flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.news-row__date strong {
  color: var(--n-mid);
  font-weight: 600;
  font-size: 12px;
}

/* Tag pill (tablo satırında) */
.news-row .news-tag,
.news-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  width: fit-content;
}
.tag-info { background: rgba(91,141,239,.14);  color: var(--n-cyan); border-color: rgba(91,141,239,.35); }
.tag-upd  { background: rgba(255,213,122,.14); color: var(--n-gold); border-color: rgba(255,213,122,.35); }
.tag-fix  { background: rgba(240,78,86,.14);   color: #ff7079;       border-color: rgba(240,78,86,.35); }
.tag-evt  { background: rgba(255,95,179,.14);  color: var(--n-pink); border-color: rgba(255,95,179,.35); }

.news-row__title {
  display: flex; align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--n-ink);
  line-height: 1.5;
  transition: color .15s;
  letter-spacing: -.005em;
  min-width: 0;
}
/* Title text span — flex item olarak kalan alanı doldurur, doğal wrap olur */
.news-row__title > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.news-row__new {
  flex-shrink: 0;
}
.news-row:hover .news-row__title { color: var(--n-gold); }
.news-row__new {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--n-pink), var(--n-gold));
  color: var(--n-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 12px rgba(255,95,179,.4);
}
.news-row__views {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  color: var(--n-lo);
  font-family: ui-monospace, monospace;
}
.news-row__views svg { width: 13px; height: 13px; opacity: .55; }

/* Empty state */
.news-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--n-lo);
  font-size: 14px;
  background: rgba(22,26,46,.4);
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 12px;
}

/* ============================================================
   NEWS DETAIL (read sayfası — ?id=X)
   ============================================================ */
.news-detail {
  background: transparent;
}
.news-detail__head {
  padding: 16px 0;
  border-bottom: 1px solid var(--n-line);
  margin-bottom: 0;
}
.news-detail__crumb {
  display: flex; align-items: center;
  gap: 10px;
  padding: 14px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--n-line);
}
.news-detail__crumb .news-tag {
  flex-shrink: 0;
}
.news-detail__crumb h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--n-ink);
  line-height: 1.4;
  flex: 1;
  letter-spacing: -.01em;
}
.news-detail__crumb .meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 11px;
  color: var(--n-lo);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}
.news-detail__crumb .meta svg { width: 13px; height: 13px; }

/* Hero banner — tag bazlı resim, dikey kısaltılmış oran */
.news-detail__hero {
  position: relative;
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 5;            /* dikey kısalt (önceki 3/1'den daha az dikey) */
  max-height: 380px;
  background:
    radial-gradient(ellipse 600px 400px at 30% 50%, rgba(91,141,239,.45), transparent 60%),
    radial-gradient(ellipse 600px 400px at 70% 50%, rgba(255,95,179,.35), transparent 65%),
    linear-gradient(135deg, var(--n-cyan), var(--n-pink), var(--n-gold));
  background-size: 200% 200%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.08);
}
/* Resimli hero — img tam doldurur, alt overlay ile yazı okunaklı */
.news-detail__hero--img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.news-detail__hero--img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 50%,
    rgba(10,14,28,.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.news-detail__hero-mark {
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 900;
  color: rgba(255,255,255,.55);
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
  letter-spacing: -.04em;
  line-height: 1;
}
.news-detail__hero-label {
  position: absolute;
  bottom: 18px; left: 22px;
  z-index: 2;
  padding: 6px 14px;
  background: rgba(10,14,28,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* Content body */
.news-detail__body {
  padding: 16px 0 28px;
  color: var(--n-mid);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .005em;
}
.news-detail__body p { margin: 0 0 14px; }
.news-detail__body strong { color: var(--n-ink); }
.news-detail__body a {
  color: var(--n-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(91,141,239,.4);
  text-underline-offset: 3px;
}
.news-detail__body a:hover { color: var(--n-gold); text-decoration-color: var(--n-gold); }
.news-detail__body ul, .news-detail__body ol { padding-left: 22px; margin: 0 0 14px; }
.news-detail__body h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--n-gold);
  font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.news-detail__body h2::before {
  content: "";
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--n-cyan), var(--n-pink), var(--n-gold));
  border-radius: 2px;
}
.news-detail__body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(91,141,239,.08);
  border-left: 3px solid var(--n-cyan);
  border-radius: 0 8px 8px 0;
  color: var(--n-ink);
  font-style: italic;
}

/* Detail footer — paylaş + prev/next + tümüne dön */
.news-detail__share {
  display: flex; gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--n-line);
  border-bottom: 1px solid var(--n-line);
  align-items: center;
  flex-wrap: wrap;
}
.news-detail__share span {
  font-size: 11px;
  color: var(--n-lo);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: 6px;
}
.news-detail__share a {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--n-mid);
  text-decoration: none;
  transition: all .2s;
}
.news-detail__share a:hover { transform: translateY(-2px); color: var(--n-ink); background: rgba(91,141,239,.18); }
.news-detail__share a svg { width: 14px; height: 14px; fill: currentColor; }

.news-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.news-detail__nav a {
  display: flex; flex-direction: column;
  padding: 14px 16px;
  background: rgba(22,26,46,.7);
  border: 1px solid var(--n-line);
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  min-width: 0;
}
.news-detail__nav a:hover {
  background: rgba(91,141,239,.1);
  border-color: rgba(91,141,239,.35);
  transform: translateY(-2px);
}
.news-detail__nav .label {
  font-size: 10px;
  color: var(--n-lo);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.news-detail__nav .title {
  font-size: 13px;
  color: var(--n-ink);
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-detail__nav .next { text-align: right; }
.news-detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--n-cyan), var(--n-gold));
  color: var(--n-deep);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform .2s, box-shadow .25s;
}
.news-detail__back:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(91,141,239,.55);
}

/* ============================================================
   SIDEBAR — etkinlik banner + son haberler
   ============================================================ */
.news-sidebar {
  display: flex; flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 92px;
}

/* Etkinlik / reklam banner */
.news-sidebar__banner {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background:
    radial-gradient(ellipse 300px 200px at 30% 30%, rgba(91,141,239,.45), transparent 60%),
    radial-gradient(ellipse 300px 200px at 70% 70%, rgba(255,95,179,.4), transparent 65%),
    linear-gradient(160deg, var(--n-cyan), var(--n-pink), var(--n-gold));
  background-size: 200% 200%;
  border: 1px solid rgba(255,255,255,.08);
}
.news-sidebar__banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,14,28,.85) 100%);
}
.news-sidebar__banner-inner {
  position: relative;
  z-index: 1;
  padding: 18px;
  height: 100%;
  display: flex; flex-direction: column;
  color: #fff;
}
.news-sidebar__banner-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  width: fit-content;
}
.news-sidebar__banner-content {
  margin-top: auto;
}
.news-sidebar__banner-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.news-sidebar__banner-sub {
  font-size: 12px;
  opacity: .9;
  margin: 0 0 10px;
}
.news-sidebar__banner-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: #fff;
  color: var(--n-deep);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  width: fit-content;
}
/* Banner pagination dots */
.news-sidebar__banner-dots {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 2;
  display: flex; gap: 5px;
  background: rgba(10,14,28,.5);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: #fff;
  font-family: ui-monospace, monospace;
}

/* Sidebar widget — Son Haberler */
.news-sidebar__widget {
  background: rgba(22,26,46,.7);
  border: 1px solid var(--n-line);
  border-radius: 12px;
  overflow: hidden;
}
.news-sidebar__widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--n-line);
}
.news-sidebar__widget-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--n-ink);
}
.news-sidebar__widget-head a {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: rgba(91,141,239,.15);
  color: var(--n-cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background .2s;
}
.news-sidebar__widget-head a:hover { background: rgba(91,141,239,.3); color: var(--n-ink); }

.news-sidebar__widget-list {
  display: flex; flex-direction: column;
}
.news-sidebar__widget-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--n-line);
  text-decoration: none;
  color: var(--n-mid);
  font-size: 12px;
  transition: background .15s, color .15s;
  min-width: 0;
}
.news-sidebar__widget-item:last-child { border-bottom: none; }
.news-sidebar__widget-item:hover {
  background: rgba(91,141,239,.08);
  color: var(--n-ink);
}
.news-sidebar__widget-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: rgba(91,141,239,.15);
  font-size: 11px;
  font-weight: 700;
}
.news-sidebar__widget-icon.upd { background: rgba(255,213,122,.18); color: var(--n-gold); }
.news-sidebar__widget-icon.evt { background: rgba(255,95,179,.18); color: var(--n-pink); }
.news-sidebar__widget-icon.fix { background: rgba(240,78,86,.18); color: #ff7079; }
.news-sidebar__widget-icon.info { background: rgba(91,141,239,.18); color: var(--n-cyan); }
.news-sidebar__widget-title {
  flex: 1; min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.005em;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.news-pagination {
  display: flex; gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 32px 0 12px;
}
.news-pagination a, .news-pagination span {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(22,26,46,.6);
  border: 1px solid var(--n-line);
  color: var(--n-mid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.news-pagination a:hover {
  background: rgba(91,141,239,.14);
  border-color: rgba(91,141,239,.35);
  color: var(--n-ink);
}
.news-pagination .is-active {
  background: linear-gradient(135deg, var(--n-cyan), var(--n-gold));
  border-color: transparent;
  color: var(--n-deep);
  font-weight: 800;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .news-page { grid-template-columns: 1fr; }
  .news-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .news-sidebar__banner { flex: 1 1 280px; aspect-ratio: 16/9; }
  .news-sidebar__widget { flex: 1 1 280px; }
}
@media (max-width: 640px) {
  .news-page { padding: 24px 12px 60px; }
  .news-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }
  .news-row__date { flex-direction: row; gap: 8px; }
  .news-row__views { align-self: end; margin-top: -4px; }
  .news-detail__crumb { flex-wrap: wrap; }
  .news-detail__crumb h1 { font-size: 18px; flex-basis: 100%; }
  .news-detail__hero { aspect-ratio: 16/9; }
  .news-detail__nav { grid-template-columns: 1fr; }
}
