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

body {
  font-family: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  background: #f8f5f0;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  text-align: center;
  padding: 48px 24px 36px;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.subtitle {
  margin-top: 8px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Main */
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Filter Section */
.filter-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #555;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #ddd;
  background: white;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.tag:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.tag.active {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
}

/* Pick Button */
.pick-section {
  text-align: center;
}

.pick-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 20px 60px;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}

.pick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 107, 53, 0.5);
}

.pick-btn:active {
  transform: translateY(0);
}

/* Result Section */
.result-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

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

.result-card {
  background: white;
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  width: 100%;
  max-width: 480px;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
}

.result-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-badge {
  background: #fff0e8;
  color: #ff6b35;
}

.price-badge {
  background: #e8f4ff;
  color: #3a86ff;
}

.result-desc {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
}

.retry-btn {
  background: white;
  border: 2px solid #ff6b35;
  color: #ff6b35;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.retry-btn:hover {
  background: #ff6b35;
  color: white;
}

/* List Section */
.list-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 16px;
}

.list-count {
  font-size: 0.9rem;
  font-weight: 500;
  color: #aaa;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.restaurant-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}

.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: #ff6b35;
}

.restaurant-card.filtered-out {
  opacity: 0.3;
  pointer-events: none;
}

.card-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-badges .badge {
  font-size: 0.75rem;
  padding: 2px 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #bbb;
  font-size: 0.85rem;
}

/* No results */
.no-results {
  text-align: center;
  padding: 40px;
  color: #aaa;
  font-size: 1rem;
  grid-column: 1 / -1;
}
