/* Haberler: sitenin üst barı ve koyu sayfa başlığı altında, krem zeminde dikdörtgen paneller (geniş ekranda her satırda 3).
   Kart şablonu her türde aynı; yalnız medya yuvası (fotoğraf / video / podcast) değişir. İmleçle hafif 3B eğilme.
   Kart açılınca yerinden büyüyerek (FLIP) sayfa içinde detay paneline dönüşür; sayfadan çıkılmaz. */
.nw { --ease: cubic-bezier(.22, 1, .36, 1); padding-top: 48px; }

.nw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.nw-chip { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .9rem; padding: 10px 18px; min-height: 44px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.nw-chip:hover { border-color: var(--gold-line); transform: translateY(-1px); box-shadow: 0 8px 20px -14px rgba(60, 20, 40, .4); }
.nw-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(163, 33, 74, .6); }
.nw-chip svg { width: 16px; height: 16px; }
.nw-chip b { font-weight: 500; font-size: .75rem; opacity: .7; }
.nw-chip:focus-visible, .nw-card:focus-visible, .nw-x:focus-visible, .nw-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Izgara: 3 sütun, tablette 2, telefonda 1 */
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; perspective: 1400px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1000px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 640px) { .nw-grid { grid-template-columns: 1fr; gap: 18px; } }
.nw-grid > li { display: flex; }
.nw-grid > li.nw-hide { display: none; }
.nw-card { position: relative; flex: 1; display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 0; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(30, 20, 35, .04), 0 18px 40px -28px rgba(60, 20, 40, .35);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s, border-color .4s; will-change: transform; }
.nw-card.is-tilt { transition: transform .08s linear, box-shadow .4s, border-color .4s; }
.nw-card:hover { border-color: var(--gold-line); box-shadow: 0 1px 2px rgba(30, 20, 35, .04), 0 30px 60px -30px rgba(163, 33, 74, .45); }
.nw-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .35), transparent 45%); }
.nw-card:hover::after { opacity: 1; }
/* altın üst çizgi: üzerine gelince soldan dolar */
.nw-card::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nw-card:hover::before { transform: scaleX(1); }

/* Medya yuvası: üç türde de aynı yer, aynı oran (dikdörtgen) */
.nw-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #2a1730, #170d1a); }
.nw-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); transition: transform 1.1s var(--ease); }
.nw-card:hover .nw-media img { transform: scale(1.07); }
.nw-card .nw-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 11, 21, .45)); }
.nw-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(231, 183, 95, .55); }
.nw-ph svg { width: 52px; height: 52px; }
.nw-badge { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(18, 11, 21, .6); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); color: #fff; }
.nw-badge svg { width: 14px; height: 14px; }
.nw-pin { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; font-size: .72rem; background: rgba(231, 183, 95, .95); color: #2a1a08; }
.nw-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(10px); color: #fff; transition: transform .4s var(--ease), background .3s; }
.nw-play svg { width: 22px; height: 22px; margin-left: 3px; }
.nw-card:hover .nw-play { transform: scale(1.1); background: rgba(163, 33, 74, .9); }
.nw-wave { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; height: 28px; display: flex; align-items: flex-end; gap: 3px; }
.nw-wave i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, #f3d79b, rgba(231, 183, 95, .4)); height: var(--h, 40%); transform-origin: bottom; animation: nwWave 1.4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); animation-play-state: paused; }
.nw-card:hover .nw-wave i { animation-play-state: running; }
@keyframes nwWave { to { transform: scaleY(.35); } }

.nw-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.nw-meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.nw-tag { color: var(--gold-deep); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.nw-meta .nw-tag + time::before { content: "·"; margin-right: 10px; opacity: .6; }
.nw-card h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 1.3rem; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .9rem; font-weight: 500; }
.nw-go svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.nw-card:hover .nw-go svg { transform: translateX(4px); }

.nw-empty, .nw-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; list-style: none; }
.nw-empty svg { width: 44px; height: 44px; color: var(--gold); }

/* Açılan detay: kartın yerinden büyür */
.nw-over { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: clamp(12px, 5vh, 56px) 12px; overflow-y: auto; overscroll-behavior: contain; perspective: 1600px; }
.nw-over.is-open { display: flex; }
.nw-veil { position: fixed; inset: 0; background: rgba(18, 11, 21, .6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.nw-over.is-open .nw-veil { opacity: 1; }
.nw-sheet { position: relative; width: min(860px, 100%); border-radius: 18px; overflow: hidden; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 50px 120px -30px rgba(18, 11, 21, .7); transform-origin: top left; }
.nw-sheet .nw-media { aspect-ratio: 16 / 9; }
.nw-sheet .nw-media.is-audio { aspect-ratio: auto; }
.nw-sheet .nw-media.is-audio img { aspect-ratio: 16 / 7; height: auto; }
.nw-sheet iframe, .nw-sheet video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.nw-sheet .nw-media.is-spotify { aspect-ratio: auto; background: #1e1423; }
.nw-sheet .nw-media.is-spotify iframe { height: 232px; background: transparent; }
.nw-sheet audio { display: block; width: calc(100% - 32px); margin: 14px 16px; }
.nw-x { position: absolute; z-index: 5; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(18, 11, 21, .55); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .3s; }
.nw-x:hover { transform: rotate(90deg); background: var(--accent); }
.nw-x svg { width: 18px; height: 18px; }
.nw-sheet .nw-body { padding: clamp(22px, 4vw, 40px); gap: 14px; }
.nw-sheet h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.18; margin: 0; }
.nw-summary { font-size: 1.1rem; color: var(--ink-2); line-height: 1.6; margin: 0; }
.nw-text { color: var(--ink-2); line-height: 1.75; font-size: 1.02rem; border-top: 1px solid var(--line); padding-top: 16px; }
.nw-text p { margin: 0 0 1em; }
.nw-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 20px; min-height: 44px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; }
.nw-more:hover { background: var(--accent-2); }
.nw-more svg { width: 16px; height: 16px; }
.nw-sheet .nw-fade { opacity: 0; transform: translateY(10px); }
.nw-sheet.is-in .nw-fade { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.nw-sheet.is-in .nw-fade:nth-child(2) { transition-delay: .06s; }
.nw-sheet.is-in .nw-fade:nth-child(3) { transition-delay: .12s; }
.nw-sheet.is-in .nw-fade:nth-child(4) { transition-delay: .18s; }
html.nw-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nw-wave i { animation: none; }
  .nw-card, .nw-card.is-tilt, .nw-media img, .nw-play, .nw-card::before { transition: none; transform: none; }
  .nw-sheet .nw-fade { opacity: 1; transform: none; }
}
/* Haber görselleri yatay (16:10) üretilir: kartta ve detayda kırpılmadan aynı oranda görünür */
.nw-sheet .nw-media.is-photo { aspect-ratio: 16 / 10; }
.nw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.nw-chip[aria-pressed="true"] .nw-dot { background: #fff; }
/* telefonda konu filtreleri tek satırda yana kayar */
@media (max-width: 640px) {
  .nw-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 28px; padding: 2px 16px; }
  .nw-chips::-webkit-scrollbar { display: none; }
  .nw-chip { flex: none; min-height: 40px; padding: 0 14px; }
}
