/* ============================================================
   intfa-modern — intfa-home.css
   Anasayfa: hero slider, kategori showcase, ikili banner,
   öne çıkan ürünler, geniş banner, neden biz, newsletter.
   Mockup intfa_modern_web_ornek/assets/style.css'ten birebir port.
   ============================================================ */

/* ── HERO SLIDER ──────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  aspect-ratio: 1280 / 430;
  width: min(calc(100% - 48px), var(--max-w));
  margin: 0 auto;
  background: #1a2533;
}
/* Fallback: aspect-ratio desteklemeyen tarayıcılarda (eski Huawei/Samsung
   Internet vb.) slide'lar position:absolute olduğu için slider yüksekliği
   0 kalır ve görsel kaybolur. padding-bottom hack ile oran korunur.
   Modern tarayıcılarda @supports negatif olduğu için hiç uygulanmaz. */
@supports not (aspect-ratio: 1 / 1) {
  .hero-slider { height: 0; padding-bottom: 33.6%; }      /* 430/1280 */
  @media (max-width: 768px) { .hero-slider { padding-bottom: 125%; } } /* 5/4 */
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Slider navigasyon */
.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%; color: #fff; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 10; backdrop-filter: blur(4px);
}
.hero-nav-btn:hover { background: rgba(255,255,255,.32); }
.hero-nav-btn.prev { left: 20px; }
.hero-nav-btn.next { right: 20px; }
.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: all .25s; padding: 0;
}
.hero-dot.active { width: 24px; border-radius: 4px; background: #fff; }

/* ── SECTION wrapper'ları ────────────────────────────────── */
.section { padding: 48px 0; }
.section-white { background: #fff; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px;
}
.section-head .section-title { font-size: 22px; font-weight: 700; color: var(--text); }
.section-head .section-title span { color: var(--blue); }
.section-head a {
  font-size: 13px; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 5px; transition: gap .15s;
}
.section-head a:hover { gap: 9px; }
.section-sub {
  font-size: 13px; color: var(--text-light); margin-top: 4px;
}

/* ── KATEGORİ SHOWCASE ────────────────────────────────────── */
.cats-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; cursor: pointer;
  transition: all .2s; box-shadow: var(--shadow-sm); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cat-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.cat-icon {
  width: 104px; height: 104px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; flex-shrink: 0;
  overflow: hidden;
}
.cat-icon.blue { background: var(--blue-light); color: var(--blue); }
.cat-icon.green { background: var(--green-light); color: var(--green); }
.cat-icon.orange { background: #fff4f0; color: var(--orange); }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-count { font-size: 10px; color: var(--text-light); }

/* ── İKİLİ BANNER ─────────────────────────────────────────── */
.banner-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 0 48px; }
.banner-duo-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px; }
.banner-card {
  border-radius: 12px; overflow: hidden; position: relative;
  display: flex; align-items: center;
  text-decoration: none; cursor: pointer;
}
.banner-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.banner-card:hover img { transform: scale(1.04); }

/* ── ÖNE ÇIKAN ÜRÜNLER GRID ──────────────────────────────── */
.home-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* Phase 14.2: .pc ürün kartı stilleri intfa-common.css'e taşındı (her sayfada
   ortak yüklenir, kategori sayfasında da aktif). */

/* ── GENİŞ BANNER ─────────────────────────────────────────── */
.wide-banner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px;
}
.wide-banner-card {
  border-radius: 14px; overflow: hidden; position: relative;
  display: block; text-decoration: none; line-height: 0;
}
.wide-banner-card img {
  width: 100%; height: auto; display: block;
  transition: transform .4s ease;
}
.wide-banner-card:hover img { transform: scale(1.02); }

/* ── NEDEN BİZ (özellik kartları) ──────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.feat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 14px;
}
.feat-icon.blue { background: var(--blue-light); color: var(--blue); }
.feat-icon.green { background: var(--green-light); color: var(--green); }
.feat-card .feat-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feat-card p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ── NEWSLETTER ────────────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 48px 0;
}
.newsletter-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.newsletter-txt .section-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.newsletter-txt p { font-size: 14px; color: rgba(255,255,255,.75); }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
  height: 44px; width: 280px; border: none; border-radius: 8px;
  padding: 0 16px; font-family: 'Poppins', sans-serif; font-size: 13px;
  outline: none;
}
.newsletter-form button {
  height: 44px; padding: 0 22px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--orange-dark); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cats-grid { grid-template-columns: repeat(4,1fr); }
  .home-grid { grid-template-columns: repeat(3,1fr); }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form input { width: 220px; }
}
@media (max-width: 768px) {
  .hero-slider {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 5;
  }
  .hero-slide img { object-fit: cover; }
  .hero-nav-btn { width: 32px; height: 32px; font-size: 12px; }
  .cats-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  /* Phase 14.32b: banner-duo padding-bottom (48px) mobilde sectionlar
     arasinda fazla bosluk yarattigi icin sifirlandi */
  .banner-duo { grid-template-columns: 1fr; padding: 0; gap: 12px; }
  .banner-duo-inner { padding-bottom: 0; }
  /* Phase 14.30: home-grid 768'de 1024 rule'undan 3 sutun miras kalir
     (kullanici tabletta 3 sutun istiyor). 480 alti 2 sutun. */
  .feat-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .wide-banner { padding: 0 14px 24px; }
  .wide-banner-card { height: auto; }
  /* Phase 14.31: anasayfa kenar bosluklari footer ile esit (24->14) */
  .section-inner,
  .banner-duo-inner,
  .newsletter-inner { padding-left: 14px; padding-right: 14px; }
  /* Phase 14.32: section padding mobil/tablet'te kucultuldu (48->24)
     baslik ile bir onceki section arasi az dursun */
  .section { padding: 24px 0; }
}
/* Phase 14.33: section-head sadece telefonda 3 satir — baslik, alt yazi
   ve "Tumunu Gor" alt alta. Tumunu Gor link sag tarafa hizalanir. */
@media (max-width: 600px) {
  .section-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .section-head > div { width: 100%; }
  .section-head a { align-self: flex-end; }
}
@media (max-width: 480px) {
  /* Phase 14.29: kucuk telefonda da 2 sutun */
  .cats-grid { grid-template-columns: repeat(2,1fr); }
  .home-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .feat-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
}

/* ── ÖZELLİK ŞERİDİ (slider altı) ─────────────────────────── */
.home-features { background: var(--blue); color: var(--white); padding: 28px 0; }
.home-features-in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hf-item { display: flex; align-items: center; gap: 16px; }
.hf-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--white);
}
.hf-txt strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.2px; }
.hf-txt span   { display: block; font-size: 12px; opacity: .9; line-height: 1.4; }

@media (max-width: 1024px) {
  .home-features-in { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 768px) {
  .home-features { padding: 20px 0; }
  .home-features-in { padding: 0 16px; gap: 16px; }
  .hf-icon { width: 38px; height: 38px; font-size: 22px; }
  .hf-txt strong { font-size: 13px; }
  .hf-txt span { display: none; }
}
