/**
 * Nevşehir Milat — Ödül kalitesi tema cilası
 * style.css / home-pro.css sonrası yüklenir
 */

/* ── Tipografi & okunabilirlik ───────────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Masaüstü menü tek satır (önceki fix güçlendir) ─────── */
.header-4 .main-menu > .container {
  flex-wrap: nowrap;
  align-items: center;
}
.header-4 .main-menu .d-none.d-lg-block.flex-grow-1 {
  min-width: 0;
  overflow: hidden;
}
.header-4 .main-menu .d-none.d-lg-block .nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-4 .main-menu .d-none.d-lg-block .nav::-webkit-scrollbar { display: none; }
.header-4 .main-menu .nav .nav-link {
  white-space: nowrap;
}

/* ── Mobil header sıkılaştır ─────────────────────────────── */
@media (max-width: 991.98px) {
  .header-4 .main-menu {
    min-height: 96px !important;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .header-4 .main-menu .navbar-brand img,
  .flow-logo {
    max-height: 88px !important;
    width: auto !important;
  }
  .mobile-categories .list-inline-item > a {
    min-height: 42px;
    padding: 8px 14px !important;
    font-size: 13px !important;
    display: inline-flex;
    align-items: center;
  }
}

/* ── Story bar kaydırılabilir ────────────────────────────── */
.story-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-scroll::-webkit-scrollbar { display: none; }
.story-scroll::before,
.story-scroll::after {
  pointer-events: none !important;
  width: 28px !important;
}
.story-item {
  flex-shrink: 0;
}

/* ── Son dakika kartları ─────────────────────────────────── */
.sd-body h3,
.sd-body h4,
.home-page .sd-body h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  color: #1a1f26;
}
.sd-card:hover .sd-body h3,
.sd-card:hover .sd-body h4 {
  color: var(--te-color, #D10A11) !important;
}
.sd-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.sd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Mobil hero: yan manşet gizle, ana manşet kısalt ─────── */
@media (max-width: 991.98px) {
  .home-hero-side-col {
    display: none !important;
  }
  .home-page .main-headline-3 .swiper-slide,
  .home-page .main-headline-3 .swiper-slide a,
  .home-page .main-headline-3 .swiper-slide img {
    height: 260px !important;
    min-height: 260px !important;
  }
  .home-page .mh-title {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 575.98px) {
  .header-4 .main-menu {
    min-height: 88px !important;
  }
  .header-4 .main-menu .navbar-brand img,
  .flow-logo {
    max-height: 80px !important;
  }

  .home-page .main-headline-3 .swiper-slide,
  .home-page .main-headline-3 .swiper-slide a,
  .home-page .main-headline-3 .swiper-slide img {
    height: 220px !important;
    min-height: 220px !important;
  }

  /* Okunabilir manşet sayfalama */
  #mh-pagination .swiper-pagination-bullet,
  .main-headline-bottom .swiper-pagination-bullet,
  #featured-pagination .swiper-pagination-bullet {
    font-size: 12px !important;
    font-weight: 700 !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
  #mh-pagination .swiper-pagination-bullet-active,
  .main-headline-bottom .swiper-pagination-bullet-active {
    font-size: 13px !important;
  }
}

/* ── Breaking badge okunabilir ───────────────────────────── */
.breaking-badge {
  font-size: 11px !important;
  padding: 0 12px !important;
  letter-spacing: 0.06em !important;
}
.breaking-bar--story .breaking-inner,
.breaking-bar .breaking-inner {
  min-height: 42px;
}

/* ── Haber detay ─────────────────────────────────────────── */
.post-featured-fig,
.post-featured-img {
  background: #0f1419;
  overflow: hidden;
}
.post-featured-fig img,
.post-featured-img img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-article .post-title,
article .post-title,
h1.post-title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #111827;
}

.post-content,
#post-article .post-body,
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1f2937;
}
.post-content p,
.article-body p {
  margin-bottom: 1.1em;
}

@media (max-width: 575.98px) {
  .post-share-bar {
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 8px !important;
  }
  .post-share-bar .share-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .share-print {
    margin-left: 0 !important;
  }
  .article-toolbar-inner {
    gap: 8px;
  }
  .toolbar-btn,
  .toolbar-btn-action {
    min-height: 42px;
    min-width: 42px;
  }
}

.related-img-wrap {
  aspect-ratio: 16 / 9;
  height: auto !important;
  overflow: hidden;
}
.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-body h4,
.related-card-body .related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
  font-weight: 650;
}

/* ── Kategori sayfası ────────────────────────────────────── */
@media (max-width: 576px) {
  .cat-page-header .cat-header-inner > .position-relative {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .cat-header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 0 !important;
  }
  .follow-btn {
    min-height: 44px;
    padding: 10px 16px !important;
  }
}

.cat-news-card a > img,
.cat-news-card .cat-card-img {
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  display: block;
}
.cat-card-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
  line-height: 1.3;
  font-size: 0.92rem !important;
}

.cat-empty {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
}

.pagination .page-link {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination .page-item.disabled .page-link {
  pointer-events: none;
}

/* ── Footer marka rengi ──────────────────────────────────── */
#footer .fa-chevron-right,
#footer .text-danger,
.site-footer .text-danger {
  color: var(--te-color, #D10A11) !important;
}

/* ── Kart gölge / hover cilası ───────────────────────────── */
.cat-news-card,
.sd-card,
.related-card,
.np-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-news-card:hover,
.sd-card:hover,
.related-card:hover {
  box-shadow: 0 8px 24px rgba(30,30,30, 0.1);
}

/* ── main taşmayı kesmesin ───────────────────────────────── */
main.article,
main.category,
main.index,
main.home,
main {
  overflow: visible !important;
}
