body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: url("https://preview.redd.it/springfield-wallpaper-v0-cm23uhd7c76e1.png?width=1080&crop=smart&auto=webp&s=a3f2e53041df8fbccc853af766da730441d91202")
    no-repeat center center fixed;
  background-size: cover;
  background-color: black;
  color: white;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Enhanced backdrop filter */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

/* Enhanced sticky search bar */
.sticky-search {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.95));
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky-search input {
  flex: 1;
  padding: 0.875rem 2.5rem 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  outline: none;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.3s ease;
}

.sticky-search input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Enhanced menu parent cards */
.menu-parent {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.menu-parent:active {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced variation cards */
.menu-item {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  min-height: 320px;
}

.menu-item:active {
  transform: scale(0.98);
}

/* Enhanced images */
.parent-image, .menu-item img {
  transition: transform 0.3s ease;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Price tag styling */
.price-tag {
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-indicator {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Animation refinements */
.menu-variations {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix text squishing on small screens */
h1, h2, h3, p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: keep-all;
}

h2 {
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.3;
}

p {
  font-size: clamp(0.875rem, 3.5vw, 1rem);
}

.menu-item p.text-gray-400 {
  max-height: none;
  overflow: visible;
}

@media (max-width: 640px) {
  .menu-parent {
    margin: 1rem 0.5rem;
    padding: 1.25rem;
  }

  .sticky-search input {
    font-size: 1rem;
    padding: 0.75rem 2rem 0.75rem 1rem;
  }

  h1 {
    font-size: 2.5rem;
    padding: 1rem 0;
  }

  /* Additional padding for text containers on small screens */
  .menu-item, .menu-parent {
    padding: 1rem;
  }

  /* Ensure prices and status text are readable */
  .text-yellow-400, .text-green-400, .text-red-400, .text-orange-500 {
    font-size: 1rem;
    padding: 0.2rem 0;
  }
}

/* Enhanced view-only message */
.view-only-message {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  margin: 0.5rem 0 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.view-only-message p {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  hyphens: none;
  white-space: normal;
  word-break: keep-all;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Fix for search bar overflow */
#clear-search {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.25rem;
  color: #4B5563;
  display: none;
}

/* Style for highlighting search results */
.search-highlight {
    background-color: yellow;
    color: black;
    font-weight: bold;
}

/* Popularity Labels */
.variation-image-wrapper {
    /* position: relative; NO LONGER NEEDED HERE */
}

.popularity-label {
    /* position: absolute; REMOVED */
    /* top: 8px; REMOVED */
    /* left: 8px; REMOVED */
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: inline-flex; /* Keep as inline-flex */
    display: block; /* Change to block for centering */
    align-items: center;
    gap: 4px;
    /* z-index: 10; REMOVED */
    margin-bottom: 6px; /* ADDED margin below the label */
    /* Center the label horizontally */
    margin-left: auto;
    margin-right: auto;
    width: fit-content; /* Ensure block doesn't take full width */
}

.popularity-label.hot {
    background: linear-gradient(45deg, #f97316, #fbbf24); /* Orange gradient */
    box-shadow: 0 2px 5px rgba(249, 115, 22, 0.4);
}

.popularity-label.super-hot {
    background: linear-gradient(45deg, #ef4444, #f87171); /* Red gradient */
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

.popularity-label i {
    font-size: 0.9em;
} 