/* site/public/styles/global.css
   Minimal stylesheet — clean, readable, looks like a real site.
   No frameworks. Works fine without JavaScript.
*/

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

a { color: #2563eb; }
a:hover { color: #1d4ed8; }

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
h1 { font-size: 1.75rem; margin-top: 0; }
h2 { font-size: 1.25rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.25rem; }

p { margin: 0.5rem 0; }

ul { padding-left: 1.25rem; margin: 0.5rem 0; }

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #6b7280;
}
footer a { color: #6b7280; }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
}
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Business header ──────────────────────────────────────────── */
.biz-header { margin-bottom: 1.5rem; }

.biz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ── Tags (type, price, rating) ───────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}
.tag.type    { background: #eff6ff; color: #1e40af; }
.tag.price   { background: #f0fdf4; color: #166534; }
.tag.rating  { background: #fefce8; color: #854d0e; }

/* ── At-a-glance grid ─────────────────────────────────────────── */
.glance {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
}

.glance-item {
  display: flex;
  flex-direction: column;
}

.glance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 600;
}

.glance-value { font-size: 0.95rem; }

.directions-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Hours list ───────────────────────────────────────────────── */
.hours-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.2rem 1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.day   { font-weight: 500; color: #374151; min-width: 90px; }
.hours { color: #4b5563; }

/* ── Review summary ───────────────────────────────────────────── */
.review-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  border-left: 3px solid #d1d5db;
  padding-left: 1rem;
  margin: 0.75rem 0;
}

/* ── Review cards ─────────────────────────────────────────────── */
.reviews-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-author { font-size: 0.95rem; }

.review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.review-text {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
  line-height: 1.6;
}

/* ── Verdict block ────────────────────────────────────────────── */
.verdict {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border: 1px solid transparent;
}

.verdict--up     { background: #f0fdf4; border-color: #86efac; }
.verdict--steady { background: #eff6ff; border-color: #93c5fd; }
.verdict--down   { background: #fff7ed; border-color: #fdba74; }
.verdict--no_data { background: #f9fafb; border-color: #d1d5db; }

.verdict-badge {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.verdict--up     .verdict-badge { color: #15803d; }
.verdict--steady .verdict-badge { color: #1d4ed8; }
.verdict--down   .verdict-badge { color: #c2410c; }
.verdict--no_data .verdict-badge { color: #6b7280; }

.verdict-detail {
  font-size: 0.95rem;
  margin: 0.25rem 0 0.5rem;
  color: #374151;
}

.verdict-numbers {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

.verdict-delta { font-weight: 600; }
.delta--up   { color: #15803d; }
.delta--down { color: #c2410c; }

.verdict-note {
  font-size: 0.775rem;
  color: #9ca3af;
  margin: 0.5rem 0 0;
}

/* ── Business photo ───────────────────────────────────────────── */
.biz-photo {
  margin: 0 0 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  max-height: 400px;
}

.biz-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Editorial summary ────────────────────────────────────────── */
.editorial-summary {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.7;
  margin: 0.5rem 0 1.25rem;
  font-style: italic;
}

/* ── Amenity badges ───────────────────────────────────────────── */
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1.5rem;
}

.amenity-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Affiliate CTAs ───────────────────────────────────────────── */
.affiliate-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cta-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.cta-btn:hover { opacity: 0.85; }

.cta-reserve {
  background: #dc2626;
  color: #fff;
}

.cta-delivery {
  background: #ea580c;
  color: #fff;
}

.cta-secondary {
  background: #111827;
  color: #fff;
}

/* ── Index page ───────────────────────────────────────────────── */
.index-header { margin-bottom: 2rem; }

.index-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.empty-state {
  color: #6b7280;
  font-style: italic;
}

.biz-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.biz-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.biz-list-link:hover { background: #f3f4f6; }

.biz-list-name { font-weight: 500; }

.biz-list-meta {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
