/* ═══════════════════════════════════════════════════════════════
   REVIEWS UI — buton "Lasa un review", modal floating si
   confirmarea plutitoare "review trimis". Folosit pe homepage
   (#review-site) si pe pagina de produs (#review-produs).
   ═══════════════════════════════════════════════════════════════ */

/* ── Butonul launcher ────────────────────────────────────── */
.review-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(115deg, #16a34a 0%, #0e9f6e 60%, #0d9488 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 138, 90, 0.26);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  white-space: nowrap;
}

.review-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 138, 90, 0.34);
  filter: brightness(1.04);
  color: #ffffff;
}

.review-launch-btn:active {
  transform: translateY(0);
}

.review-launch-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* ── Header de sectiune cu butonul in dreapta ───────────── */
.eg-section-head--review,
.pp-reviews-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.pp-reviews-head--row .pp-reviews-head-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* ── Listele de review-uri pe toata latimea ─────────────── */
.review-site-layout--full,
.pp-reviews-list--full {
  display: block;
  width: 100%;
}

.review-site-layout--full .review-site-list {
  width: 100%;
}

/* ── Modal floating cu formularul ───────────────────────── */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 12, 22, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.review-modal-overlay[hidden] {
  display: none;
}

.review-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  border-radius: 20px;
  background: var(--public-surface-strong, #ffffff);
  border: 1px solid var(--public-line, rgba(14, 73, 121, 0.13));
  box-shadow: 0 30px 80px rgba(5, 20, 40, 0.35);
  animation: review-modal-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal .review-form-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  margin: 0;
}

.review-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--public-line, rgba(14, 73, 121, 0.13));
  border-radius: 50%;
  background: var(--public-soft, #eef7fb);
  color: var(--public-text, #102033);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-modal-close:hover {
  background: rgba(22, 163, 74, 0.12);
  transform: rotate(90deg);
}

@keyframes review-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Confirmarea plutitoare "review trimis" ─────────────── */
.review-confirm-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4100;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(380px, calc(100vw - 36px));
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--public-surface-strong, #ffffff);
  border: 1px solid var(--public-line, rgba(14, 73, 121, 0.13));
  border-left: 4px solid #16a34a;
  box-shadow: 0 24px 60px rgba(5, 20, 40, 0.28);
  animation: review-float-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-confirm-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.review-confirm-icon svg {
  width: 18px;
  height: 18px;
}

.review-confirm-copy {
  display: grid;
  gap: 2px;
  font-size: 13.5px;
  color: var(--public-muted, #5b7084);
}

.review-confirm-copy strong {
  color: var(--public-text, #102033);
  font-size: 14.5px;
}

.review-confirm-close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--public-muted, #5b7084);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.review-confirm-close:hover {
  background: rgba(22, 163, 74, 0.12);
  color: var(--public-text, #102033);
}

@keyframes review-float-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Dark mode ───────────────────────────────────────────── */
html.theme-dark .review-modal,
html.theme-dark .review-confirm-float {
  background: rgba(16, 24, 38, 0.96);
  border-color: rgba(148, 190, 220, 0.16);
}

html.theme-dark .review-modal-close {
  background: rgba(255, 255, 255, 0.06);
  color: #eef6f1;
  border-color: rgba(148, 190, 220, 0.16);
}

html.theme-dark .review-confirm-copy strong {
  color: #eef6f1;
}

/* ── Mobil ───────────────────────────────────────────────── */
@media (max-width: 700px) {
  .eg-section-head--review,
  .pp-reviews-head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-confirm-float {
    bottom: 84px; /* peste dock-ul mobil */
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-launch-btn,
  .review-modal,
  .review-confirm-float {
    animation: none !important;
    transition: none !important;
  }
}
