/* ===== QR MENU - Milagro Cafe Digital Menu ===== */
/* Warm cafe theme matching the main site colors */
:root {
  --qm-bg: #1C1210;
  --qm-bg-alt: #241812;
  --qm-card: #2C1E16;
  --qm-card-hover: #3A2A1E;
  --qm-border: rgba(200,164,86,0.12);
  --qm-gold: #C8A456;
  --qm-gold-light: #D4B76A;
  --qm-gold-dark: #A88B3D;
  --qm-cream: #FFF8F0;
  --qm-cream-dark: #F5EDE0;
  --qm-brown: #6B4226;
  --qm-text: #F5EDE0;
  --qm-text-muted: #A09080;
  --qm-accent: #e67e22;
  --qm-green: #27ae60;
  --qm-radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: var(--qm-bg);
  color: var(--qm-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.qm-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ===== HEADER ===== */
.qm-header {
  position: relative;
  text-align: center;
  padding: 50px 20px 30px;
  overflow: hidden;
}
.qm-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2C1810 0%, #1C1210 100%);
  z-index: 0;
}
.qm-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(200,164,86,0.18) 0%, transparent 55%);
}
.qm-header > * { position: relative; z-index: 1; }
.qm-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--qm-gold);
  box-shadow: 0 0 40px rgba(200,164,86,0.25), 0 0 80px rgba(200,164,86,0.08);
  margin-bottom: 14px;
}
.qm-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--qm-cream);
  letter-spacing: 1px;
}
.qm-subtitle {
  font-size: 0.85rem;
  color: var(--qm-gold);
  margin-top: 4px;
  font-style: italic;
}
.qm-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.qm-info-item {
  font-size: 0.75rem;
  color: var(--qm-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qm-info-item i { color: var(--qm-gold); font-size: 0.7rem; }
.qm-info-item:hover { color: var(--qm-gold); }

/* ===== CATEGORY NAV ===== */
.qm-cat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28,18,16,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qm-border);
  padding: 10px 0;
}
.qm-cat-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 6px;
  padding: 0 12px;
}
.qm-cat-scroll::-webkit-scrollbar { display: none; }
.qm-cat-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(200,164,86,0.15);
  border-radius: 25px;
  background: transparent;
  color: var(--qm-text-muted);
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.qm-cat-btn i { font-size: 0.7rem; }
.qm-cat-btn:hover { border-color: var(--qm-gold); color: var(--qm-gold); }
.qm-cat-btn.active {
  background: linear-gradient(135deg, var(--qm-gold), var(--qm-gold-dark));
  color: #1C1210;
  border-color: var(--qm-gold);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(200,164,86,0.3);
}
.qm-cat-btn.active i { color: #1C1210; }

/* ===== SECTIONS ===== */
.qm-main { padding: 0 12px 30px; }
.qm-section { margin-top: 24px; }
.qm-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(200,164,86,0.15);
  margin-bottom: 10px;
}
.qm-section-header i {
  color: var(--qm-gold);
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
}
.qm-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--qm-cream);
}

/* ===== MENU ITEMS ===== */
.qm-items { display: flex; flex-direction: column; gap: 8px; }
.qm-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--qm-card);
  border-radius: var(--qm-radius);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.qm-item:hover, .qm-item:active {
  background: var(--qm-card-hover);
  border-color: rgba(200,164,86,0.12);
}
.qm-item.qm-featured {
  border-color: rgba(200,164,86,0.25);
  background: linear-gradient(135deg, #3A2810 0%, #2C1E16 100%);
  box-shadow: 0 2px 15px rgba(200,164,86,0.08);
}
.qm-item-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.qm-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qm-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.qm-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.qm-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--qm-text);
  line-height: 1.2;
}
.qm-featured .qm-item-name { color: var(--qm-cream); }
.qm-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--qm-gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.qm-item-desc {
  font-size: 0.72rem;
  color: var(--qm-text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qm-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.qm-item-cal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  color: var(--qm-accent);
  font-weight: 500;
  padding: 2px 7px;
  background: rgba(230,126,34,0.12);
  border-radius: 20px;
}
.qm-item-cal i { font-size: 0.55rem; }
.qm-item-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.qm-tag {
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(200,164,86,0.1);
  color: var(--qm-gold);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.qm-footer {
  text-align: center;
  padding: 30px 20px 40px;
  border-top: 1px solid var(--qm-border);
  background: linear-gradient(180deg, transparent, rgba(44,24,16,0.5));
}
.qm-footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.qm-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200,164,86,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qm-text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}
.qm-footer-social a:hover {
  border-color: var(--qm-gold);
  color: var(--qm-gold);
  background: rgba(200,164,94,0.1);
}
.qm-footer p {
  font-size: 0.7rem;
  color: var(--qm-text-muted);
  margin-bottom: 10px;
}
.qm-visit-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--qm-gold);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--qm-gold);
  border-radius: 25px;
  transition: all 0.3s;
}
.qm-visit-site:hover {
  background: var(--qm-gold);
  color: #1C1210;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 481px) {
  .qm-app { box-shadow: 0 0 80px rgba(44,24,16,0.6); }
  body { background: #120A08; }
}

/* ===== ANA SAYFA ICIN KALORi STiLi ===== */
.menu-item-cal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #e67e22;
  font-weight: 500;
  padding: 2px 8px;
  background: rgba(230,126,34,0.08);
  border-radius: 20px;
  margin-right: 4px;
}
.menu-item-cal i { font-size: 0.6rem; }
