/* /assets/css/pages/kategoriler.css */

/* iPhone Safari Zoom Fix */
@supports (-webkit-touch-callout: none) {
  input, select, textarea, button { font-size: 16px !important; }
}

/* ✅ HERO stacking: header etkilenmesin */
.hero-isolate{
  position: relative;
  z-index: 10;
  isolation: isolate;
}

/* ✅ Arama wrapper: suggestions için ayrı katman */
.search-wrap{
  position: relative;
  z-index: 50;
}

/* ✅ suggestions */
#suggestions{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100000;
  display: none;
}

#suggestions::-webkit-scrollbar { width: 10px; }
#suggestions::-webkit-scrollbar-thumb { background: rgba(100,116,139,.25); border-radius: 999px; }
#suggestions::-webkit-scrollbar-track { background: transparent; }

/* ✅ Kategori section altta kalsın */
#categorySection{
  position: relative;
  z-index: 1;
}

/* ✅ Reveal (Hero’da yok, altta çalışır) */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: transform, opacity;
}
.reveal.show{ opacity: 1; transform: translateY(0); }

.reveal-h{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: transform, opacity;
}
.reveal-h.show{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal,.reveal-h{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ✅ Filtre sonrası kart pop */
.card-pop{ animation: cardPop .28s ease both; }
@keyframes cardPop{
  from{ transform: translateY(6px); opacity:.85; }
  to{ transform: translateY(0); opacity:1; }
}

.suggestion-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  background: #fff;
  transition: background-color .15s ease, color .15s ease;
}
.suggestion-item:hover{
  background-color: #eef2ff;
  color: #4f46e5;
}
.suggestion-item.active{
  background-color: #eef2ff;
  color: #4f46e5;
}

.suggestion-icon{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: #f3f4f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* 🔥 Popüler tag */
.hot-tag{
  display: inline-flex;
  width: max-content;
  font-size: 11px;
  font-weight: 800;
  color: #1f2937;
  background: #fde68a;
  border-radius: 999px;
  padding: .25rem .5rem;
  margin-bottom: .5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
.shake { animation: shake .35s ease-in-out; }

/* ✅ Ticker */
.live-ticker{
  width: fit-content;
  max-width: 92%;
  margin: 0 auto;
  padding: .55rem .85rem;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-size: 12px;
  opacity: .95;
  pointer-events: none;
}
.live-ticker b{ color:#fde047; }
.tick-in{ animation: tickIn .55s ease both; }
@keyframes tickIn{
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}

