/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

/* Search box */
.search-box {
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #2563eb;
}

.search-button {
  padding: 12px 24px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.search-button:hover {
  background: #1d4ed8;
}

.clear-search {
  padding: 12px 24px;
  background: #64748b;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.clear-search:hover {
  background: #475569;
  text-decoration: none;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  color: #64748b;
}

/* Restaurant grid */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.restaurant-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.restaurant-name {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.restaurant-name a {
  color: #1e293b;
  text-decoration: none;
}

.restaurant-name a:hover {
  color: #2563eb;
  text-decoration: none;
}

.cuisine-types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cuisine-tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.rating {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 0.95rem;
}

.price-level {
  color: #059669;
  font-weight: bold;
  margin-left: 8px;
}

.address {
  color: #64748b;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.phone {
  color: #64748b;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.view-details {
  display: inline-block;
  margin-top: 12px;
  color: #2563eb;
  font-weight: 500;
}

/* Restaurant detail page */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #64748b;
}

.restaurant-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 16px;
}

.meta {
  margin-bottom: 16px;
}

.rating-large {
  font-size: 1.3rem;
  margin-right: 12px;
}

.price-level-large {
  font-size: 1.3rem;
  color: #059669;
  font-weight: bold;
}

.cuisine-types-large {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-item strong {
  display: block;
  color: #64748b;
  margin-bottom: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item p {
  color: #1e293b;
  font-size: 1.1rem;
}

.hours-list {
  list-style: none;
  padding-left: 0;
}

.hours-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.hours-list li:last-child {
  border-bottom: none;
}

.ai-ready-section {
  background: #f0fdf4;
  padding: 24px;
  border-radius: 6px;
  border-left: 4px solid #059669;
}

.ai-ready-section h2 {
  color: #065f46;
}

.status-badge {
  background: #059669;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: normal;
}

.ai-ready-section p {
  color: #065f46;
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 0.9rem;
}

footer a {
  color: #64748b;
  margin: 0 8px;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-detail {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }

  .search-box form {
    flex-direction: column;
  }

  .search-input {
    min-width: 100%;
  }

  .search-button,
  .clear-search {
    width: 100%;
    text-align: center;
  }
}
