/* ===========================================================================
   IT Fix Yayınlar — ön yüz modülü
   v31 tasarım sistemini (ifx-v31-*) temel alır; tokenlar tema CSS'inden gelir.

   ÖNEMLİ: Tema `body.ifx-v31-on h1..h5{color/margin}`, `body.ifx-v31-on p{margin:0}`
   ve `body.ifx-v31-on a{color:inherit}` gibi (0,1,2) özgüllükte GLOBAL reset
   kuralları içerir. Bu modülün başlık/paragraf/link renk ve boşlukları bu
   resetlerin ÜSTÜNDE kalmalıdır; bu yüzden tüm kurallar `body.ifx-v31-on`
   ile aynı şekilde scope'lanır (kalıcı özgüllük çözümü — !important yok).
   Scope sadece .ifxy-* bileşenlerini hedefler; sitenin diğer butonlarını etkilemez.
   =========================================================================== */
:root {
  --ifxy-ink:    var(--ifx31-ink, #0F172A);
  --ifxy-slate:  var(--ifx31-slate, #334155);
  --ifxy-muted:  var(--ifx31-muted, #64748B);
  --ifxy-line:   var(--ifx31-line, #E2E8F0);
  --ifxy-paper:  var(--ifx31-paper, #F8FAFC);
  --ifxy-cream:  var(--ifx31-cream, #F1F5F9);
  --ifxy-teal:   var(--ifx31-primary, #0F766E);
  --ifxy-teal-d: var(--ifx31-primary-strong, #0B5E57);
  --ifxy-accent: var(--ifx31-accent, #D98A24);
  --ifxy-card:   #ffffff;
}

/* ---------- WRAP / HERO ortak ---------- */
body.ifx-v31-on .ifxy-wrap { max-width:1180px; margin:0 auto; padding:0 22px; }

body.ifx-v31-on .ifxy-hero {
  background:linear-gradient(180deg, var(--ifxy-paper) 0%, #fff 100%);
  border-bottom:1px solid var(--ifxy-line);
  padding:54px 0 38px;
}
body.ifx-v31-on .ifxy-crumb {
  font-size:13px; color:var(--ifxy-muted); margin-bottom:14px;
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
}
body.ifx-v31-on .ifxy-crumb a { color:var(--ifxy-slate); text-decoration:none; }
body.ifx-v31-on .ifxy-crumb a:hover { color:var(--ifxy-teal); }
body.ifx-v31-on .ifxy-crumb span { color:var(--ifxy-line); }
body.ifx-v31-on .ifxy-crumb strong { color:var(--ifxy-ink); font-weight:600; }

body.ifx-v31-on .ifxy-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ifxy-teal); margin-bottom:10px;
}
body.ifx-v31-on .ifxy-eyebrow i { width:22px; height:2px; background:var(--ifxy-accent); display:inline-block; }

body.ifx-v31-on .ifxy-hero h1 { font-size:clamp(28px,4vw,42px); line-height:1.12; color:var(--ifxy-ink); margin:0 0 12px; letter-spacing:-.02em; }
body.ifx-v31-on .ifxy-hero h1 em { font-style:normal; color:var(--ifxy-accent); background:none; -webkit-text-fill-color:currentColor; }
body.ifx-v31-on .ifxy-hero p { font-size:17px; color:var(--ifxy-slate); max-width:680px; margin:0; line-height:1.65; }

/* ---------- ARŞİV: filtre + grid ---------- */
body.ifx-v31-on .ifxy-archive { padding:42px 0 64px; background:#fff; }

body.ifx-v31-on .ifxy-filters { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 30px; }
body.ifx-v31-on .ifxy-filters a {
  font-size:13.5px; font-weight:600; color:var(--ifxy-slate);
  border:1px solid var(--ifxy-line); border-radius:999px; padding:8px 16px;
  text-decoration:none; background:#fff; transition:.15s;
}
body.ifx-v31-on .ifxy-filters a:hover { border-color:var(--ifxy-teal); color:var(--ifxy-teal); }
body.ifx-v31-on .ifxy-filters a.is-active { background:var(--ifxy-teal); border-color:var(--ifxy-teal); color:#fff; }

body.ifx-v31-on .ifxy-grid {
  display:grid; gap:24px;
  grid-template-columns:repeat(auto-fill, minmax(330px, 1fr));
}

body.ifx-v31-on .ifxy-card {
  display:flex; flex-direction:column; background:var(--ifxy-card);
  border:1px solid var(--ifxy-line); border-radius:14px; overflow:hidden;
  transition:transform .2s, box-shadow .2s, border-color .2s; height:100%;
}
body.ifx-v31-on .ifxy-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(15,23,42,.10); border-color:#cdd7e3; }
body.ifx-v31-on .ifxy-card-media { aspect-ratio:16/9; background:var(--ifxy-cream); overflow:hidden; display:block; }
body.ifx-v31-on .ifxy-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
body.ifx-v31-on .ifxy-card-media.is-empty {
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--ifxy-ink), var(--ifxy-teal-d));
  color:#fff; font-weight:700; letter-spacing:.04em; font-size:15px;
}
body.ifx-v31-on .ifxy-card-body { padding:20px 20px 22px; display:flex; flex-direction:column; flex:1; }
body.ifx-v31-on .ifxy-card-meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:11px; }
body.ifx-v31-on .ifxy-tag {
  font-size:11.5px; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  color:var(--ifxy-teal); background:rgba(15,118,110,.08);
  padding:4px 10px; border-radius:6px; text-decoration:none;
}
body.ifx-v31-on a.ifxy-tag:hover { background:rgba(15,118,110,.16); color:var(--ifxy-teal); }
body.ifx-v31-on .ifxy-date { font-size:12.5px; color:var(--ifxy-muted); }
body.ifx-v31-on .ifxy-card-body h2 { font-size:19px; line-height:1.3; margin:0 0 9px; color:var(--ifxy-ink); }
body.ifx-v31-on .ifxy-card-body h2 a { color:inherit; text-decoration:none; }
body.ifx-v31-on .ifxy-card-body h2 a:hover { color:var(--ifxy-teal); }
body.ifx-v31-on .ifxy-card-excerpt { font-size:14.5px; color:var(--ifxy-slate); line-height:1.6; margin:0 0 16px; flex:1; }
body.ifx-v31-on .ifxy-readmore {
  align-self:flex-start; font-size:14px; font-weight:700; color:var(--ifxy-teal);
  text-decoration:none; display:inline-flex; align-items:center; gap:7px;
}
body.ifx-v31-on .ifxy-readmore i { transition:transform .15s; font-style:normal; }
body.ifx-v31-on .ifxy-card:hover .ifxy-readmore i { transform:translateX(4px); }

body.ifx-v31-on .ifxy-empty { text-align:center; color:var(--ifxy-muted); padding:60px 0; font-size:16px; }

/* ---------- Pagination ---------- */
body.ifx-v31-on .ifxy-pagination { margin-top:38px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
body.ifx-v31-on .ifxy-pagination a, body.ifx-v31-on .ifxy-pagination span {
  min-width:40px; text-align:center; padding:9px 13px; border-radius:8px;
  border:1px solid var(--ifxy-line); color:var(--ifxy-slate); text-decoration:none; font-weight:600; font-size:14px;
}
body.ifx-v31-on .ifxy-pagination .current { background:var(--ifxy-teal); border-color:var(--ifxy-teal); color:#fff; }
body.ifx-v31-on .ifxy-pagination a:hover { border-color:var(--ifxy-teal); color:var(--ifxy-teal); }

/* ===========================================================================
   TEKİL YAYIN
   =========================================================================== */
body.ifx-v31-on .ifxy-single { background:#fff; padding:0 0 10px; }
body.ifx-v31-on .ifxy-article { max-width:820px; margin:0 auto; padding:40px 22px 10px; }

body.ifx-v31-on .ifxy-article-head h1 {
  font-size:clamp(27px,3.6vw,40px); line-height:1.15; color:var(--ifxy-ink);
  letter-spacing:-.02em; margin:8px 0 16px;
}
body.ifx-v31-on .ifxy-article-meta { display:flex; flex-wrap:wrap; gap:14px; align-items:center; color:var(--ifxy-muted); font-size:14px; margin-bottom:26px; }
body.ifx-v31-on .ifxy-article-meta .ifxy-tag { text-transform:uppercase; }

body.ifx-v31-on .ifxy-cover { margin:0 0 30px; border-radius:16px; overflow:hidden; border:1px solid var(--ifxy-line); }
body.ifx-v31-on .ifxy-cover img { width:100%; height:auto; display:block; }

/* İçerik tipografisi */
body.ifx-v31-on .ifxy-content { font-size:17px; line-height:1.75; color:var(--ifxy-slate); }
body.ifx-v31-on .ifxy-content > * { margin:0 0 1.25em; }
body.ifx-v31-on .ifxy-content > *:last-child { margin-bottom:0; }
body.ifx-v31-on .ifxy-content p { margin:0 0 1.25em; }
body.ifx-v31-on .ifxy-content h2 { font-size:25px; line-height:1.25; color:var(--ifxy-ink); margin:1.7em 0 .6em; letter-spacing:-.01em; }
body.ifx-v31-on .ifxy-content h3 { font-size:20px; color:var(--ifxy-ink); margin:1.5em 0 .5em; }
body.ifx-v31-on .ifxy-content a { color:var(--ifxy-teal); text-decoration:underline; text-underline-offset:3px; }
body.ifx-v31-on .ifxy-content a:hover { color:var(--ifxy-teal-d); }
body.ifx-v31-on .ifxy-content strong { color:var(--ifxy-ink); }
body.ifx-v31-on .ifxy-content ul, body.ifx-v31-on .ifxy-content ol { padding-left:1.3em; }
body.ifx-v31-on .ifxy-content li { margin-bottom:.5em; }
body.ifx-v31-on .ifxy-content img { max-width:100%; height:auto; border-radius:12px; }
body.ifx-v31-on .ifxy-content blockquote {
  border-left:3px solid var(--ifxy-teal); padding:4px 0 4px 20px; margin-left:0;
  color:var(--ifxy-ink); font-style:italic;
}

/* SSS */
body.ifx-v31-on .ifxy-faq { max-width:820px; margin:46px auto 0; padding:0 22px; }
body.ifx-v31-on .ifxy-faq h2 { font-size:24px; color:var(--ifxy-ink); margin:0 0 18px; }
body.ifx-v31-on .ifxy-faq details {
  border:1px solid var(--ifxy-line); border-radius:12px; padding:0; margin-bottom:12px; background:#fff; overflow:hidden;
}
body.ifx-v31-on .ifxy-faq summary {
  cursor:pointer; padding:17px 20px; font-weight:650; color:var(--ifxy-ink); font-size:16px;
  list-style:none; display:flex; justify-content:space-between; gap:14px; align-items:center;
}
body.ifx-v31-on .ifxy-faq summary::-webkit-details-marker { display:none; }
body.ifx-v31-on .ifxy-faq summary::after { content:"+"; color:var(--ifxy-teal); font-size:22px; font-weight:400; line-height:1; }
body.ifx-v31-on .ifxy-faq details[open] summary::after { content:"–"; }
body.ifx-v31-on .ifxy-faq details[open] summary { border-bottom:1px solid var(--ifxy-line); }
body.ifx-v31-on .ifxy-faq .ifxy-faq-a { padding:16px 20px; color:var(--ifxy-slate); line-height:1.7; font-size:15.5px; }
body.ifx-v31-on .ifxy-faq .ifxy-faq-a p { margin:0 0 .8em; }
body.ifx-v31-on .ifxy-faq .ifxy-faq-a p:last-child { margin-bottom:0; }

/* ===========================================================================
   CTA DÖNÜŞÜM ALANI  (üst üste binme + okunmayan başlık/buton düzeltmesi)
   - Sabit height / absolute / transform / negatif margin YOK.
   - Başlık/paragraf/buton renkleri tema resetlerinin üstünde scope'lu.
   =========================================================================== */
body.ifx-v31-on .ifxy-cta-wrap { padding:50px 0; }

body.ifx-v31-on .ifxy-cta {
  max-width:980px; margin:0 auto; border-radius:20px;
  background:linear-gradient(135deg, var(--ifxy-ink) 0%, var(--ifxy-teal-d) 100%);
  padding:44px 38px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}

/* Başlık: koyu zeminde net beyaz, alt boşluklu */
body.ifx-v31-on .ifxy-cta h2 {
  color:#ffffff;
  font-size:clamp(21px,2.6vw,30px); line-height:1.3; letter-spacing:-.01em;
  margin:0 0 12px; max-width:760px;
}

/* Açıklama: başlığın altında düzgün boşlukla */
body.ifx-v31-on .ifxy-cta p {
  color:rgba(255,255,255,.86);
  font-size:16px; line-height:1.65;
  margin:0 0 26px; max-width:620px;
}

/* Buton sırası: yatay, wrap'li, eşit yükseklik */
body.ifx-v31-on .ifxy-cta-actions {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch;
  gap:14px; width:100%;
}

body.ifx-v31-on .ifxy-cta-actions .ifxy-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:52px; padding:14px 26px;
  font-size:15px; font-weight:700; line-height:1.2; white-space:nowrap;
  border-radius:11px; border:1px solid transparent; text-decoration:none;
  transition:background .15s, color .15s, filter .15s;
}
body.ifx-v31-on .ifxy-cta-actions .ifxy-btn i { font-style:normal; }

/* Buton renkleri — her biri açık zemin/yazı kontrastı net */
body.ifx-v31-on .ifxy-btn-wa    { background:#25D366; color:#0b3d1f; }
body.ifx-v31-on .ifxy-btn-wa:hover  { background:#1ebe5a; color:#0b3d1f; }
body.ifx-v31-on .ifxy-btn-call  { background:#ffffff; color:var(--ifxy-ink); border-color:#ffffff; }
body.ifx-v31-on .ifxy-btn-call:hover { background:#eef2f6; color:var(--ifxy-ink); }
body.ifx-v31-on .ifxy-btn-offer { background:var(--ifxy-accent); color:#3a230a; }
body.ifx-v31-on .ifxy-btn-offer:hover { background:var(--ifxy-accent); color:#3a230a; filter:brightness(1.06); }

/* Etiketler */
body.ifx-v31-on .ifxy-tags-row { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 4px; }
body.ifx-v31-on .ifxy-tags-row a {
  font-size:13px; color:var(--ifxy-slate); text-decoration:none;
  border:1px solid var(--ifxy-line); border-radius:999px; padding:5px 13px; transition:.15s;
}
body.ifx-v31-on .ifxy-tags-row a:hover { border-color:var(--ifxy-teal); color:var(--ifxy-teal); }

/* Benzer yayınlar */
body.ifx-v31-on .ifxy-related { background:var(--ifxy-paper); border-top:1px solid var(--ifxy-line); padding:50px 0 64px; }
body.ifx-v31-on .ifxy-related h2 { font-size:24px; color:var(--ifxy-ink); margin:0 0 24px; text-align:center; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width:900px) {
  body.ifx-v31-on .ifxy-cta { padding:38px 30px; }
}

@media (max-width:600px) {
  body.ifx-v31-on .ifxy-hero { padding:38px 0 28px; }
  body.ifx-v31-on .ifxy-grid { grid-template-columns:1fr; }
  body.ifx-v31-on .ifxy-article { padding:28px 18px 8px; }
  body.ifx-v31-on .ifxy-content { font-size:16px; }

  body.ifx-v31-on .ifxy-cta { padding:30px 20px; border-radius:16px; }
  body.ifx-v31-on .ifxy-cta h2 { font-size:21px; }
  /* Mobilde butonlar alt alta, tam genişlik, taşmasız */
  body.ifx-v31-on .ifxy-cta-actions { flex-direction:column; gap:12px; }
  body.ifx-v31-on .ifxy-cta-actions .ifxy-btn { width:100%; white-space:normal; }
}

@media (max-width:360px) {
  body.ifx-v31-on .ifxy-cta { padding:26px 16px; }
  body.ifx-v31-on .ifxy-cta-actions .ifxy-btn { padding:13px 16px; font-size:14.5px; }
}
