/**
 * Axtea — BLOG + EXPLORE sayfaları (30 Eyl 2026)
 * blog.php · blog-detay.php · rehberler.php · rehber-detay.php · kesfet.php ·
 * sss.php · sektor-detay.php · main.css'e DOKUNULMUYOR.
 */

body:has(.ic-liste),
body:has(.ic-detay),
body:has(.kf-giris) {
  background-color: #eceefa;
}

/* --- Liste başlığı --------------------------------------------------------- */
.ic-baslik {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 60px;
  margin-bottom: 36px;
}
.ic-baslik .sec-heading,
.kf-bolum-ust .sec-heading {
  width: auto;
  max-width: 720px;
  margin: 0;
}
.ic-giris {
  max-width: 460px;
  margin: 0;
  font-size: 17px;
}
.ic-giris a {
  color: var(--tj-color-theme-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kategori çipleri */
.ic-kategoriler {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.ic-kategoriler a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 30px;
  background: #ffffff;
  color: var(--tj-color-heading-primary);
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.ic-kategoriler a small {
  color: var(--tj-color-text-body-3);
}
.ic-kategoriler a:hover,
.ic-kategoriler a[aria-current] {
  background: var(--tj-color-theme-primary);
  color: #ffffff;
}
.ic-kategoriler a[aria-current] small,
.ic-kategoriler a:hover small {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Kart ızgarası ----------------------------------------------------------- */
.ic-izgara {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ic-kart {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 40, 45, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ic-kart:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(23, 40, 45, 0.1);
}
.ic-kart-gorsel {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #17282d;
}
.ic-kart-gorsel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ic-kart:hover .ic-kart-gorsel img {
  transform: scale(1.04);
}
.ic-kart-yok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(109, 113, 217, 0.35), transparent 60%), #17282d;
}
.ic-kart-gorsel .ic-kart-yok img {
  width: 40%;
  height: auto;
  opacity: 0.5;
}
.ic-kart-govde {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 24px 24px;
}
.ic-kart-govde p {
  flex: 1 1 auto;
  margin-bottom: 16px;
  font-size: 15px;
}
.ic-meta,
.ic-detay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 12px;
  color: var(--tj-color-text-body-3);
  font-size: 13.5px;
}
.ic-meta > * + *::before,
.ic-detay-meta > * + *::before {
  content: "·";
  margin-right: 14px;
  color: var(--tj-color-border-1);
}
.ic-kategori {
  color: var(--tj-color-theme-primary);
  font-weight: 600;
}
.ic-kart-baslik {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}
.ic-kart-baslik a {
  color: var(--tj-color-heading-primary);
}
.ic-kart-baslik a:hover {
  color: var(--tj-color-theme-primary);
}
.ic-devam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--tj-color-theme-primary);
  font-weight: 600;
}
.ic-devam i {
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.ic-devam:hover i {
  transform: rotate(0);
}
/* Öne çıkan: iki sütun genişliğinde, görsel solda */
.ic-kart-buyuk {
  grid-column: span 3;
  flex-direction: row;
}
.ic-kart-buyuk .ic-kart-gorsel {
  flex: 0 0 58%;
  aspect-ratio: auto;
  min-height: 360px;
}
.ic-kart-buyuk .ic-kart-govde {
  justify-content: center;
  padding: 40px;
}
.ic-kart-buyuk .ic-kart-baslik {
  font-size: clamp(24px, 2.4vw, 34px);
}

/* Sayfalama */
.ic-sayfalama {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.ic-sayfalama a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--tj-color-heading-primary);
  font-weight: 600;
}
.ic-sayfalama a[aria-current],
.ic-sayfalama a:hover {
  background: var(--tj-color-theme-primary);
  color: #ffffff;
}

/* Boş durum */
.ic-bos {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 32px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}
.ic-bos-ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--tj-color-theme-bg);
  color: var(--tj-color-theme-primary);
  font-size: 28px;
}
.ic-bos h3 {
  margin-bottom: 10px;
}
.ic-bos-dugmeler {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* --- Detay (yazı / rehber) ------------------------------------------------- */
.ic-detay-ozet {
  margin-bottom: 26px;
  color: var(--tj-color-heading-primary);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}
.ic-detay-kapak {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 16px;
}
.ic-detay-kapak img {
  width: 100%;
  height: auto;
}
.ic-yazi {
  color: var(--tj-color-text-body);
  font-size: 17px;
  line-height: 1.8;
}
.ic-yazi > * + * {
  margin-top: 18px;
}
.ic-yazi h2,
.ic-yazi h3 {
  scroll-margin-top: 120px;
  color: var(--tj-color-heading-primary);
}
.ic-yazi h2 {
  margin-top: 42px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
}
.ic-yazi h3 {
  margin-top: 30px;
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.3;
}
.ic-yazi p {
  margin-bottom: 0;
}
.ic-yazi a {
  color: var(--tj-color-theme-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ic-yazi ul,
.ic-yazi ol {
  padding-left: 24px;
}
.ic-yazi ul {
  list-style: disc;
}
.ic-yazi ol {
  list-style: decimal;
}
.ic-yazi li + li {
  margin-top: 8px;
}
.ic-yazi li::marker {
  color: var(--tj-color-theme-primary);
}
.ic-yazi blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 18px 24px;
  border-left: 3px solid var(--tj-color-theme-primary);
  border-radius: 0 12px 12px 0;
  background: #ffffff;
  color: var(--tj-color-heading-primary);
  font-size: 19px;
}
.ic-yazi figure {
  margin: 30px 0;
}
.ic-yazi img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.ic-yazi figcaption {
  margin-top: 8px;
  color: var(--tj-color-text-body-3);
  font-size: 14px;
  text-align: center;
}
.ic-yazi hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--tj-color-border-1);
}
.ic-yazi table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
}
.ic-yazi th,
.ic-yazi td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tj-color-border-1);
  text-align: left;
}
.ic-yazi th {
  background: #474695;
  color: #ffffff;
}
.ic-guncelleme {
  margin-top: 36px;
  color: var(--tj-color-text-body-3);
  font-size: 14px;
}

/* Yan sütun */
.ic-yan {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
}
.ic-yan > * {
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
}
.ic-yan-baslik {
  display: block;
  margin-bottom: 12px;
  color: var(--tj-color-heading-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ic-icindekiler ol {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.ic-icindekiler li a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--tj-color-border-1);
  color: var(--tj-color-text-body);
  font-size: 14.5px;
  line-height: 1.4;
}
.ic-icindekiler li.sev-3 a {
  padding-left: 24px;
  font-size: 14px;
}
.ic-icindekiler li a:hover,
.ic-icindekiler li a.aktif {
  border-color: var(--tj-color-theme-primary);
  color: var(--tj-color-theme-primary);
}
.ic-paylas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ic-paylas .ic-yan-baslik {
  width: 100%;
}
.ic-paylas a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tj-color-theme-bg);
  color: var(--tj-color-heading-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.ic-paylas a:hover {
  background: var(--tj-color-theme-primary);
  color: #ffffff;
}
.ic-yan > .ic-yan-cta {
  background: #17282d;
  color: rgba(255, 255, 255, 0.75);
}
.ic-yan-cta .ic-yan-baslik {
  color: #ffffff;
}
.ic-yan-cta p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

/* --- Explore ana sayfa --------------------------------------------------------- */
.kf-gecis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.kf-gecis-kart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--tj-color-text-body);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kf-gecis-kart:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 40, 45, 0.1);
}
.kf-gecis-ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: linear-gradient(-45deg, rgba(30, 138, 138, 0.25) 0%, rgba(30, 138, 138, 0) 50%, rgba(109, 113, 217, 0.3) 100%);
  color: var(--tj-color-theme-primary);
  font-size: 24px;
}
.kf-gecis-ad {
  color: var(--tj-color-heading-primary);
  font-size: 22px;
  font-weight: 600;
}
.kf-gecis-metin {
  flex: 1 1 auto;
  font-size: 15px;
}
.kf-gecis-sayi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--tj-color-theme-primary);
  font-size: 14px;
  font-weight: 600;
}
.kf-bolum-ust {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 30px;
  margin-bottom: 30px;
}
.kf-tur-izgara {
  display: grid;
  /* Kart sayısına göre kendiliğinden bölünür: 4 grup → masaüstünde 4 yan yana (3+1 kalmasın) */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
/* Sektör sayfası (sektor-detay.php): makine sayısı 6/3 olduğunda satırlar dolu kalsın */
@media only screen and (min-width: 992px) {
  .ic-liste .kf-tur-izgara {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.kf-tur {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kf-tur:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 40, 45, 0.1);
}
.kf-tur-gorsel {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 12 / 7;
  background: #f6f7fc;
}
.kf-tur-gorsel img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
}
.kf-tur-govde {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 70px 22px 22px;
}
.kf-tur-govde b {
  color: var(--tj-color-heading-primary);
  font-size: 20px;
  font-weight: 600;
}
.kf-tur-govde span {
  color: var(--tj-color-text-body-3);
  font-size: 14px;
}
.kf-tur-ok {
  position: absolute;
  right: 20px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tj-color-theme-primary);
  color: #ffffff;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.kf-tur:hover .kf-tur-ok {
  transform: rotate(0);
}
.kf-sektorler {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kf-sektor {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 56px 20px 22px;
  border-radius: 14px;
  background: #ffffff;
}
.kf-ornek {
  border: 1.5px dashed rgba(109, 113, 217, 0.55);
  background: transparent;
}
.kf-ornek b,
.kf-ornek span {
  color: #5a5fb8;
}
.kf-ornek-not {
  margin-top: 16px;
  color: #5a5fb8;
  font-size: 14px;
}
.kf-sektor b {
  color: var(--tj-color-heading-primary);
  font-size: 18px;
}
.kf-sektor span {
  color: var(--tj-color-text-body-3);
  font-size: 14px;
}
.kf-sektor i {
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--tj-color-theme-primary);
  transform: translateY(-50%) rotate(-45deg);
}
/* --- SSS (Explore + /explore/faq) ------------------------------------------ */
.sss-liste {
  display: grid;
  gap: 12px;
}
.sss-kategori {
  margin: 36px 0 16px;
  font-size: 22px;
}
.sss-kategori:first-child {
  margin-top: 0;
}
.sss-oge {
  border-radius: 14px;
  background: #ffffff;
}
.sss-oge summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  color: var(--tj-color-heading-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.sss-oge summary::-webkit-details-marker {
  display: none;
}
.sss-oge summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tj-color-theme-bg);
  color: var(--tj-color-theme-primary);
  font-size: 20px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.sss-oge[open] summary::after {
  background: var(--tj-color-theme-primary);
  color: #ffffff;
  transform: translateY(-50%) rotate(45deg);
}
.sss-cevap {
  padding: 0 24px 22px;
  line-height: 1.7;
}

/* --- Duyarlı ------------------------------------------------------------------ */
/* Explore hızlı geçiş 3 kart: tablette de 3 yan yana (2+1 kalmasın), telefonda alt alta */
@media only screen and (max-width: 991px) {
  .ic-izgara,
  .kf-sektorler {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ic-kart-buyuk {
    grid-column: span 2;
    flex-direction: column;
  }
  .ic-kart-buyuk .ic-kart-gorsel {
    flex-basis: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .ic-kart-buyuk .ic-kart-govde {
    padding: 26px;
  }
  .ic-yan {
    position: static;
  }
}
@media only screen and (max-width: 575px) {
  .ic-izgara,
  .kf-tur-izgara,
  .kf-sektorler,
  .kf-gecis {
    grid-template-columns: 1fr;
  }
  .ic-kart-buyuk {
    grid-column: auto;
  }
  .ic-yazi {
    font-size: 16px;
  }
}

/* --- Telefon düzeni (30 Eyl 2026 mobil denetim) ---------------------------
 * · Kart meta satırı dar ekranda kırılınca alt satır "·" ile başlıyordu →
 *   kategori kendi satırında, tarih · okuma süresi alt satırda.
 * · Explore hızlı geçiş kartları alt alta ~200px boş kutulardı → ikon solda,
 *   metin sağda kompakt satır. */
@media only screen and (max-width: 575px) {
  .ic-meta .ic-kategori {
    flex-basis: 100%;
  }
  .kf-gecis {
    gap: 12px;
  }
  .kf-gecis-kart {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    padding: 18px 18px;
  }
  .kf-gecis-ikon {
    grid-row: 1 / span 3;
    width: 52px;
    height: 52px;
    margin: 0;
    align-self: start;
    font-size: 22px;
  }
}
/* Yazı sayfası: meta satırı aynı kural; içindekiler telefonda/tablette yazının
 * SONUNA düşüyordu (yan sütun alta iner) → orada işe yaramadığı için gizli. */
@media only screen and (max-width: 575px) {
  .ic-detay-meta .ic-kategori {
    flex-basis: 100%;
  }
  /* telefonda nokta ayraç yok (satır başına düşüyordu); öğeler boşlukla ayrılır */
  .ic-meta > * + *::before,
  .ic-detay-meta > * + *::before {
    content: none;
    margin: 0;
  }
  .ic-meta,
  .ic-detay-meta {
    gap: 2px 16px;
  }
}
@media only screen and (max-width: 991px) {
  .ic-icindekiler {
    display: none;
  }
}

/* --- Tablet (576–991px) 2 sütunlu ızgaralar (30 Eyl tablet denetimi) -------
 * Tek sayıda öğede son kart solda yalnız kalıp sağı boş kalıyordu (Explore:
 * 3 rehber, 3 sektör). Tek kalan son öğe tam genişlik; içerik kartı yatay
 * (görsel solda, metin sağda). Meta satırındaki nokta ayraç tablet kartlarında
 * da satır başına düşüyordu → telefondaki gibi noktasız. */
@media only screen and (min-width: 576px) and (max-width: 991px) {
  .ic-izgara > .ic-kart:last-child:nth-child(odd):not(.ic-kart-buyuk),
  .kf-sektorler > :last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
  .ic-izgara > .ic-kart:last-child:nth-child(odd):not(.ic-kart-buyuk) {
    flex-direction: row;
  }
  .ic-izgara > .ic-kart:last-child:nth-child(odd):not(.ic-kart-buyuk) .ic-kart-gorsel {
    flex: 0 0 48%;
    aspect-ratio: auto;
    min-height: 240px;
  }
  .kf-sektorler {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
  .ic-meta > * + *::before,
  .ic-detay-meta > * + *::before {
    content: none;
    margin: 0;
  }
  .ic-meta,
  .ic-detay-meta {
    gap: 2px 16px;
  }
}

@media only screen and (max-width: 767px) {
  .ic-liste .kf-tur-izgara {
    gap: 12px;
    grid-auto-rows: 1fr;
  }
  .ic-liste .kf-tur {
    flex-direction: row;
    align-items: center;
  }
  .ic-liste .kf-tur-gorsel {
    flex: 0 0 120px;
    width: 120px;
  }
  .ic-liste .kf-tur-gorsel img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }
  .ic-liste .kf-tur-govde {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 60px 12px 14px;
  }
  .ic-liste .kf-tur-govde b {
    font-size: 17px;
  }
  .ic-liste .kf-tur-govde span {
    font-size: 13px;
  }
  .ic-liste .kf-tur-ok {
    top: 50%;
    bottom: auto;
    right: 14px;
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
  .ic-liste .kf-tur-izgara {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 575px) {
  .kf-sektorler {
    grid-auto-rows: 1fr;
  }
}
