@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #1A1715;
  --bg-card: #262220;
  --bg-card-hover: #322D2A;
  --primary-red: #D9251D;
  --primary-red-hover: #B81B14;
  --accent-gold: #FFB70D;
  --accent-green: #2E7D32;
  --text-light: #F9F6F0;
  --text-muted: #A39D98;
  --border-dark: #3D3733;

  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-body);
  background-color: #0E0C0B;
  color: var(--text-light);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Standalone Smartphone & Web App Container */
.mobile-app-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-dark);
  position: relative;
  display: flex;
  flex-direction: column;
}

.mobile-body {
  padding-bottom: 140px;
  padding-left: 12px;
  padding-right: 12px;
}

/* Mobile Status Bar */
.mobile-status-bar {
  height: 44px;
  padding: 0 var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(26, 23, 21, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

/* Mobile Header */
.mobile-header {
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  z-index: 99;
}

.official-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Delivery Type Toggle Switch */
.delivery-toggle {
  display: flex;
  background-color: #12100F;
  padding: 4px;
  border-radius: 20px;
  border: 1px solid var(--border-dark);
}

.toggle-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-btn.active {
  background-color: var(--primary-red);
  color: #FFF;
}

/* Landing / Login View Screen */
.login-screen-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 23, 21, 0.6) 0%, rgba(26, 23, 21, 0.98) 70%), url('assets/saat_kulesi.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-sm);
  z-index: 200;
  animation: fadeIn 0.4s ease;
}

.login-card-content {
  background: rgba(38, 34, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 183, 13, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
}

.btn-google-auth {
  width: 100%;
  background-color: #FFFFFF;
  color: #3C4043;
  border: none;
  padding: 14px 20px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-bottom: 12px;
}

.btn-google-auth:active {
  transform: scale(0.98);
}

.btn-guest-auth {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-guest-auth:hover {
  color: var(--text-light);
  border-color: var(--text-light);
}

/* Rotating Campaigns Carousel Slider */
.campaign-carousel {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-card);
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  background-size: cover;
  background-position: center;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(26,23,21,0.95) 90%);
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
}

.carousel-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 2px;
}

.carousel-desc {
  font-size: 0.78rem;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.carousel-badge {
  background-color: var(--accent-gold);
  color: #1A1715;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent-gold);
  width: 18px;
  border-radius: 4px;
}

/* Main Viewport Content */
.mobile-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 100px;
  scroll-behavior: smooth;
}

.screen-view {
  display: none;
  padding: var(--space-sm);
  animation: fadeIn 0.3s ease;
}
.screen-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category Filter Pills */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  cursor: pointer;
}

.cat-pill.active {
  background-color: var(--primary-red);
  color: #FFF;
  border-color: var(--primary-red);
}

/* Pizza Cards Grid */
.pizza-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pizza-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
}

.pizza-img-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #12100F;
}

.pizza-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pizza-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pizza-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pizza-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 8px;
}

.tag-badge {
  background-color: rgba(46, 125, 50, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.pizza-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pizza-price {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-customize {
  background-color: var(--primary-red);
  color: #FFF;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
}

/* Pizza Builder Interactive Screen */
.builder-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.builder-visual {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-sm) auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crust-base {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #D97706 40%, #B45309 85%, #78350F 100%);
  border: 8px solid #92400E;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: relative;
  transition: all 0.3s ease;
}

.crust-base.peynirli-kenar {
  border-width: 14px;
  border-color: var(--accent-gold);
}

.topping-layer {
  position: absolute;
  inset: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.topping-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #B91C1C;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.topping-dot.mantar { background-color: #D1D5DB; }
.topping-dot.zeytin { background-color: #111827; }
.topping-dot.misir { background-color: #FBBF24; }
.topping-dot.jalapeno { background-color: #15803D; }

.section-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.opt-btn {
  background-color: #1A1715;
  border: 1px solid var(--border-dark);
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.opt-btn.active {
  border-color: var(--primary-red);
  color: var(--text-light);
  background-color: rgba(217, 37, 29, 0.15);
}

/* AI Chef Luigi Chat Overlay */
.ai-luigi-card {
  background: linear-gradient(135deg, #1F1916 0%, #2A1F1B 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-avatar {
  width: 44px;
  height: 44px;
  background-color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFF;
}

.ai-chat-box {
  background-color: #12100F;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent-gold);
}

.ai-chips { display: flex; gap: 8px; overflow-x: auto; }

.ai-chip {
  background-color: rgba(255, 183, 13, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 13, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}

/* Tracker */
.tracker-status-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
}

.tracker-steps {
  display: flex;
  justify-content: space-between;
  margin: var(--space-sm) 0;
  position: relative;
}

.tracker-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: var(--border-dark);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1A1715;
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-node.completed .step-circle {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: #FFF;
}

.step-node.active .step-circle {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #FFF;
}

.step-label { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); }

/* Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 68px;
  background-color: rgba(26, 23, 21, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-item.active { color: var(--primary-red); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; }

/* Sticky Action Bar */
.sticky-action-bar {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  padding: 8px 12px;
  background: rgba(14, 12, 11, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
}

.btn-checkout {
  width: 100%;
  background-color: var(--accent-gold);
  color: #1A1715;
  border: none;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Category Scroll Pills */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  background: #1A1715;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  padding: 10px 18px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill:active {
  transform: scale(0.95);
}

.cat-pill.active {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
  box-shadow: 0 3px 10px rgba(217, 37, 29, 0.4);
}

/* BENTO CATEGORY GRID STYLING */
.bento-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 16px 0;
}

.bento-card {
  background: linear-gradient(145deg, #262220 0%, #1E1B19 100%);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:active, .bento-card.active {
  transform: scale(0.97);
  border-color: var(--accent-gold);
  background: linear-gradient(145deg, #322D2A 0%, #262220 100%);
}

.bento-card-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.bento-card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.92rem;
  color: #FFF;
  line-height: 1.2;
}

.bento-card-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.bento-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  background: rgba(255, 183, 13, 0.2);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* CROSS-SELL CAROUSEL STYLING IN CART */
.cross-sell-container {
  margin: 14px 0;
  background: #12100F;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 12px;
}

.cross-sell-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cross-sell-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

.cross-sell-scroll::-webkit-scrollbar {
  height: 4px;
}

.cross-sell-scroll::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

.cross-sell-card {
  flex: 0 0 135px;
  background: #1A1715;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.cross-sell-img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.cross-sell-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cross-sell-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 4px 0;
}

.cross-sell-add-btn {
  background: var(--accent-gold);
  color: #1A1715;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}
