/* ==========================================================================
   Pizzería La Retro Bella - Menú Digital QR (Styles)
   ========================================================================== */

:root {
  /* Color Palette: Warm Retro Pizzeria */
  --bg-cream: #FAF5EF;
  --bg-card: #FFFFFF;
  --bg-card-alt: #FFFDF8;
  --red-vintage: #C83727;
  --red-dark: #982215;
  --yellow-cheese: #F4B41A;
  --yellow-cream: #FDF3D6;
  --green-basil: #3D6B4F;
  --green-light: #EBF3ED;
  --charcoal: #271B17;
  --charcoal-muted: #6B5B54;
  --border-light: #E8DFC8;
  --border-dark: #271B17;
  
  /* Shadows & Borders */
  --shadow-retro: 3px 4px 0px var(--charcoal);
  --shadow-hover: 5px 6px 0px var(--charcoal);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Fonts */
  --font-heading: 'Fredoka', 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #1A1412; /* Desktop background surrounding mobile frame */
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.5;
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

.text-red { color: var(--red-vintage); }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }

/* Desktop Responsive Container (Simulates Mobile Device screen on large displays) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-cream);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 0;
}

/* Red & White Checkered Strip */
.checkered-strip {
  height: 14px;
  width: 100%;
  background-color: #ffffff;
  background-image: 
    linear-gradient(45deg, var(--red-vintage) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--red-vintage) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, var(--red-vintage) 75%), 
    linear-gradient(-45deg, transparent 75%, var(--red-vintage) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border-bottom: 2px solid var(--charcoal);
}

/* Header Section */
.main-header {
  padding: 14px 18px 20px;
  background: radial-gradient(circle at top left, #FFFDF8, var(--bg-cream));
}



/* Brand Hero */
.brand-hero {
  position: relative;
}

.brand-logo-wrapper {
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}

.stamp-badge {
  display: inline-block;
  background-color: var(--green-basil);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  transform: rotate(-3deg);
  border: 1px solid var(--charcoal);
  margin-bottom: 4px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.retro-highlight {
  color: var(--red-vintage);
  font-style: italic;
  position: relative;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal-muted);
  margin-top: 4px;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--charcoal);
  box-shadow: var(--shadow-retro);
  max-height: 180px;
}

.hero-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-cheese);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--charcoal);
}

/* Controls Section: Search & Filters */
.controls-section {
  padding: 0 16px;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--charcoal-muted);
  font-size: 0.95rem;
}

.search-box input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  background: var(--bg-card);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  box-shadow: 2px 2px 0px var(--charcoal);
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--red-vintage);
  box-shadow: 3px 3px 0px var(--red-vintage);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--charcoal-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Dietary Filters */
.dietary-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.dietary-filters::-webkit-scrollbar {
  display: none;
}

.diet-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.diet-chip.active {
  background-color: var(--red-vintage);
  color: #FFFFFF;
  border-color: var(--charcoal);
  box-shadow: 2px 2px 0px var(--charcoal);
}

/* Sticky Category Nav Bar */
.category-nav-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  gap: 6px;
  background-color: var(--bg-cream);
  padding: 10px 0;
  border-bottom: 2px solid var(--charcoal);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-bar::-webkit-scrollbar {
  display: none;
}

.cat-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-link.active {
  background: var(--yellow-cheese);
  border-color: var(--charcoal);
  box-shadow: 2px 2px 0px var(--charcoal);
}

/* Main Menu Content */
.menu-content {
  padding: 16px;
}

.menu-category {
  margin-bottom: 28px;
}

.category-header {
  margin-bottom: 14px;
  border-bottom: 2px dashed var(--border-light);
  padding-bottom: 8px;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--charcoal-muted);
  margin-top: 2px;
}

/* Items Grid & Cards */
.items-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-card {
  display: flex;
  background: var(--bg-card);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-retro);
  position: relative;
}

.card-img-wrap {
  width: 110px;
  min-height: 110px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--red-vintage);
  color: #FFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--charcoal);
}

.card-body {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header-info {
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--charcoal-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red-vintage);
}

/* Retro Footer */
.retro-footer {
  margin-top: 30px;
  background-color: var(--bg-card-alt);
  border-top: 2px solid var(--charcoal);
  text-align: center;
}

.footer-body {
  padding: 24px 16px;
}

.footer-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--red-vintage);
  border-bottom: 2px solid var(--yellow-cheese);
  margin-bottom: 10px;
}

.footer-body p {
  font-size: 0.8rem;
  color: var(--charcoal-muted);
  margin-bottom: 6px;
}

.wifi-info {
  background: var(--yellow-cream);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  border: 1px solid var(--border-light);
  margin: 10px 0;
}

.copyright {
  font-size: 0.72rem !important;
  margin-top: 14px;
  opacity: 0.8;
}

/* Responsive adjust for mobile screens */
@media (max-width: 480px) {
  html, body {
    background-color: var(--bg-cream);
  }
  .app-container {
    box-shadow: none;
    max-width: 100vw;
  }
}
