/**
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

main {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  margin: 2rem auto;
  max-width: 640px;
  padding: 0 1rem;
}

h2 {
  margin-bottom: 0.25rem;
}

h2 + p {
  color: #666;
  margin-top: 0;
}

.controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

input {
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
  font-size: 0.95rem;
  min-width: 120px;
  padding: 0.5rem 0.75rem;
}

button {
  background: #4285f4;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: #3367d6;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.loading {
  color: #888;
  font-style: italic;
}

.error {
  background: #fce8e6;
  border-radius: 6px;
  color: #d93025;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.restaurant-name {
  color: #1a1a1a;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  text-align: center;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-card {
  animation: fadeIn 0.3s ease-in;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  overflow: hidden;
}

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

.category-badge {
  align-items: center;
  background: #4285f4;
  color: white;
  display: flex;
  font-size: 0.7rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.05em;
  min-width: 28px;
  padding: 0.5rem 0.4rem;
  text-orientation: mixed;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.card-body {
  flex: 1;
  padding: 0.75rem 1rem;
}

.card-header {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.dish-name {
  color: #222;
  font-size: 1.05rem;
  margin: 0;
}

.dish-price {
  color: #2e7d32;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.dish-desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.25rem 0 0;
}

.skeleton {
  animation: pulse 1.2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
}
