/* ==========================================================================
   AURA GASTRO - INSTAGRAM & PINTEREST VISUAL-FIRST DESIGN SYSTEM
   Palette: Clean Crisp White, Warm Off-White, Instagram Sunset Gradient, Charcoal
   ========================================================================== */

:root {
  --bg-app: #FAFAFB;
  --bg-card: #FFFFFF;
  --bg-surface: #F0F2F5;
  --bg-dark-glass: rgba(18, 20, 26, 0.85);
  
  --text-main: #111418;
  --text-secondary: #636D79;
  --text-dim: #94A0B0;
  
  --ig-gradient: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  --ig-pink: #E1306C;
  --accent-red: #FF334B;
  --accent-orange: #FF6B00;
  --accent-green: #00BA88;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 25px rgba(225, 48, 108, 0.25);
  
  --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 7rem;
}

/* Instagram Style Top Header */
.insta-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  margin: 0 -1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ig-pink);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.table-pill {
  background: #FFF0F5;
  border: 1px solid #FFD6E5;
  color: var(--ig-pink);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon-soft {
  background: var(--bg-surface);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-soft:hover {
  background: #E4E7EB;
  transform: scale(1.05);
}

.btn-waiter-insta {
  background: #FFF1F0;
  color: #FF334B;
  border: 1px solid #FFD8D6;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-waiter-insta:hover {
  background: #FF334B;
  color: #FFFFFF;
}

.btn-mode-toggle {
  background: var(--bg-surface);
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-mode-toggle.active {
  background: #111418;
  color: #FFFFFF;
}

/* INSTAGRAM STORIES TRAY */
.stories-tray {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: none;
  margin-bottom: 0.5rem;
}
.stories-tray::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 74px;
  text-align: center;
}

.story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ig-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.2);
}

.story-item:hover .story-ring {
  transform: scale(1.08);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #FFFFFF;
  background: #F0F2F5;
  display: block;
}

.story-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   AUTHENTIC INSTAGRAM CARD CAROUSEL (EFEKTLİ HERO SLIDER)
   ========================================================================== */
.ig-hero-section {
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

/* Instagram Story-Style Segment Progress Bars */
.ig-story-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.ig-bar-seg {
  flex: 1;
  height: 3.5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.ig-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ig-gradient);
  border-radius: var(--radius-full);
  transition: width 0.08s linear;
}

.ig-bar-seg.completed .ig-bar-fill {
  width: 100% !important;
}

/* Instagram Post Card */
.ig-hero-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.ig-hero-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
  border-color: rgba(225, 48, 108, 0.15);
}

/* Post Header */
.ig-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #FFFFFF;
}

.ig-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ig-avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #FFFFFF;
}

.ig-user-details {
  display: flex;
  flex-direction: column;
}

.ig-username-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ig-username {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.2;
}

.ig-verified-icon {
  color: #3897F0;
  font-size: 0.95rem;
}

.ig-follow-pill {
  background: rgba(225, 48, 108, 0.09);
  color: var(--ig-pink);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
}

.ig-location {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.15rem;
}

.ig-location i {
  color: #FF334B;
  font-size: 0.75rem;
}

.ig-counter-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(17, 20, 24, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Media Showcase Stage */
.ig-media-stage {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #111418;
  cursor: pointer;
  user-select: none;
}

.ig-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ig-hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.ig-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-slide-floating-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 3;
}

.ig-tag-badge.gradient {
  background: var(--ig-gradient);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ig-prep-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Double-Tap Heart Burst Effect */
.ig-doubletap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  color: #FFFFFF;
  font-size: 6rem;
  filter: drop-shadow(0 0 24px rgba(255, 51, 75, 0.85));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.ig-doubletap-heart.animate {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
}

/* Navigation Arrow Controls */
.ig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #111418;
  cursor: pointer;
  z-index: 4;
  transition: var(--transition);
}

.ig-nav-btn:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ig-nav-btn.prev {
  left: 0.75rem;
}

.ig-nav-btn.next {
  right: 0.75rem;
}

/* Action Bar */
.ig-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem 0.4rem;
  background: #FFFFFF;
}

.ig-actions-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ig-action-btn {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ig-action-btn:hover {
  transform: scale(1.15);
}

.ig-action-btn.like-btn i.text-pink {
  color: #FF334B;
}

.ig-action-btn.like-btn.liked i {
  color: #FF334B;
  animation: heartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Carousel Dots */
.ig-carousel-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #D1D5DB;
  transition: all 0.25s ease;
  cursor: pointer;
}

.ig-dot.active {
  width: 20px;
  background: var(--ig-pink);
  box-shadow: 0 2px 6px rgba(225, 48, 108, 0.3);
}

.ig-actions-right {
  display: flex;
  align-items: center;
}

/* Captions & Pricing Footer */
.ig-card-caption-area {
  padding: 0.25rem 1.15rem 1.15rem;
  background: #FFFFFF;
}

.ig-likes-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ig-table-note {
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.ig-caption-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.ig-caption-user {
  font-weight: 800;
  margin-right: 0.35rem;
}

.ig-caption-dish {
  font-weight: 700;
  color: var(--ig-pink);
  margin-right: 0.35rem;
}

.ig-caption-desc {
  color: #475569;
}

/* Bottom CTA Row */
.ig-card-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ig-footer-price {
  display: flex;
  flex-direction: column;
}

.ig-price-tag-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.ig-price-tag-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-ig-order {
  background: var(--ig-gradient);
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
  transition: var(--transition);
}

.btn-ig-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .ig-media-stage {
    height: 310px;
  }

  .ig-hero-card {
    border-radius: 20px;
  }

  .ig-card-header {
    padding: 0.75rem 1rem;
  }

  .ig-card-actions {
    padding: 0.65rem 1rem 0.35rem;
  }

  .ig-card-caption-area {
    padding: 0.2rem 1rem 1rem;
  }
}

.stories-tray::-webkit-scrollbar {
  display: none;
}

.story-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ig-gradient);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.2);
}

.story-ring.seen {
  background: #D1D5DB;
  box-shadow: none;
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
}

.story-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 72px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Filter Tags */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.cat-pill {
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
}

.filter-pill:hover,
.cat-pill:hover {
  border-color: #CBD5E1;
  color: var(--text-main);
  transform: translateY(-1px);
}

.filter-pill.active,
.cat-pill.active {
  background: #111418;
  color: #FFFFFF;
  border-color: #111418;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* SMART DIET & ATTRIBUTE FILTER BAR */
.smart-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.85rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.smart-filter-bar::-webkit-scrollbar {
  display: none;
}

.diet-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed #CBD5E1;
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.diet-pill:hover {
  border-color: var(--ig-pink);
  color: var(--ig-pink);
  background: #FFF5F7;
  transform: translateY(-1px);
}
.diet-pill.active {
  background: linear-gradient(135deg, #FFF1F5 0%, #FFE4EC 100%);
  border: 1px solid var(--ig-pink);
  color: var(--ig-pink);
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.15);
}
.diet-pill i {
  font-size: 0.85rem;
}

/* PWA Add to Home Screen Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 5.5rem;
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(225, 48, 108, 0.3);
  border-radius: 20px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 1000;
  animation: slideUpFade 0.4s ease;
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* PINTEREST MASONRY / VISUAL FEED */
.visual-feed {
  column-count: 3;
  column-gap: 1.25rem;
}

@media (max-width: 900px) {
  .visual-feed {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 580px) {
  .visual-feed {
    column-count: 1;
  }
}

/* Visual Card */
.pin-card {
  break-inside: avoid;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.pin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pin-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #E5E7EB;
}

.pin-image {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-card:hover .pin-image {
  transform: scale(1.04);
}

.btn-read-pin {
  background: #111418;
  color: #FFFFFF;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-read-pin:hover {
  background: var(--ig-gradient);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Overlays inside the image (Instagram / Pinterest style) */
.pin-top-actions {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.pin-badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-like {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #636D79;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.btn-like.liked {
  color: var(--accent-red);
}

.btn-like.liked i {
  animation: heartPop 0.35s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.pin-prep-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Card Body */
.pin-body {
  padding: 1rem 1.15rem 1.15rem;
}

.pin-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pin-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.pin-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ig-pink);
  white-space: nowrap;
}

.pin-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.pin-social-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-add-pin {
  background: #111418;
  color: #FFFFFF;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-add-pin:hover {
  background: var(--ig-pink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* FULLSCREEN INSTAGRAM STORY VIEWER MODAL */
.story-viewer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}

.story-viewer-modal.active {
  display: flex;
}

.story-card-frame {
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 780px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.story-progress-bar-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  overflow: hidden;
  z-index: 10;
}

.story-progress-fill {
  width: 0%;
  height: 100%;
  background: #FFFFFF;
  transition: width 0.1s linear;
}

.story-top-info {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.story-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.story-author span {
  font-weight: 700;
  font-size: 0.88rem;
}

.story-close-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.story-share-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  transition: all 0.2s;
}

.story-share-btn:hover {
  background: rgba(225, 48, 108, 0.8);
  transform: scale(1.08);
}

.story-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: #fff;
  z-index: 10;
}

.story-dish-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.story-dish-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.story-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFD23F;
}

.btn-story-order {
  background: var(--ig-gradient);
  border: none;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

/* Floating Clean Cart Pill */
.floating-bottom-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 520px;
  background: #111418;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
}

.floating-bottom-bar:hover {
  transform: translateX(-50%) translateY(-2px);
}

.float-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-counter-badge {
  background: var(--ig-pink);
  color: #fff;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.float-text-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.float-text-box span {
  font-size: 0.78rem;
  color: #94A0B0;
}

.float-cta {
  background: #FFFFFF;
  color: #111418;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Clean Modern Bottom Sheet Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: #FFFFFF;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin: 0 auto 1.25rem;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.sheet-close-btn {
  background: var(--bg-surface);
  border: none;
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.option-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1.1rem 0 0.5rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-main);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.option-item.selected {
  background: #FFF0F5;
  border: 1px solid #FFCCD9;
}

.option-item label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.option-price {
  font-weight: 700;
  color: var(--ig-pink);
  font-size: 0.88rem;
}

.custom-notes-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-family: var(--font-main);
  font-size: 0.88rem;
  resize: vertical;
  min-height: 70px;
  outline: none;
}

.custom-notes-input:focus {
  background: #FFFFFF;
  border-color: var(--ig-pink);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.1);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.qty-display {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.btn-add-modal {
  flex-grow: 1;
  background: var(--ig-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

/* Cart & Checkout Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-opts {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--ig-pink);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.45rem;
  box-shadow: var(--shadow-sm);
}

.cart-item-qty button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.bill-enhancements {
  background: #FAFAFB;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
}

.split-bill-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.split-bill-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.split-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  cursor: pointer;
}

.split-val {
  font-weight: 700;
  font-size: 0.92rem;
  min-width: 20px;
  text-align: center;
}

.tip-selection {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.tip-btn {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 0.4rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.tip-btn.active {
  background: #111418;
  color: #FFFFFF;
  border-color: #111418;
}

.cart-summary {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
}

.summary-row.split-calc {
  color: var(--ig-pink);
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-footer-actions {
  padding: 1rem 1.5rem 1.5rem;
}

.btn-checkout {
  width: 100%;
  background: var(--ig-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

/* Kitchen Display (KDS) View */
.kds-wrapper {
  display: none;
}

.kds-wrapper.active {
  display: block;
}

.kds-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.kds-ticket {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.kds-ticket-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.kds-table-badge {
  font-weight: 800;
  font-size: 1.1rem;
}

.kds-timer {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.kds-items-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.kds-ticket-item {
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.4rem;
}

.item-qty {
  color: var(--ig-pink);
  font-weight: 800;
  margin-right: 0.4rem;
}

.btn-kds-action {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

.btn-kds-ready {
  background: var(--accent-green);
  color: #fff;
}

.btn-kds-cook {
  background: #111418;
  color: #fff;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: rgba(17, 20, 24, 0.95);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}

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