/* ============================================================
   indietr.com.tr — Özel Tema CSS
   DW Panel v2 üzerine eklenir (app.css'den sonra yüklenir)
   /assets/css/indietr.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --idt-bg:        #f7f6f3;
  --idt-bg-off:    #eeecea;
  --idt-white:     #ffffff;
  --idt-ink:       #111110;
  --idt-ink-soft:  #2c2b28;
  --idt-muted:     #737068;
  --idt-line:      #dddbd6;
  --idt-red:       #c13f2b;
  --idt-gold:      #b8860b;
  --idt-green:     #2d6a4f;
  --font-h:        'Syne', sans-serif;
  --font-b:        'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { font-family: var(--font-b); background: var(--idt-bg); color: var(--idt-ink); }
h1,h2,h3,h4,h5 { font-family: var(--font-h); letter-spacing: -.02em; }
img { max-width: 100%; }

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.idt-topbar {
  background: var(--idt-ink); padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.idt-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; color: rgba(255,255,255,.45); letter-spacing: .02em;
}
.idt-topbar-inner a { color: rgba(255,255,255,.6); margin-left: 1.25rem; text-decoration: none; }
.idt-topbar-inner a:hover { color: #fff; }

/* ══════════════════════════════════════════
   BUTONLAR
══════════════════════════════════════════ */
.idt-btn {
  display: inline-flex; align-items: center; padding: .45rem 1.1rem;
  font-family: var(--font-b); font-size: .82rem; font-weight: 600;
  cursor: pointer; border: none; border-radius: 5px; transition: all .12s;
  text-decoration: none;
}
.idt-btn-outline { background: transparent; color: var(--idt-ink); border: 1.5px solid var(--idt-line); }
.idt-btn-outline:hover { border-color: var(--idt-ink); }
.idt-btn-dark { background: var(--idt-ink); color: #fff; }
.idt-btn-dark:hover { background: var(--idt-ink-soft); }
.idt-btn-red {
  display: inline-block;
  background: var(--idt-red); color: #fff; padding: .65rem 1.5rem;
  font-size: .875rem; border-radius: 5px; font-weight: 600; text-decoration: none;
}
.idt-btn-red:hover { opacity: .88; }

/* ══════════════════════════════════════════
   HERO SLİDER (Sabit Tanıtım Slaytları)
══════════════════════════════════════════ */
.idt-slider {
  position: relative; overflow: hidden;
  background: var(--idt-ink);
  min-height: 380px;
}
.idt-slider-track {
  display: flex; height: 100%;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
}
.idt-slide {
  min-width: 100%; position: relative;
  display: flex; align-items: center;
}
.idt-slide-static {
  background: var(--idt-ink);
  min-height: 380px;
}
.idt-slide-glow {
  position: absolute; inset: 0; pointer-events: none;
}
.idt-slide-content {
  position: relative; z-index: 2;
  padding: 3.5rem 0 4rem;
  width: 100%;
  color: #fff;
}
.idt-slide-icon {
  width: 100px; height: 100px; border-radius: 20px;
  border: 1px solid; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.idt-slide-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.idt-slide-eyebrow span {
  display: inline-block; width: 20px; height: 1.5px; background: currentColor;
}
.idt-slide-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.12;
  margin-bottom: .8rem; max-width: 720px; color: #fff;
}
.idt-slide-desc {
  font-size: .95rem; color: rgba(255,255,255,.65); max-width: 580px;
  line-height: 1.75; margin-bottom: 1.6rem;
}

/* Ok butonları */
.idt-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: background .15s;
  font-size: 1.4rem; line-height: 1; backdrop-filter: blur(4px);
}
.idt-slider-arrow:hover { background: rgba(255,255,255,.2); }
.idt-slider-arrow.prev { left: 1.5rem; }
.idt-slider-arrow.next { right: 1.5rem; }

/* Nokta navigasyonu */
.idt-slider-dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: .5rem;
}
.idt-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none; cursor: pointer;
  transition: all .2s; padding: 0;
}
.idt-slider-dot.active { background: var(--idt-red); width: 22px; border-radius: 4px; }

/* İstatistik çubuğu */
.idt-stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--idt-ink); border-top: 1px solid rgba(255,255,255,.07);
}
.idt-hstat { padding: 1.4rem 2rem; border-right: 1px solid rgba(255,255,255,.07); }
.idt-hstat:last-child { border-right: none; }
.idt-hstat-n { font-family: var(--font-h); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.idt-hstat-l { font-size: .7rem; color: rgba(255,255,255,.35); margin-top: .3rem; text-transform: uppercase; letter-spacing: .06em; }

/* ══════════════════════════════════════════
   BÖLÜMLER
══════════════════════════════════════════ */
.idt-section { padding: 4rem 0; }
.idt-section-alt { background: var(--idt-bg-off); }
.idt-sec-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--idt-line);
  gap: 1rem;
}
.idt-sec-title { font-size: 1.35rem; font-weight: 700; }
.idt-sec-kicker {
  font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  color: var(--idt-red); text-transform: uppercase; margin-bottom: .4rem;
}
.idt-sec-link { font-size: .78rem; font-weight: 600; color: var(--idt-muted); text-decoration: none; white-space: nowrap; }
.idt-sec-link:hover { color: var(--idt-red); }

/* ══════════════════════════════════════════
   KARTLAR
══════════════════════════════════════════ */
.idt-card {
  background: var(--idt-white); border: 1px solid var(--idt-line);
  border-radius: 8px; overflow: hidden; transition: box-shadow .15s;
  min-width: 0;
}
.idt-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.idt-card-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg,#ece8e0,#ddd8ce);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; border-bottom: 1px solid var(--idt-line);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.idt-footer { background: var(--idt-white); border-top: 1px solid var(--idt-line); padding: 3.5rem 0 1.5rem; }
.idt-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.idt-f-logo { font-size: 1.4rem; font-weight: 800; margin-bottom: .65rem; }
.idt-f-logo span { color: var(--idt-red); }
.idt-f-desc { font-size: .82rem; color: var(--idt-muted); line-height: 1.7; max-width: 210px; margin-bottom: 1.1rem; }
.idt-f-social { display: flex; gap: .4rem; }
.idt-f-soc {
  width: 30px; height: 30px; border-radius: 5px; border: 1px solid var(--idt-line); background: var(--idt-bg);
  display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--idt-muted);
  font-weight: 600; text-decoration: none; transition: all .12s;
}
.idt-f-soc:hover { border-color: var(--idt-ink); color: var(--idt-ink); }
.idt-f-col h5 {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  color: var(--idt-muted); text-transform: uppercase; margin-bottom: .9rem;
}
.idt-f-col a {
  display: block; font-size: .82rem; color: var(--idt-ink-soft);
  padding: .22rem 0; text-decoration: none; transition: color .12s;
}
.idt-f-col a:hover { color: var(--idt-red); }
.idt-f-bottom {
  padding-top: 1.5rem; border-top: 1px solid var(--idt-line);
  display: flex; align-items: center; justify-content: space-between;
}
.idt-f-bottom span { font-size: .75rem; color: var(--idt-muted); }

/* ══════════════════════════════════════════
   DESTEK (KAHVE ISMARLA) BÖLÜMÜ
══════════════════════════════════════════ */
.idt-donation-wrap { background: var(--idt-ink); padding: 4rem 0; }
.idt-donation-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.idt-don-title { font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.15; }
.idt-don-title em { font-style: normal; color: rgba(255,255,255,.3); }
.idt-don-right { flex-shrink: 0; text-align: right; }
.idt-don-desc { font-size: .83rem; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.idt-btn-don {
  background: #fff; color: var(--idt-ink); padding: .7rem 1.75rem;
  font-size: .875rem; font-weight: 700; border: none; border-radius: 5px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.idt-btn-don:hover { opacity: .88; }
.idt-don-count { font-size: .7rem; color: rgba(255,255,255,.25); margin-top: .6rem; }

/* ══════════════════════════════════════════
   MOBİL MENÜ
══════════════════════════════════════════ */
.idt-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: .5rem;
  cursor: pointer; background: none; border: none;
}
.idt-hamburger span { display: block; width: 22px; height: 2px; background: var(--idt-ink); border-radius: 2px; }
.idt-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: var(--idt-white); padding: 5rem 2rem 2rem;
  flex-direction: column; gap: .25rem; overflow-y: auto;
}
.idt-mobile-menu.open { display: flex; }
.idt-mobile-menu a {
  display: block; padding: 1rem 0; font-family: var(--font-h);
  font-size: 1.5rem; font-weight: 700; color: var(--idt-ink);
  border-bottom: 1px solid var(--idt-line); text-decoration: none;
}
.idt-mobile-menu-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; font-size: 1.5rem; color: var(--idt-muted); cursor: pointer;
}

/* ══════════════════════════════════════════
   RESPONSIVE — SABİT (INLINE) IZGARA DÜZELTMELERİ
   Şablonlarda style="grid-template-columns:repeat(4,1fr)" gibi
   sabit yazılmış ızgaraları küçük ekranlarda ezer. Böylece
   home / oyunlar / gelistiriciler / gelistirici-profil /
   oyun-detay / haberler / incelemeler sayfalarının hepsi
   tek yerden düzelir.
══════════════════════════════════════════ */

/* Tablet: 4'lü → 2'li, 3'lü → 2'li, yan panelli düzen → tek sütun */
@media (max-width: 900px) {
  [style*="repeat(4,1fr)"],
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  [style*="repeat(3,1fr)"],
  [style*="repeat(3, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  [style*="1fr 340px"],
  [style*="1fr 420px"],
  [style*="1.35fr 1fr"],
  [style*="1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; gap: 1.75rem !important; }

  [style*="position:sticky"] { position: static !important; }
}

/* Telefon: her şey tek sütun */
@media (max-width: 560px) {
  [style*="repeat(4,1fr)"],
  [style*="repeat(4, 1fr)"],
  [style*="repeat(3,1fr)"],
  [style*="repeat(3, 1fr)"] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — GENEL
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .idt-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .idt-topbar { display: none; }
  .idt-nav-desktop { display: none !important; }
  .idt-header-actions { display: none !important; }
  .idt-hamburger { display: flex; }

  .idt-section { padding: 2.75rem 0; }
  .idt-sec-title { font-size: 1.15rem; }

  .idt-slider-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
  .idt-slider-arrow.prev { left: .75rem; }
  .idt-slider-arrow.next { right: .75rem; }
  .idt-slide-content { padding: 2.5rem 0 3.5rem; }

  .idt-stats-bar { grid-template-columns: repeat(2,1fr); }
  .idt-hstat { padding: 1.1rem 1.25rem; }
  .idt-hstat:nth-child(2) { border-right: none; }
  .idt-hstat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }

  .idt-footer-grid { grid-template-columns: 1fr 1fr; }
  .idt-donation-inner { flex-direction: column; text-align: center; }
  .idt-don-title { font-size: 1.7rem; }
  .idt-don-right { text-align: center; }
  .idt-f-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 640px) {
  .idt-slide-static .dw-container {
    flex-direction: column; text-align: center; gap: 1.25rem !important;
  }
  .idt-slide-icon { width: 70px; height: 70px; font-size: 2.2rem; }
  .idt-slide-desc { margin-left: auto; margin-right: auto; }
  .idt-slide-eyebrow { justify-content: center; }
}

@media (max-width: 480px) {
  .idt-footer-grid { grid-template-columns: 1fr; }
}