/* ============================================================
   UMH-97 — Modern Haber Portalı Katmanı
   style.css ve umh97-custom-fixes.css'ten SONRA yüklenir; renkler
   panelden gelen CSS değişkenleriyle (--c-primary vb.) uyumludur.
   ============================================================ */

:root {
  --pt-radius: 10px;
  --pt-ink: #0f172a;
  --pt-line: #e5e7eb;
  --pt-headline-h: clamp(300px, 34vw, 470px);
}

body { background: var(--c-bg); color: var(--c-text); -webkit-font-smoothing: antialiased; }

/* ── ÜST BAR ─────────────────────────────────────────── */
.umh-topbar { background: var(--pt-ink); font-size: 12px; }
.umh-ticker__tag { background: var(--c-primary); font-weight: 800; letter-spacing: .06em; border-radius: 4px; }

/* ── LOGO ŞERİDİ ─────────────────────────────────────── */
.umh-logostrip { background: var(--c-surface); border-bottom: 1px solid var(--pt-line); }

/* ── ANA MENÜ: yapışkan, marka renginde ─────────────── */
.umh-nav-wrap {
  position: sticky; top: 0; z-index: 900;
  background: var(--c-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
body.admin-bar .umh-nav-wrap { top: 32px; }
@media (max-width: 782px) { body.admin-bar .umh-nav-wrap { top: 46px; } }
.umh-nav-wrap .umh-nav__list > .umh-nav__item > a {
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
}
.umh-nav-wrap .umh-nav__list > .umh-nav__item > a:hover,
.umh-nav-wrap .umh-nav__list > .umh-nav__item > a[aria-current="page"] {
  background: rgba(0,0,0,.18); color: #fff;
}
.umh-nav-wrap .umh-infobar-nav { color: rgba(255,255,255,.92); }

/* ── MANŞET ALANI ────────────────────────────────────── */
.umh-headline {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.umh-headline__main { min-width: 0; }
.umh-headline .umh-slider.umh-slider--home { margin: 0; height: var(--pt-headline-h); border-radius: var(--pt-radius); box-shadow: none; }
.umh-headline .umh-slider--home .umh-slide__img-wrap { height: var(--pt-headline-h); }
.umh-headline .umh-slide__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.umh-headline .umh-slide__overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.umh-headline .umh-slide__title { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
/* Başlık görselin üzerinde, alt kısımda (orijinal temada görselin altındaydı) */
.umh-headline .umh-slide { position: relative; height: var(--pt-headline-h); }
.umh-headline .umh-slide__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.umh-headline .umh-slider--home .umh-slide__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 22px 24px 48px; background: none; color: #fff; border: 0; box-shadow: none;
}
.umh-headline .umh-slide__body::before, .umh-headline .umh-slide__body::after { display: none; }
@media (max-width: 640px) {
  .umh-headline .umh-slider__btn { display: none; }
  .umh-headline .umh-slider--home .umh-slide__body { padding: 16px 16px 44px; }
}
.umh-headline .umh-slide__title a { color: #fff; }
.umh-headline .umh-slide__meta { color: rgba(255,255,255,.8); }
.umh-headline .umh-slide__cat {
  display: inline-block; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
}

.umh-headline__side {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 12px; height: var(--pt-headline-h);
}
.umh-hcard {
  position: relative; overflow: hidden; border-radius: var(--pt-radius);
  background: linear-gradient(135deg, var(--c-secondary), #334155);
  min-height: 0;
}
.umh-hcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.umh-hcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.umh-hcard:hover .umh-hcard__img { transform: scale(1.05); }
.umh-hcard__link { position: absolute; inset: 0; z-index: 3; }
.umh-hcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px; }
.umh-hcard__cat {
  display: inline-block; background: var(--c-primary); color: #fff; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; margin-bottom: 6px;
}
.umh-hcard__title {
  margin: 0; color: #fff; font-size: 14px; line-height: 1.3; font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 900px) {
  .umh-headline { grid-template-columns: 1fr; }
  .umh-headline__side { height: auto; grid-template-rows: none; }
  .umh-hcard { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  :root { --pt-headline-h: 260px; }
  /* Mobilde sürmanşet yatay kaydırılır */
  .umh-headline__side {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin: 0 calc(-1 * var(--container-px)); padding: 0 var(--container-px) 4px;
    scrollbar-width: none;
  }
  .umh-headline__side::-webkit-scrollbar { display: none; }
  .umh-hcard { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ── BÖLÜM BAŞLIKLARI ───────────────────────────────── */
.umh-sec-title {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--pt-line); margin-bottom: 14px; padding: 0;
  background: none;
}
.umh-sec-title__text {
  position: relative; display: inline-block; padding: 0 0 8px; margin-bottom: -2px;
  font-family: var(--f-heading); font-size: 19px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; color: var(--c-heading);
  border-bottom: 2px solid var(--c-primary); background: none;
}
.umh-sec-title__text::before, .umh-sec-title__text::after { display: none; }
.umh-sec-title__more { font-size: 12px; font-weight: 700; color: var(--c-primary); text-decoration: none; padding-bottom: 8px; }
.umh-sec-title__more:hover { text-decoration: underline; }
.umh-news-section { margin-bottom: 28px; }

/* ── HABER KARTI ────────────────────────────────────── */
.umh-card {
  background: var(--c-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius);
  overflow: hidden; box-shadow: none; transition: box-shadow .2s ease, transform .2s ease;
}
.umh-card:hover { box-shadow: 0 10px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.umh-card__thumb-inner { aspect-ratio: 16 / 9; height: auto; }
.umh-card__thumb-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.umh-card:hover .umh-card__thumb-inner img { transform: scale(1.04); }
.umh-card__cat {
  background: var(--c-primary); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; border-radius: 3px; padding: 2px 7px;
}
.umh-card__body { padding: 12px 14px 14px; }
.umh-card__title { font-size: 16px; line-height: 1.32; font-weight: 800; margin: 0 0 6px; }
.umh-card__title a {
  color: var(--c-heading);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.umh-card__title a:hover { color: var(--c-primary); }
.umh-card__excerpt {
  font-size: 13px; color: var(--c-text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.umh-card__meta { font-size: 11px; color: var(--c-text-light); gap: 10px; }

/* İlgili haberler: hover efekti (önceden satır içi onmouseover ile, CSP engelliyordu) */
.umh-related__item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-2px); }
.umh-related__item:hover img { transform: scale(1.06); }

/* Liste kartı */
.umh-list-card { background: var(--c-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); overflow: hidden; }

/* ── SİDEBAR ────────────────────────────────────────── */
.umh-widget { background: var(--c-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); box-shadow: none; overflow: hidden; }
.umh-widget__title {
  font-family: var(--f-heading); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: var(--c-heading); background: var(--c-surface); padding: 12px 14px 10px;
  border-bottom: 2px solid var(--pt-line); box-shadow: inset 4px 0 0 var(--c-primary);
}
.umh-mini-card__num { font-family: var(--f-heading); font-weight: 800; }

/* ── DAHA FAZLA YÜKLE ───────────────────────────────── */
.umh-load-more-wrap .umh-btn--outline {
  border: 2px solid var(--c-primary); color: var(--c-primary); background: transparent; font-weight: 800;
  border-radius: 999px; padding: 10px 26px;
}
.umh-load-more-wrap .umh-btn--outline:hover { background: var(--c-primary); color: #fff; }

/* ── TEKİL HABER: okunabilirlik ─────────────────────── */
.single .umh-entry { font-size: 18px; line-height: 1.75; color: var(--c-text); }
.single .umh-entry p { margin: 0 0 1.15em; }
.single .umh-entry h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.single .umh-entry h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.single .umh-entry blockquote { border-left: 4px solid var(--c-primary); margin: 1.4em 0; padding: .2em 0 .2em 1em; font-size: 1.08em; font-style: italic; color: var(--c-heading); }
.single .umh-entry img { border-radius: 8px; }
.single .umh-entry iframe { max-width: 100%; }

/* ── KOYU MOD ───────────────────────────────────────── */
body.dark-mode { --pt-line: rgba(255,255,255,.08); }
body.dark-mode .umh-logostrip { background: var(--c-surface); }

@media (prefers-reduced-motion: reduce) {
  .umh-card, .umh-card__thumb-inner img, .umh-hcard__img { transition: none; }
}
