/* ============================================================
   recenzii-extra.css
   Stiluri NOI pentru: galerie media pe recenzii, lightbox,
   buton + formular de adăugare recenzie.
   Nu atinge stilurile existente (.reviews, .review-card etc.)
   ============================================================ */

.reviews__empty {
  opacity: .7;
  font-style: italic;
  margin: 12px 0;
}

/* ---------- Galerie media pe fiecare recenzie ---------- */
.review-card__media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-media-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #eee;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.review-media-item:hover,
.review-media-item:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  outline: none;
}

.review-media-item img,
.review-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-media-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: rgba(0, 0, 0, .28);
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-lightbox[hidden] {
  display: none;
}

.review-lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-lightbox__content img,
.review-lightbox__content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.review-lightbox__close,
.review-lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.review-lightbox__close:hover,
.review-lightbox__nav:hover {
  background: rgba(255, 255, 255, .25);
}

.review-lightbox__close {
  top: 18px;
  right: 18px;
  font-size: 26px;
}

.review-lightbox__nav--prev { left: 18px; }
.review-lightbox__nav--next { right: 18px; }

@media (max-width: 640px) {
  .review-lightbox__nav { width: 36px; height: 36px; font-size: 18px; }
}

/* ---------- Buton "Adaugă recenzie" ---------- */
.add-review {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.btn-add-review {
  border: 1px solid #1976D2;
  color: #1976D2;
  background: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}

.btn-add-review:hover {
  background: #1976D2;
  color: #fff;
}

/* ---------- Formular ---------- */
.add-review-form {
  margin-top: 16px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.add-review-form[hidden] {
  display: none;
}

.add-review-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.add-review-form input[type="text"],
.add-review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.add-review-form input[type="text"]:focus,
.add-review-form textarea:focus {
  outline: none;
  border-color: #1976D2;
}

.add-review-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rating cu stele (radio-uri inversate, ordine vizuală de la 5 la 1) */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
  font-size: 30px;
}

.star-input input {
  display: none;
}

.star-input label {
  color: #ccc;
  cursor: pointer;
  transition: color .1s ease;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: #FFC107;
}

/* Previzualizare fișiere alese */
.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.media-preview__item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

.media-preview__item img,
.media-preview__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-review-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-submit-review {
  background: #1976D2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: background .15s ease;
}

.btn-submit-review:hover {
  background: #125a9c;
}

.btn-submit-review:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.add-review-msg {
  font-size: 14px;
}

.add-review-msg--ok { color: #2e7d32; }
.add-review-msg--err { color: #c62828; }
/* Container centrat pentru butonul de "Încarcă mai mult" */
.reviews__actions-center {
    text-align: center;
    margin: 30px 0;
}

/* Stilizare pentru butonul de Afișează mai multe recenzii */
.btn-load-more {
    background-color: #fff;
    color: #1a73e8; /* Albastru specific Google */
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    display: inline-block;
}

.btn-load-more:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.1), 0 1px 2px rgba(60,64,67,0.2);
}

.btn-load-more:active {
    background-color: #f1f3f4;
}

/* Ascunde clasa care controlează afișarea inițială */
.hidden-review {
    display: none !important;
}