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

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --instagram: #e1306c;
  --facebook: #1877f2;
  --radius: 8px;
}

body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

.container { max-width: 800px; margin: 0 auto; padding: 0 1rem; }

header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 10; }
header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); }

nav a { margin-left: 1rem; text-decoration: none; color: var(--primary); font-size: 0.95rem; }
.btn { display: inline-block; padding: 0.5rem 1.1rem; border-radius: var(--radius); font-size: 0.95rem; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.85rem; }

.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { color: var(--muted); }

.search-section { margin: 1rem 0 3rem; }
.search-section form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.search-section select, .search-section input { padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; background: var(--surface); }
.search-section input { flex: 1; min-width: 200px; }

.profile-header { padding: 2rem 0 1rem; }
.profile-header h2 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.avg-rating { color: var(--muted); margin-bottom: 1rem; }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; color: #fff; text-transform: capitalize; }
.badge.instagram { background: var(--instagram); }
.badge.facebook { background: var(--facebook); }

.reviews-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.review-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.reviewer { font-weight: 600; font-size: 0.9rem; }
.date { color: var(--muted); font-size: 0.82rem; margin-left: auto; }

#write-review-cta { margin-bottom: 3rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 520px; margin: 2rem auto; }
.form-card h2 { margin-bottom: 1.5rem; }
.form-card label { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500; }
.form-card input, .form-card select, .form-card textarea {
  padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; background: var(--bg);
}
.form-card textarea { resize: vertical; }

.star-picker { display: flex; gap: 0.25rem; cursor: pointer; font-size: 1.6rem; color: #f59e0b; }
.star-picker span:hover, .star-picker span:hover ~ span { color: #d97706; }

.error-msg { color: #dc2626; font-size: 0.88rem; margin-bottom: 0.75rem; min-height: 1.2em; }
.muted { color: var(--muted); }
.muted a { color: var(--primary); }

@media (max-width: 500px) {
  .hero h1 { font-size: 1.4rem; }
  .form-card { padding: 1.25rem; }
}
