/* ══════════════════════════════════════════════
   Kategori İkonları — Frontend CSS v1.2
   gap değerleri inline style üzerinden gelir
══════════════════════════════════════════════ */

.ki-wrap {
  width: 100%;
  box-sizing: border-box;
}

.ki-baslik {
  font-size: 1.1rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f27a1a;
  display: inline-block;
}

/* ── GRID CORE ── */
.ki-grid {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  /* gap, justify-content, font-family → inline style */
}

/* Scroll layout */
.ki-layout-scroll .ki-grid {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #f27a1a #f0f0f0;
  padding-bottom: 6px;
}
.ki-layout-scroll .ki-grid::-webkit-scrollbar        { height: 4px; }
.ki-layout-scroll .ki-grid::-webkit-scrollbar-track  { background: #f0f0f0; border-radius: 4px; }
.ki-layout-scroll .ki-grid::-webkit-scrollbar-thumb  { background: #f27a1a; border-radius: 4px; }

/* Alignment fallbacks (inline style bunları override eder) */
.ki-align-left   .ki-grid { justify-content: flex-start; }
.ki-align-center .ki-grid { justify-content: center; }
.ki-align-right  .ki-grid { justify-content: flex-end; }

/* ── Item base ── */
.ki-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   STİL 1 — Yuvarlak
══════════════════════════════════════════════ */
.ki-stil-1 .ki-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 4px 4px;
}
.ki-stil-1 .ki-item:hover { transform: translateY(-4px); }

.ki-stil-1 .ki-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  box-shadow: 0 3px 14px rgba(0,0,0,.10);
  transition: box-shadow .2s;
  position: relative;
  flex-shrink: 0;
}
.ki-stil-1 .ki-item:hover .ki-icon-wrap {
  box-shadow: 0 6px 22px rgba(242,122,26,.22);
}
.ki-stil-1 .ki-label {
  color: #222;
  text-align: center;
  line-height: 1.35;
  max-width: 82px;
  display: block;
}

/* ══════════════════════════════════════════════
   STİL 2 — Kare
══════════════════════════════════════════════ */
.ki-stil-2 .ki-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.ki-stil-2 .ki-item:hover { transform: translateY(-4px); }

.ki-stil-2 .ki-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  box-shadow: 0 3px 12px rgba(0,0,0,.10);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  flex-shrink: 0;
}
.ki-stil-2 .ki-item:hover .ki-icon-wrap {
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transform: scale(1.08);
}
.ki-stil-2 .ki-label {
  color: #222;
  text-align: center;
  line-height: 1.35;
}

/* ══════════════════════════════════════════════
   STİL 3 — Yatay Hap
══════════════════════════════════════════════ */
.ki-stil-3 .ki-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;               /* ikon ile yazı arası iç boşluk — değişmez */
  background: #f9f9f9;
  border: 1.5px solid #eee;
  border-radius: 50px;
  padding: 7px 16px 7px 8px;
  transition: all .2s;
  white-space: nowrap;
}
.ki-stil-3 .ki-item:hover {
  border-color: #f27a1a;
  background: #fff7f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242,122,26,.12);
}
.ki-stil-3 .ki-icon-wrap {
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.ki-stil-3 .ki-label { color: #222; white-space: nowrap; }

/* ══════════════════════════════════════════════
   STİL 4 — Renkli Kart
══════════════════════════════════════════════ */
.ki-stil-4 .ki-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.10);
  transition: transform .2s, box-shadow .2s;
  min-width: 90px;
}
.ki-stil-4 .ki-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.ki-stil-4 .ki-icon-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ki-stil-4 .ki-label {
  width: 100%;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
  padding: 0 10px 14px;
}

/* ══════════════════════════════════════════════
   BADGE
══════════════════════════════════════════════ */
.ki-badge {
  position: absolute;
  top: -4px; right: -4px;
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1.5px solid #fff;
  z-index: 2;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .ki-stil-1 .ki-item,
  .ki-stil-2 .ki-item { min-width: 60px; }
  .ki-stil-3 .ki-item  { padding: 5px 12px 5px 6px; }
  .ki-stil-4 .ki-item  { min-width: 80px; }
}

/* ── Fade-in ── */
.ki-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.ki-wrap.ki-visible {
  opacity: 1;
  transform: translateY(0);
}
