/* ============================================================
   Stokonline.ru — Effects Layer (mikro-animasiya + hover)
   Bütün panellərdə main.css/admin.css-dən SONRA yüklənməlidir.
   ============================================================ */

:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Baza animasiyaları ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Yalnız birbaşa banner/hero-nun ilk görünüşündə istifadə olunur (səhifənin hər kartında yox) */
.banner-carousel { animation: fadeIn .4s var(--ease-out) both; }

/* Sabit (sticky) başlıq — funksional şəffaflıq, hər yerdə şüşə effekti yox */
.site-header {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Düymələr — marka rənglərinə tabe, incə press/hover */
.btn, .a-btn {
  position: relative;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .2s;
}
.btn:hover, .a-btn:hover { box-shadow: var(--shadow-sm, 0 4px 12px rgba(28,22,19,.12)); }
.btn:active, .a-btn:active { transform: scale(.97); }

/* Kart hover — hairline sərhəddən yumşaq qalxma, ağır kölgə yox */
.restaurant-card, .menu-item-row {
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
}

/* ---------- İkon sistemi (Bootstrap Icons) ---------- */
.bi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; vertical-align: -0.125em; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn .bi { font-size: 1.05em; }

.icon-round-btn { transition: transform .15s var(--ease-out), background .2s; }
.icon-round-btn:hover { transform: translateY(-1px); background: var(--paper, #fff); }
.icon-round-btn.primary { background: var(--primary, #C41E2A); color: #fff; }

/* ---------- "Mobil app" hissi - alt tab naviqasiya ---------- */
.mobile-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--stone-200, #EAE3DC);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.mobile-tabbar-inner { display: flex; justify-content: space-around; }
.mobile-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--stone-600, #746A63); padding: 4px 10px; border-radius: 12px;
  transition: color .15s, transform .15s; position: relative;
}
.mobile-tabbar a .bi { font-size: 20px; }
.mobile-tabbar a.active { color: var(--primary, #C41E2A); }
.mobile-tabbar a:active { transform: scale(.92); }
.tab-cart-badge {
  position: absolute; top: -2px; right: 4px; background: var(--primary, #C41E2A); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 15px; text-align: center;
}

@media (max-width: 768px) {
  .mobile-tabbar { display: block; }
  body { padding-bottom: 74px; }
  .admin-body { padding-bottom: 0; } /* panel-lərdə öz sidebar-ı var, tabbar-a ehtiyac yoxdur */
}

/* ---------- Yüklənmə skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--stone-200, #EAE3DC) 25%, var(--stone-100, #F5F1EC) 50%, var(--stone-200, #EAE3DC) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(28,22,19,.12); border-top-color: var(--primary, #C41E2A);
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite;
}

/* Reduced motion - əlçatanlıq */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
