/* ==========================================================================
   BelliOlur — Rehber sayfaları: "İlgili araçlar" bloğu ve araç dönüş kartı
   Blog sayfalarının kendi değişkenlerine bağımlı değildir.
   ========================================================================== */

.ilgili-araclar {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 1.5rem;
  background: #f7fafb;
  border: 1px solid #e3e9ec;
  border-radius: 14px;
}

.ilgili-baslik h2 {
  font-size: 1.25rem;
  color: #263238;
  margin: 0 0 .35rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.ilgili-baslik h2 i { color: #00bcd4; }
.ilgili-baslik p {
  margin: 0 0 1.25rem;
  font-size: .9rem;
  color: #78909c;
}

.ilgili-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: .85rem;
}

.ilgili-kart {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .95rem 1rem;
  background: #fff;
  border: 1px solid #e3e9ec;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ilgili-kart:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(38, 50, 56, .12);
}

.ilgili-ikon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 188, 212, .12);
  color: #0097a7;
  font-size: 1rem;
}

.ilgili-metin { min-width: 0; }
.ilgili-metin strong {
  display: block;
  font-size: .95rem;
  color: #263238;
  line-height: 1.3;
  margin-bottom: .2rem;
}
.ilgili-metin small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
  color: #78909c;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .ilgili-araclar { padding: 1.25rem 1rem; border-radius: 10px; }
  .ilgili-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------- yazı başındaki küçük araç kartı */

.arac-mini-cta {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.5rem;
  padding: .8rem 1rem;
  background: linear-gradient(135deg, rgba(0, 188, 212, .10), rgba(255, 64, 129, .06));
  border: 1px solid rgba(0, 188, 212, .28);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.arac-mini-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 188, 212, .55);
  box-shadow: 0 8px 18px rgba(0, 150, 136, .14);
}

.arac-mini-cta .mini-ikon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #00bcd4, #009688);
  color: #fff;
  font-size: .9rem;
}

.arac-mini-cta .mini-metin { min-width: 0; flex: 1; }
.arac-mini-cta .mini-metin strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: #263238;
  line-height: 1.3;
}
.arac-mini-cta .mini-metin small {
  display: block;
  font-size: .78rem;
  color: #607d8b;
  line-height: 1.35;
  margin-top: 1px;
}

.arac-mini-cta .mini-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 20px;
  background: #00bcd4;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0, 188, 212, .3);
}
.arac-mini-cta:hover .mini-btn { background: #0097a7; }

@media (max-width: 640px) {
  .arac-mini-cta { flex-wrap: wrap; gap: .7rem; padding: .8rem; }
  .arac-mini-cta .mini-metin { flex-basis: calc(100% - 44px); }
  .arac-mini-cta .mini-btn { flex-basis: 100%; justify-content: center; }
}

/* ==================================================== rehber başlık/altbilgi =
   Rehber sayfaları araç sayfalarıyla AYNI işlevleri taşır (kategori menüsü,
   arama, sık kullanılanlar, rastgele keşif) ama renkle ayrışır:
   araçlar turkuaz, rehberler kehribar.                                    */
:root {
  --rehber: #f59e0b;
  --rehber-koyu: #b45309;
  --rehber-acik: #fef3c7;
  --rehber-yumusak: #fffbeb;
}

header.site-header.rehber-header {
  background: var(--rehber-yumusak);
  border-bottom: 2px solid var(--rehber);
}
.rehber-header .nav-container {
  max-width: 1280px; gap: 12px; flex-wrap: nowrap;
}
.rehber-header .brand { color: var(--rehber-koyu); flex-shrink: 0; }
.rehber-header .brand i { color: var(--rehber); }

.rehber-rozet {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 5px 13px; border-radius: 20px; text-decoration: none;
  background: var(--rehber); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.rehber-rozet:hover { background: var(--rehber-koyu); transform: translateY(-1px); }

.rehber-nav {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; min-width: 0;
}

.rehber-nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 0; border-radius: 20px; cursor: pointer;
  background: transparent; color: var(--text-dark);
  font: inherit; font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.rehber-nav-btn:hover { background: var(--rehber-acik); color: var(--rehber-koyu); }
.rehber-nav-btn i { font-size: .72rem; }
.rehber-dd { position: relative; }
.rehber-dd.acik .rehber-ok { transform: rotate(180deg); }
.rehber-ok { transition: transform .25s ease; }

.rehber-panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 1200;
  width: min(88vw, 620px); display: none;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 6px; padding: 14px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  max-height: min(74vh, 560px); overflow-y: auto;
}
.rehber-dd.acik .rehber-panel { display: grid; }
.rehber-panel-kart {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: background .18s ease;
}
.rehber-panel-kart:hover { background: var(--rehber-yumusak); }
.rehber-panel-ikon {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 9px; font-size: .9rem;
  background: color-mix(in srgb, var(--c, #f59e0b) 14%, #fff); color: var(--c, #f59e0b);
}
.rehber-panel-metin { min-width: 0; line-height: 1.3; }
.rehber-panel-metin strong { display: block; font-size: .88rem; }
.rehber-panel-metin small { color: var(--text-muted); font-size: .75rem; }
.rehber-panel-tumu {
  grid-column: 1 / -1; margin-top: 4px; padding: 10px;
  text-align: center; border-radius: 10px; text-decoration: none;
  background: var(--rehber); color: #fff; font-weight: 600; font-size: .86rem;
}
.rehber-panel-tumu:hover { background: var(--rehber-koyu); }

.rehber-sik { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.rehber-sik-etiket { color: var(--rehber-koyu); font-size: .82rem; flex-shrink: 0; }
.rehber-sik-link {
  display: inline-flex; align-items: center; gap: 5px; max-width: 130px;
  padding: 5px 10px; border-radius: 16px; text-decoration: none;
  background: #fff; color: var(--text-dark); font-size: .78rem;
  border: 1px solid var(--rehber-acik);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .2s ease, color .2s ease;
}
.rehber-sik-link i { font-size: .68rem; color: var(--rehber); flex-shrink: 0; }
.rehber-sik-link:hover { background: var(--rehber); color: #fff; }
.rehber-sik-link:hover i { color: #fff; }

.rehber-ikon-btn {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--rehber-koyu); font-size: .92rem;
  box-shadow: var(--shadow-sm); transition: background .2s ease, color .2s ease;
}
.rehber-ikon-btn:hover { background: var(--rehber); color: #fff; }

.rehber-hesapla {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 9px 17px; border-radius: 22px; text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 150, 136, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rehber-hesapla:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(0, 150, 136, .36); }

/* Dar ekranlarda kademeli sadeleşme — başlık asla sarmalanmaz */
@media (max-width: 1180px) { .rehber-sik-link:nth-of-type(3) { display: none; } }
@media (max-width: 1040px) { .rehber-sik { display: none; } }
@media (max-width: 880px) {
  .rehber-nav-btn span { display: none; }
  .rehber-panel { width: min(92vw, 420px); }
}
@media (max-width: 620px) {
  .rehber-rozet span, .rehber-hesapla span { display: none; }
  .rehber-header .brand { font-size: 1.15rem; }
}

/* ------------------------------------------------------------ arama kutusu - */
.rehber-arama-modal {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
  padding: 12vh 16px 16px;
}
.rehber-arama-modal.acik { display: block; }
.rehber-arama-panel {
  max-width: 620px; margin: 0 auto; background: #fff;
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.rehber-arama-bas {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.rehber-arama-bas > i { color: var(--rehber); }
.rehber-arama-bas input {
  flex: 1; border: 0; outline: none; font: inherit; font-size: 1.02rem; background: transparent;
}
.rehber-arama-kapat {
  border: 0; background: transparent; cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%;
}
.rehber-arama-kapat:hover { background: var(--bg-page); }
.rehber-arama-sonuc { max-height: 56vh; overflow-y: auto; padding: 8px; }
.rehber-arama-ipucu { padding: 22px; text-align: center; color: var(--text-muted); font-size: .9rem; }
.rehber-arama-oge {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 10px; text-decoration: none; color: inherit;
}
.rehber-arama-oge:hover { background: var(--rehber-yumusak); }
.rehber-arama-oge > i { color: var(--rehber); width: 20px; text-align: center; }
.rehber-arama-oge strong { display: block; font-size: .92rem; }
.rehber-arama-oge small { color: var(--text-muted); font-size: .78rem; }

/* -------------------------------------------------------------- altbilgi --- */
.rehber-footer .footer-container {
  display: block; max-width: 1100px; margin: 0 auto; padding: 1.5rem;
}
.rf-satir {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 18px; text-align: center; font-size: .86rem; line-height: 1.7;
}
.rf-satir + .rf-satir { margin-top: 10px; }
.rf-marka { font-size: .95rem; }
.rf-marka i { color: var(--rehber); }
.rf-marka strong { color: #fff; }
.rf-oge, .rf-yasal a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #cbd5e1; text-decoration: none;
}
.rf-oge:hover, .rf-yasal a:hover { color: var(--rehber); }
.rf-yasal { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }

/* Rehber başlık/altbilgi işareti — /images/logo.svg dosyasından gelir */
.brand-mark { border-radius: 9px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.rehber-header .brand { gap: 9px; }

/* Dinî rehberlerde ilmihal / Fazilet Takvimi yönlendirmesi */
.ilmihal-yonlendirme {
  margin: 28px 0; padding: 20px 22px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a; border-radius: var(--radius);
}
.ilmihal-yonlendirme h3 {
  font-size: 1.05rem; color: #15803d; margin-bottom: 8px;
}
.ilmihal-yonlendirme p {
  color: var(--text-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 14px;
}
.ilmihal-baglantilar { display: flex; flex-wrap: wrap; gap: 8px; }
.ilmihal-baglantilar a {
  display: inline-flex; align-items: center;
  padding: 8px 15px; border-radius: 20px; text-decoration: none;
  background: #fff; border: 1px solid #bbf7d0; color: #15803d;
  font-size: .85rem; font-weight: 500; transition: all .2s ease;
}
.ilmihal-baglantilar a:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
