/* ================================================================
   Ghestineh — Reviews & Rating System — White / Orange / Teal Theme
   ================================================================ */

/* ── Wrapper ─────────────────────────────────── */
.gas-reviews-wrap {
  direction: rtl;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 52px;
  color: #1e293b;
  background: transparent;
}

.gas-reviews-title {
  font-family: 'Lalezar', 'Vazirmatn', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #1e293b;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.gas-reviews-title::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 56px; height: 2px;
  background: #f97316;
  border-radius: 2px;
}

/* ── Score summary ─────────────────────────────── */
.gas-score-summary {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.gas-score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  text-align: center;
}
.gas-score-number {
  font-family: 'Lalezar', sans-serif;
  font-size: 52px;
  font-weight: 400;
  color: #f97316;
  line-height: 1;
}
.gas-score-denom {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 600;
}
.gas-score-stars {
  margin-top: 8px;
  display: flex;
  gap: 2px;
}
.gas-score-count {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

/* ── Star icon ─────────────────────────────────── */
.gas-star-icon {
  font-size: 16px;
  color: #d1d5db;
  transition: color .1s;
}
.gas-star-icon.filled { color: #f59e0b; }

/* ── Distribution bars ─────────────────────────── */
.gas-score-bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.gas-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.gas-bar-label {
  width: 32px;
  text-align: left;
  color: #94a3b8;
  flex-shrink: 0;
  font-size: 12px;
}
.gas-bar-track {
  flex: 1;
  height: 7px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.gas-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 999px;
  transition: width .5s ease;
}
.gas-bar-count {
  width: 24px;
  text-align: left;
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ── Review form ────────────────────────────────── */
.gas-review-form-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.gas-review-form-wrap h3 {
  margin: 0 0 18px;
  font-family: 'Lalezar', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #1e293b;
}

/* ── Message bar ───────────────────────────────── */
.gas-form-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  border-right: 3px solid currentColor;
}
.gas-msg-success { background: #f0fdf4; color: #15803d; }
.gas-msg-error   { background: #fef2f2; color: #b91c1c; }

/* ── Star picker ────────────────────────────────── */
.gas-star-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gas-star-pick-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-left: 4px;
}
.gas-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: #d1d5db;
  padding: 0 2px;
  transition: color .1s, transform .1s;
  line-height: 1;
}
.gas-star-btn:hover,
.gas-star-btn.hover,
.gas-star-btn.selected { color: #f59e0b; }
.gas-star-btn.selected { transform: scale(1.12); }
.gas-star-label-text {
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
  min-width: 50px;
}

/* ── Textarea ──────────────────────────────────── */
.gas-review-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s;
  min-height: 90px;
}
.gas-review-form textarea:focus {
  border-color: #f97316;
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.gas-review-form textarea::placeholder { color: #94a3b8; }

.gas-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.gas-char-count { font-size: 12px; color: #94a3b8; }

.gas-submit-btn {
  padding: 10px 24px;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s, box-shadow .15s, opacity .15s;
}
.gas-submit-btn:hover {
  background: #ea580c;
  box-shadow: 0 4px 18px rgba(249,115,22,.25);
}
.gas-submit-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Already reviewed notice ──────────────────── */
.gas-already-reviewed {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
  color: #0f766e;
  font-size: 14px;
}
.gas-already-reviewed-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.gas-already-reviewed strong { display: block; font-size: 14px; font-weight: 700; color: #0f766e; }
.gas-already-reviewed p { margin: 3px 0 0; font-size: 13px; color: #0d9488; }

/* ── Login prompt ──────────────────────────────── */
.gas-login-prompt {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}
.gas-login-prompt a {
  color: #f97316;
  font-weight: 700;
  text-decoration: none;
  margin-right: 6px;
}
.gas-login-prompt a:hover { text-decoration: underline; }

/* ── Reviews list ──────────────────────────────── */
.gas-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gas-review-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.gas-review-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.gas-review-new { animation: gas-review-in .35s ease forwards; }
@keyframes gas-review-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gas-reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.gas-review-content { flex: 1; min-width: 0; }
.gas-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.gas-reviewer-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.gas-review-stars  { display: flex; gap: 1px; }
.gas-review-date   { font-size: 12px; color: #94a3b8; margin-right: auto; }
.gas-review-text   { font-size: 14px; color: #475569; line-height: 1.78; margin: 0; }

.gas-no-reviews {
  text-align: center;
  padding: 28px;
  color: #94a3b8;
  font-size: 14px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
}

/* ── Small score badge ─────────────────────────── */
.gas-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.gas-score-badge .gas-star-icon { font-size: 13px; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .gas-reviews-wrap { padding: 28px 18px 36px; }
}
@media (max-width: 600px) {
  .gas-score-summary { flex-direction: column; gap: 16px; padding: 16px; }
  .gas-score-main { flex-direction: row; gap: 12px; align-items: center; min-width: auto; }
  .gas-score-number { font-size: 40px; }
  .gas-review-item { padding: 12px 14px; }
  .gas-star-btn { font-size: 24px; }
}
