/* ═══════════════════════════════════════════════
   SmartPorta — Review System Styles
   ═══════════════════════════════════════════════ */

/* ─── Floating Action Button ─── */
.review-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  background: linear-gradient(135deg, #7C78B8 0%, #5D54A4 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 20px;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(93,84,164,0.45);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.3px;
}

.review-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(93,84,164,0.6);
}

.review-fab:active {
  transform: translateY(-1px);
}

.review-fab i {
  color: #FFD700;
  font-size: 14px;
}

/* ─── Overlay ─── */
.review-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 50, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.review-overlay.active {
  display: flex;
}

/* ─── Modal ─── */
.review-modal {
  background: #fff;
  border-radius: 22px;
  padding: 34px 28px 28px;
  width: 400px;
  max-width: 94vw;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  animation: reviewSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.review-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7C78B8, #5D54A4, #C7C5F4);
}

@keyframes reviewSlideIn {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.review-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f0eeff;
  border: none;
  color: #8880c4;
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.review-modal__close:hover {
  background: #e0dcff;
  color: #4C489D;
}

/* ─── Modal Header ─── */
.review-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C7C5F4 0%, #7C78B8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(124,120,184,0.4);
}

.review-modal__title {
  font-family: Raleway, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #3b3880;
  text-align: center;
  margin-bottom: 5px;
}

.review-modal__subtitle {
  font-family: Raleway, sans-serif;
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* ─── Star Rating ─── */
.review-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}

.review-stars__star {
  font-size: 24px;
  cursor: pointer;
  color: #e0ddf8;
  transition: color 0.12s, transform 0.12s;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.review-stars__star:hover {
  transform: scale(1.25);
}

.review-stars__star.lit {
  color: #f5a623;
}

.review-rating-label {
  text-align: center;
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #7C78B8;
  min-height: 18px;
  margin-bottom: 16px;
}

/* ─── Divider ─── */
.review-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.review-divider::before,
.review-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e6f8;
}

.review-divider span {
  font-family: Raleway, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Comment Textarea ─── */
.review-comment {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8e6f8;
  border-radius: 12px;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  color: #333;
  resize: none;
  height: 88px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
  background: #fafaff;
}

.review-comment::placeholder {
  color: #c5c2e0;
}

.review-comment:focus {
  border-color: #7C78B8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,120,184,0.1);
}

/* ─── Submit Button ─── */
.review-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7C78B8 0%, #5D54A4 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(93,84,164,0.35);
}

.review-submit-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.review-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── Error Message ─── */
.review-error {
  display: none;
  background: #fff2f3;
  border: 1.5px solid #ffcdd1;
  border-radius: 8px;
  color: #c62828;
  font-family: Raleway, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  text-align: center;
  margin-bottom: 10px;
}

/* ─── Success State ─── */
.review-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
}

.review-success__icon {
  font-size: 58px;
  background: linear-gradient(135deg, #C7C5F4, #5D54A4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.review-success__title {
  font-family: Raleway, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #3b3880;
}

.review-success__text {
  font-family: Raleway, sans-serif;
  font-size: 13px;
  color: #888;
  text-align: center;
  line-height: 1.6;
}

/* ─── Spin animation ─── */
@keyframes review-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.fa-spin {
  animation: review-spin 0.8s linear infinite;
}

/* Version Counter */
.version-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 700;
  z-index: 999;
  letter-spacing: 1px;
  transition: 0.3s all;
}

.version-counter:hover {
  color: rgba(255, 255, 255, 0.9);
}
