/* =============================================================
   CheffMommy – Genel Stiller
   CSS değişkenleri PHP tarafından dinamik olarak atanır.
   ============================================================= */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary:    #FF6B35;
  --secondary:  #2C3E50;
  --bg-color:   #F8F4EF;
  --card-color: #FFFFFF;
  --text-color: #2C3E50;
  --btn-text:   #FFFFFF;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Landing Page ──────────────────────────────────────────── */
.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
}

.landing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  min-height: 100vh;
  padding: 2.5rem 1.5rem env(safe-area-inset-bottom, 1.5rem);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  gap: 1.5rem;
}

/* Logo */
.landing-logo-section { text-align: center; width: 100%; }

.landing-logo-img {
  max-width: 180px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 0.5rem;
}

.landing-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 88px;
  height: 88px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 28px rgba(255,107,53,.35);
}

.landing-logo-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  line-height: 1.15;
}

.landing-tagline {
  font-size: 0.95rem;
  color: #999;
  margin: 0.2rem 0 0;
  font-style: italic;
}

/* Main Action Buttons */
.landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.landing-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.4rem 1rem;
  border-radius: 18px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .2px;
  transition: transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
}

.landing-btn:active { transform: scale(.96); }

.landing-btn i { font-size: 2rem; }

.landing-btn-instagram {
  background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(220,39,67,.32);
}

.landing-btn-menu {
  background: var(--primary);
  color: var(--btn-text) !important;
  box-shadow: 0 6px 22px rgba(255,107,53,.32);
}

/* Order Section */
.landing-order-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #999;
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
}
.order-divider::before,
.order-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.landing-contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.landing-btn-whatsapp {
  background: #25D366;
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(37,211,102,.3);
}

.landing-btn-phone {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(44,62,80,.25);
}

/* Landing Footer */
.landing-footer {
  text-align: center;
  font-size: .78rem;
  color: #bbb;
  width: 100%;
}
.landing-footer p { margin: 0; }

/* ── Menu Page ─────────────────────────────────────────────── */
.menu-body {
  min-height: 100vh;
  background: var(--bg-color);
}

/* Header */
.menu-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--secondary);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.menu-header-inner {
  display: flex;
  align-items: center;
  padding: .9rem 1rem;
  gap: 1rem;
}

.menu-back-btn {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: color .2s;
  padding: .2rem .3rem;
  border-radius: 6px;
}
.menu-back-btn:hover { color: #fff; }

.menu-header-title {
  flex: 1;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-header-title img {
  max-height: 38px;
  object-fit: contain;
  vertical-align: middle;
}

.menu-header-spacer { width: 2rem; flex-shrink: 0; }

/* Category Tabs */
.cat-tabs-outer {
  background: var(--secondary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-tabs-outer::-webkit-scrollbar { display: none; }

.cat-tabs {
  display: flex;
  gap: .3rem;
  padding: .45rem 1rem .8rem;
  width: max-content;
  min-width: 100%;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .9rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cat-tab i { font-size: .75rem; }
.cat-tab.active,
.cat-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Main area */
.menu-main {
  padding: 1rem 1rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.menu-section { margin-bottom: 1.75rem; }

.menu-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 .75rem;
  padding-bottom: .45rem;
  border-bottom: 2.5px solid var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.menu-section-title i { color: var(--primary); font-size: .9rem; }

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* Menu Item Card */
.menu-item-card {
  background: var(--card-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.055);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  border: 1px solid rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
.menu-item-card:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(0,0,0,.07); }

.menu-item-inner {
  display: flex;
  align-items: stretch;
  min-height: 88px;
}

.menu-item-img-wrap {
  width: 88px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.menu-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-item-no-img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  background: linear-gradient(135deg,#f3ede7,#ebe4db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ccc;
}
.featured-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: #FFD700;
  color: #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .58rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.menu-item-info {
  flex: 1;
  padding: .75rem .9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .2rem;
  min-width: 0;
}

.menu-item-name {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
}

.menu-item-desc {
  font-size: .78rem;
  color: #999;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .2rem;
}

.menu-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.menu-item-arrow { color: #d0d0d0; font-size: .75rem; }

/* Empty state */
.menu-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #bbb;
}
.menu-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: .5; }

/* Menu Footer */
.menu-footer {
  text-align: center;
  padding: 1rem;
  font-size: .78rem;
  color: #bbb;
  margin-top: 1rem;
}
.menu-footer p { margin: 0; }

/* ── Menu Modal ─────────────────────────────────────────────── */
.menu-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.menu-modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  border: none;
  background: transparent;
  padding: .7rem;
}

.btn-close-float {
  background: rgba(0,0,0,.45);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.btn-close-float:hover { background: rgba(0,0,0,.65); }

.menu-modal-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg,#f0ebe5,#ebe4db);
  position: relative;
}
.menu-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-modal-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #ccc;
}

.menu-modal-body-inner {
  padding: 1.25rem 1.25rem 1.5rem;
}

.menu-modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .6rem;
}

.menu-modal-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  flex: 1;
  line-height: 1.25;
}

.menu-modal-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.menu-modal-desc {
  font-size: .9rem;
  color: #666;
  line-height: 1.65;
  margin: 0 0 .9rem;
}

.menu-modal-extras {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding-top: .75rem;
  border-top: 1px solid #eee;
}

.modal-extra-row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  font-size: .84rem;
  line-height: 1.4;
}
.extra-label { font-weight: 600; color: var(--text-color); white-space: nowrap; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .25s ease; }

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (min-width: 600px) {
  .landing-btn { padding: 1.6rem 1.5rem; font-size: 1.05rem; }
  .menu-item-img-wrap { width: 110px; }
  .menu-modal-img-wrap { height: 260px; }
}
