@charset "UTF-8";

/* =============================================
   DÖNERKEN UĞRA — UX/UI Animations & Enhancements
   ============================================= */

/* ---------- Page Load ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(245, 165, 36, 0.15); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100px); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Page Loader ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #12151c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(245, 165, 36, 0.2);
  border-top-color: #f5a524;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal--left {
  transform: translateX(-30px);
}

.reveal.reveal--right {
  transform: translateX(30px);
}

.reveal.reveal--scale {
  transform: scale(0.94);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.reveal-group > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-group > *:nth-child(7) { transition-delay: 0.47s; }

/* ---------- Hero Entrance ---------- */
.hero-content {
  animation: fadeInLeft 0.7s ease both;
  animation-delay: 0.2s;
}

.hero-card {
  animation: fadeInRight 0.7s ease both;
  animation-delay: 0.35s;
}

/* ---------- Enhanced Cards ---------- */
.menu-item,
.contact-card,
.drink-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.menu-item:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 165, 36, 0.1);
}

.drink-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(245, 165, 36, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* ---------- Button Enhancements ---------- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(245, 165, 36, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Ripple */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  width: 10px;
  height: 10px;
  transform: scale(0);
  animation: ripple 0.55s linear;
  pointer-events: none;
}

/* ---------- Order Buttons ---------- */
.order-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, opacity 0.18s ease;
}

.order-btn--getir,
.order-btn--trendyol,
.order-btn--alo {
  overflow: visible;
}

.order-btn--getir:hover,
.order-btn--trendyol:hover {
  box-shadow: none;
  transform: none;
}


/* ---------- Nav Link Hover ---------- */
.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #b9301b;
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ---------- Back to Top ---------- */
#back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #1c1307;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(245, 165, 36, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(245, 165, 36, 0.55);
}

/* ---------- Toast Notification ---------- */
#toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.8rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: #1e2330;
  border: 1px solid rgba(245, 165, 36, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1.1rem;
  color: #f7f3eb;
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.35s ease both;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.toast--out {
  animation: toastOut 0.3s ease both;
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Skeleton Loading ---------- */
.skeleton {
  background: linear-gradient(90deg, #1e2330 25%, #252c3d 50%, #1e2330 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 0.5rem;
}

/* ---------- Section Divider ---------- */
.section-divider {
  width: min(1120px, 92%);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- Highlight Cards Glow ---------- */
.highlights-grid .menu-item {
  position: relative;
  overflow: hidden;
}

.highlights-grid .menu-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 165, 36, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.highlights-grid .menu-item:hover::before {
  opacity: 1;
}

/* ---------- Price Tag Pulse ---------- */
.price-row strong {
  transition: color 0.2s ease;
}

.menu-item:hover .price-row strong {
  color: var(--primary);
}

/* ---------- Smooth Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #a21e1e, #f5a524);
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ---------- Image Lazy Load Fade ---------- */
img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* ---------- Mobile Improvements ---------- */
@media (max-width: 720px) {
  #back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
  }

  #toast-container {
    bottom: 4rem;
    right: 1rem;
    left: auto;
  }

  .toast {
    max-width: 100%;
  }
}

/* ---------- Focus Styles (Accessibility) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
