/* Tataroğlu Gıda - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0A84FF;
  --bg: #070d18;
  --card: #0e1623;
  --border: rgba(255,255,255,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: #fff; -webkit-font-smoothing: antialiased; }

/* ── Glassmorphism ── */
.glass-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.glass-card {
  background: rgba(14,22,35,0.65);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.glass-card:hover {
  border-color: rgba(10,132,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ── Hero Slider: mobil tam görünüm — portre resim (842×1264) için oran bazlı yükseklik ── */
@media (max-width: 639px) {
  #hero-slider {
    /* 1264/842 ≈ 1.5012 → resim tam sığar, yatay kırpma sıfır */
    height: calc(100vw * 1264 / 842) !important;
    max-height: 95svh !important;
    min-height: 420px !important;
  }
}

/* ── Hero Slider: yanlardan daraltma + yükseklik limiti ── */
@media (min-width: 768px) {
  #hero-slider {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    max-height: 800px;
    border-radius: 1rem;
    box-shadow: 0 8px 48px rgba(0,0,0,0.45);
  }
}

/* ── Hero Slider ── */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 1536x1024 → 1280x720 container: scale 0.833 → 853px tall, 133px cropped.
     8% = 10px top / 123px bottom crop → tabelalar üstte tam, kaldırım altta kesilir */
  object-position: center 8%;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/*
 * Mobile — FALLBACK crop (no dedicated mobile image):
 * Shift the landscape image up so the TEKEL sign (top portion) is
 * hidden by the container's overflow:hidden, revealing the store interior.
 * This ONLY applies when the slide has no mobile_image_url set
 * (i.e. the element does NOT have the .has-mobile-img class).
 */
@media (max-width: 639px) {
  .hero-img:not(.has-mobile-img) {
    top: -18% !important;
    bottom: auto !important;
    height: 118% !important;
  }
}
/* iPhone SE */
@media (max-width: 390px) {
  .hero-img:not(.has-mobile-img) {
    top: -20% !important;
    height: 120% !important;
  }
}
/*
 * Mobile — PORTRAIT image (842×1264):
 * Container 390×844 → scale by height (0.668×) → displayed 562×844px.
 * Only horizontal crop: 172px total (86px each side).
 * object-position: center center → mağaza cephesi tam ortada, dikey kırpma yok.
 */
@media (max-width: 639px) {
  .hero-img.has-mobile-img {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    object-position: center center;
  }
}

/* ── Hero overlay — hafif edge vignette, resim her yerde görünür ── */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.38) 0%,
    rgba(0,0,0,.05) 28%,
    rgba(0,0,0,.05) 68%,
    rgba(0,0,0,.50) 100%
  );
}
/* Desktop: sol kenar çok hafif, büyük siyah alan yok */
@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.30) 0%,
      rgba(0,0,0,.00) 22%,
      rgba(0,0,0,.00) 72%,
      rgba(0,0,0,.45) 100%
    );
  }
}

/* Mobil: içerik alta kayıyor (araba/zemin alanı daha koyu) */
.slide-content {
  justify-content: flex-end !important;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
}
/* Mobil: KAYDIRIN göstergesi gizli (buton çakışması engellemek için) */
@media (max-width: 639px) {
  #hero-slider .hero-scroll-hint { display: none !important; }
}

/* ── İçerik konteyneri — şeffaf, sadece içerik görünür ── */
.hero-glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 34rem;
  padding: 0 0.5rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* ── Desktop: sola hizalı, içerik alt bölgede (daha koyu alan) ── */
@media (min-width: 768px) {
  .slide-content {
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding-left: 4vw;
    padding-bottom: 3.5rem !important;
  }
  .hero-glass-card {
    align-items: flex-start;
    text-align: left;
    max-width: 38rem;
    padding: 0;
  }
  .hero-cta-row { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .slide-content { padding-left: 5vw; }
}
@media (min-width: 1280px) {
  .slide-content { padding-left: 6vw; }
}
@media (min-width: 1536px) {
  .slide-content { padding-left: 7vw; }
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Title ── */
.hero-title {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    letter-spacing: -0.035em;
    text-shadow: none;
  }
}

/* ── Thin accent divider ── */
.hero-divider {
  width: 2.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0A84FF 0%, #10b981 100%);
  margin: 0 auto 0.875rem;
}

/* ── Subtitle ── */
.hero-subtitle {
  font-size: clamp(0.9rem, 2.4vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255,0.90);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.80), 0 0 4px rgba(0,0,0,0.60);
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 16px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.70);
  }
}

/* ── CTA row ── */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
  width: 100%;
}
@media (min-width: 480px) {
  .hero-cta-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* ── CTA buttons ── */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.875rem;
  padding: 0 1.5rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, box-shadow 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.hero-cta-btn:active { transform: scale(0.97); }
@media (min-width: 768px) {
  .hero-cta-btn { height: 3rem; padding: 0 1.75rem; font-size: 0.9375rem; }
}
/* Sipariş Ver — solid mavi */
.hero-cta-primary {
  background: #0A84FF;
  box-shadow: 0 4px 18px rgba(10,132,255,0.38);
}
.hero-cta-primary:hover {
  background: #1a90ff;
  box-shadow: 0 6px 28px rgba(10,132,255,0.52);
  transform: translateY(-1px);
}
/* WhatsApp — yeşil glass */
.hero-cta-whatsapp {
  background: rgba(37,211,102,0.14);
  border: 1px solid rgba(37,211,102,0.38);
  color: #4ade80;
}
.hero-cta-whatsapp:hover {
  background: rgba(37,211,102,0.22);
  border-color: rgba(37,211,102,0.56);
  transform: translateY(-1px);
}

/* Arrows — shown on ALL screen sizes; size varies */
.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hero-arrow:hover  { background: rgba(0,0,0,.72); }
.hero-arrow:active { transform: scale(0.92); }
@media (min-width: 640px) {
  .hero-arrow { width: 3rem; height: 3rem; }
}

/* Dot touch targets — 44 × 44 px minimum (iOS HIG) */
.hero-dot-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hero-dot {
  display: block;
  height: 0.5rem;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}


/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0 2rem;
  height: 3.25rem;
  font-size: 0.9375rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 20px rgba(10,132,255,0.35);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: #0070e0;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(10,132,255,0.5);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.4);
  color: #4ade80;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0 2rem;
  height: 3.25rem;
  font-size: 0.9375rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: rgba(37,211,102,0.25);
  transform: translateY(-1px);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(10,132,255,0.3); }
  50%       { box-shadow: 0 0 30px rgba(10,132,255,0.6); }
}

/* ── Scroll Reveal ── */
/* CSS fallback: elements animate in even without JS (after 0.8s delay) */
@keyframes revealFallback {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
  animation: revealFallback 0.6s ease 0.6s forwards;
}
.reveal.visible {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: rgba(14,22,35,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  z-index: 200;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#toast.success { border-color: rgba(52,211,153,0.4); }
#toast.error   { border-color: rgba(248,113,113,0.4); }

/* ── Admin styles ── */
.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-sidebar-item:hover, .admin-sidebar-item.active {
  background: rgba(10,132,255,0.1);
  color: #fff;
}
.admin-sidebar-item.active {
  color: #0A84FF;
}

/* ── Form inputs (admin & frontend) ── */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], input[type="url"],
textarea, select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(10,132,255,0.5);
  background: rgba(10,132,255,0.04);
}
select option { background: #0e1623; color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070d18; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive table ── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid rgba(255,255,255,0.05); }
.admin-table td { padding: 0.875rem 1rem; font-size: 0.875rem; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.03); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table tr:last-child td { border-bottom: none; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue   { background: rgba(10,132,255,0.15); color: #60a5fa; }
.badge-green  { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-yellow { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-red    { background: rgba(248,113,113,0.15);color: #f87171; }
