/* ============================================================
   Haberler (4.76) — panel/haberler/liste.php ve detay.php
   sayfa.css'in (yeşil bant, araç çubuğu, görselli kart) üstüne haber parçaları: son dakika şeridi,
   haber akışı, fotoğraf şeridi, kategori blokları, çok okunanlar, makale, yorumlar.
   Manşet ve haber kartları artık ortak sy-mkart; eski hb-lider / hb-kart / üst arama kalktı.
   ============================================================ */
.hb { --hb-sd: #c9302c; }
[data-tema="karanlik"] .hb { --hb-sd: #ff7a70; }
.hb-kat { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--k, var(--sy-v-yazi)) !important; text-decoration: none !important; }
[data-tema="karanlik"] .hb-kat { color: color-mix(in srgb, var(--k, #6cc08b) 45%, #fff) !important; }
.hb-kat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ry-soluk); }
.hb-meta > * + *::before { content: "·"; margin-right: 10px; color: var(--ry-cok-soluk); }
.hb-meta .hb-kat + *::before, .hb-meta .hb-sd-r + *::before { content: none; }
.hb-sd-r { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; background: var(--hb-sd); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
[data-tema="karanlik"] .hb-sd-r { background: #c9302c; }
.hb-gorsel-yer { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, var(--sy-v-zemin), color-mix(in srgb, var(--sy-v) 18%, var(--ry-yuzey))); color: var(--sy-v-yazi); }
.hb-gorsel-yer svg.ry-cizgi { width: 32px; height: 32px; opacity: .7; }

/* ── Son dakika şeridi ──────────────────────────────────── */
.hb-sd { display: flex; align-items: stretch; min-height: 52px; margin-top: 16px; overflow: hidden; background: var(--ry-yuzey); border: 1px solid var(--ry-cizgi); border-radius: 18px; }
.hb-sd-etiket { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #fde8e7; color: #c0352b; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
[data-tema="karanlik"] .hb-sd-etiket { background: #3a1a18; color: #ff8a80; }
.hb-sd-etiket i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: hb-nabiz 1.4s infinite; }
.hb-sd-kay { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.hb-sd-ic { display: flex; gap: 34px; padding-left: 20px; white-space: nowrap; animation: hb-kay var(--sure, 40s) linear infinite; }
.hb-sd:hover .hb-sd-ic, .hb-sd:focus-within .hb-sd-ic { animation-play-state: paused; }
.hb-sd-ic a { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ry-murekkep) !important; text-decoration: none !important; }
.hb-sd-ic a:hover { color: var(--hb-sd) !important; }
.hb-sd-ic time { font-weight: 800; color: var(--hb-sd); }

/* ── Haber akışı (saat çizgisi) ─────────────────────────── */
.hb-akis { background: var(--ry-yuzey); border: 1px solid var(--ry-cizgi); border-radius: 22px; padding: 4px 20px; }
.hb-satir { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; align-items: start; padding: 16px 0; }
.hb-satir + .hb-satir { border-top: 1px solid var(--ry-cizgi); }
.hb-satir-m { display: grid; gap: 6px; min-width: 0; }
.hb-satir h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.32; color: var(--ry-murekkep); }
.hb-satir h3 a { color: inherit !important; text-decoration: none !important; }
.hb-satir h3 a:hover { color: var(--sy-v-yazi) !important; }
.hb-satir p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ry-soluk); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-satir-g { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--ry-yuzey-2); }
.hb-saat { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ry-murekkep); }
@media (min-width: 768px) {
  .hb-satir { grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 18px; }
  .hb-satir-zaman { padding-top: 2px; font-size: 13px; color: var(--ry-soluk); line-height: 1.3; }
  .hb-satir-zaman b { display: block; font-size: 17px; font-weight: 800; color: var(--ry-murekkep); }
  .hb-satir-g { order: 3; }
}
@media (max-width: 767px) { .hb-satir-zaman { display: none; } .hb-satir p { display: none; } }
@media (min-width: 768px) { .hb-mobil-zaman { display: none; } }
.hb-daha { display: flex; justify-content: center; margin-top: 14px; }

.sy-etiketler .hb-sd-r { background: var(--hb-sd); color: #fff !important; }
[data-tema="karanlik"] .sy-etiketler .hb-sd-r { background: #c9302c; }

/* İlgili haberler: ortak görselli kart, daha sık ızgara */
.hb-ilgili { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hb-ilgili .sy-mkart h3 { font-size: 16px; }
.hb-ilgili .sy-mkart-govde { padding: 14px 16px 16px; gap: 8px; }
@media (max-width: 575px) { .hb-ilgili { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .hb-ilgili .sy-mkart h3 { font-size: 14.5px; } .hb-ilgili .sy-mkart-govde { padding: 12px; } .hb-boyut { display: none !important; } }

/* ── Fotoğraf şeridi ────────────────────────────────────── */
.hb-fotolar { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .hb-fotolar { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 170px); } .hb-foto.buyuk { grid-row: span 2; } }
.hb-foto { position: relative; display: block; min-height: 150px; border-radius: 20px; overflow: hidden; background: var(--ry-yuzey-2); color: #fff !important; text-decoration: none !important; isolation: isolate; }
.hb-foto.buyuk { grid-column: span 2; min-height: 220px; }
@media (min-width: 768px) { .hb-foto.buyuk { grid-column: auto; } }
.hb-foto img { position: absolute; inset: 0; z-index: -1; }
.hb-foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(6, 16, 10, .85)); }
.hb-foto > span { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 12px 14px; }
.hb-foto b { font-size: 14.5px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-foto.buyuk b { font-size: 19px; }
.hb-foto .hb-kat { color: #fff !important; }

/* ── Kategori blokları ──────────────────────────────────── */
.hb-bloklar { display: grid; gap: 16px; }
@media (min-width: 768px) { .hb-bloklar { grid-template-columns: 1fr 1fr; } }
.hb-blok { padding: 20px; background: var(--ry-yuzey); border: 1px solid var(--ry-cizgi); border-radius: 22px; min-width: 0; }
.hb-blok-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hb-blok-bas h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; color: var(--ry-murekkep); }
.hb-blok-bas h3::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--k, var(--sy-v)); }
.hb-blok-bas a { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 800; color: var(--sy-v-yazi) !important; text-decoration: none !important; }
.hb-blok-bas a svg.ry-cizgi { width: 15px; height: 15px; }
.hb-blok-ana { display: grid; gap: 8px; color: inherit !important; text-decoration: none !important; }
.hb-blok-g { display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ry-yuzey-2); }
.hb-blok-ana b { font-size: 16.5px; font-weight: 800; line-height: 1.32; color: var(--ry-murekkep); }
.hb-blok-ana:hover b { color: var(--sy-v-yazi); }
.hb-blok-ana time, .hb-mini-m time { font-size: 12.5px; color: var(--ry-soluk); }
.hb-blok-liste { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.hb-blok-liste li { border-top: 1px solid var(--ry-cizgi); }
.hb-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit !important; text-decoration: none !important; }
.hb-mini-g { flex: none; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--ry-yuzey-2); }
.hb-mini-m { display: grid; gap: 2px; min-width: 0; }
.hb-mini-m b { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ry-murekkep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-mini:hover b { color: var(--sy-v-yazi); }

/* ── Yan sütun: çok okunanlar, muhabir ──────────────────── */
.hb-populer { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: hb; }
.hb-populer li + li { border-top: 1px solid var(--ry-cizgi); }
.hb-populer a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 0; color: inherit !important; text-decoration: none !important; }
.hb-populer em { font-style: normal; font-size: 22px; font-weight: 800; line-height: 1; color: var(--sy-v-yazi); }
.hb-populer li:nth-child(n+4) em { color: var(--ry-cok-soluk); }
.hb-populer b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ry-murekkep); }
.hb-populer a:hover b { color: var(--sy-v-yazi); }
.hb-populer small { display: block; margin-top: 2px; font-size: 12px; color: var(--ry-soluk); }
.hb-muhabir-durum { font-style: normal; font-weight: 700; color: var(--r, var(--ry-soluk)); }

/* ── Makale ─────────────────────────────────────────────── */
.hb-ilerleme { position: fixed; left: 0; right: 0; top: 0; z-index: 1100; height: 3px; pointer-events: none; }
.hb-ilerleme i { display: block; width: 0; height: 100%; background: var(--ry-cay-500, #2f7a4b); transition: width .1s linear; }
.hb-bilgi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.hb-yazar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb-yazar img, .hb-yazar .ry-avatar { width: 42px; height: 42px; border-radius: 50%; }
.hb-yazar b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ry-murekkep); }
.hb-yazar small { display: block; font-size: 12.5px; color: var(--ry-soluk); }
.hb-araclar { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-arac {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--ry-cizgi); background: var(--ry-yuzey); color: var(--ry-murekkep) !important; font: 700 13.5px var(--ry-font); text-decoration: none !important; cursor: pointer;
}
.hb-arac:hover { border-color: var(--ry-soluk); }
.hb-arac.begenildi { color: #c9302c !important; border-color: #f3c6c2; background: #fdecea; }
.hb-arac.kaydedildi { color: var(--sy-v-yazi) !important; border-color: var(--sy-v-cizgi); background: var(--sy-v-zemin); }
[data-tema="karanlik"] .hb-arac.begenildi { background: rgba(255, 107, 94, .13); border-color: rgba(255, 107, 94, .3); color: #ff8a80 !important; }
.hb-arac svg { width: 16px; height: 16px; }
.hb-kapak { margin: 0; }
.hb-kapak img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.hb-kapak figcaption { padding: 10px 20px 0; font-size: 12.5px; font-style: italic; color: var(--ry-soluk); }
@media (min-width: 768px) { .hb-kapak figcaption { padding: 10px 32px 0; } }
.hb-govde { display: grid; gap: 20px; }
@media (min-width: 992px) { .hb-govde { grid-template-columns: 44px minmax(0, 1fr); gap: 24px; } }
.hb-paylas-yan { display: none; }
@media (min-width: 992px) {
  .hb-paylas-yan { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--ry-ust-h, 64px) + 20px); align-self: start; }
  .hb-paylas-yan a, .hb-paylas-yan button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ry-cizgi); background: var(--ry-yuzey); color: var(--ry-murekkep) !important; cursor: pointer; }
  .hb-paylas-yan a:hover, .hb-paylas-yan button:hover { border-color: var(--ry-soluk); }
  .hb-paylas-yan svg { width: 17px; height: 17px; }
}
.hb-metin { margin-top: 0; font-size: 17.5px; line-height: 1.78; }
.hb-metin > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font-size: 3.4em; line-height: .8; font-weight: 800; color: var(--sy-v-yazi); }
.hb-metin blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sy-v); font-size: 1.08em; font-style: italic; color: var(--ry-murekkep); }
.hb-metin figure { margin: 1.4em 0; }
.hb-metin figcaption { font-size: 13px; color: var(--ry-soluk); margin-top: 6px; }
.hb-metin-kesik { position: relative; max-height: 15em; overflow: hidden; }
.hb-metin-kesik::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7em; background: linear-gradient(to bottom, transparent, var(--ry-yuzey)); pointer-events: none; }
.hb-perde .ry-perde { margin-top: -1rem; padding: 0; }
.hb-perde .ry-perde-kutu { box-shadow: 0 18px 40px -26px rgba(14, 42, 28, .45); border-radius: 20px; }
.hb-kaynak { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ry-yuzey-2); font-size: 13.5px; color: var(--ry-metin); }
.hb-kaynak svg.ry-cizgi { width: 16px; height: 16px; margin-top: 2px; color: var(--ry-soluk); }
.hb-etiketler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hb-etiketler a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--sy-v-zemin); color: var(--sy-v-yazi) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.hb-m-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--ry-cizgi); }
.hb-m-alt > b { font-size: 13.5px; color: var(--ry-soluk); margin-right: 4px; }
.hb-m-alt .ms-auto { margin-left: auto; }

/* Önceki / sonraki */
.hb-ons { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) { .hb-ons { grid-template-columns: 1fr 1fr; } }
.hb-ons a { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--ry-yuzey); border: 1px solid var(--ry-cizgi); border-radius: 22px; color: inherit !important; text-decoration: none !important; min-width: 0; }
.hb-ons a.sag { justify-content: flex-end; text-align: right; }
.hb-ons a:hover { border-color: var(--ry-soluk); }
.hb-ons small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sy-v-yazi); }
.hb-ons b { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ry-murekkep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Yorumlar */
.hb-yorumlar h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--ry-murekkep); }
.hb-yorumlar h2 small { font-size: 14px; font-weight: 600; color: var(--ry-soluk); }
.hb-yorum-giris { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ry-yuzey-2); font-size: 14.5px; }
.hb-yorum-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.hb-yorum-form textarea { border-radius: 14px; border-color: var(--ry-cizgi); background: var(--ry-yuzey); color: var(--ry-murekkep); font-size: 15px; }
.hb-yorum-form textarea:focus { border-color: var(--sy-v); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sy-v) 15%, transparent); }
.hb-yorum > div { min-width: 0; flex: 1; }
.hb-yorum-form .ry-avatar, .hb-yorum .ry-avatar { flex: none; width: 40px; height: 40px; }
.hb-yorum { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--ry-cizgi); }
.hb-yorum-ust { display: flex; align-items: center; gap: 10px; }
.hb-yorum-ust b { font-size: 14.5px; font-weight: 800; color: var(--ry-murekkep); }
.hb-yorum-ust time { font-size: 12.5px; color: var(--ry-soluk); }
.hb-yorum p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--ry-metin); overflow-wrap: anywhere; }
.hb-yorum-bos { margin: 6px 0 0; font-size: 14px; color: var(--ry-soluk); }

@keyframes hb-kay { to { transform: translateX(-50%); } }
@keyframes hb-nabiz { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hb-sd-ic { animation: none; } .hb-sd-kay { overflow-x: auto; } .hb-sd-etiket i { animation: none; } }
@media print { .hb-ilerleme, .hb-paylas-yan, .hb-araclar, .hb-m-alt, .hb-ons, .hb-yorumlar { display: none !important; } }
