/* Reviews pages styles */
:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --muted: #4a5568;
  --text: #0b1f36;
  --accent: #2563eb;
  --border: rgba(12, 31, 54, 0.12);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

body.review-page {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.06), transparent 28%),
    var(--bg);
  color: var(--text);
}

.reviews-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 18px 70px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-header h1, .card-header h2 { margin: 0; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0; letter-spacing: 0.4px; }
.muted { color: var(--muted); margin: 0; }

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, rgba(37,99,235,0.08), rgba(16,185,129,0.05));
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.form-card .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-card label { font-weight: 600; color: var(--text); }
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  background: #f8fafc;
}
.form-actions { display: flex; align-items: center; gap: 12px; }

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer;
  font-size: 28px;
  color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating label::before {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f4b23a; transform: translateY(-2px); }
.star-rating input:checked ~ label { color: #f4b23a; }

.review-list { display: grid; gap: 12px; margin-top: 6px; }
.review-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.review-head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e0e7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
}
.review-head .meta strong { color: var(--text); display: block; }
.review-body { color: var(--muted); margin: 0; }
.rating-badge { text-align: right; color: #f4b23a; font-weight: 700; }
.rating-badge .stars { color: #f4b23a; }
.stars { color: #f4b23a; }

.alert { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; display: inline-flex; gap: 8px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: none; cursor: pointer; text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2); }
.btn.primary:hover { filter: brightness(1.05); }

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .form-actions { flex-direction: column; align-items: flex-start; }
  .page-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
}
