/* FILE: assets/css/reviews.css */

/* =========================
   REVIEW TICKER (HEADER)
========================= */

.review-ticker-wrap {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(47,129,247,.20);
  background:
    linear-gradient(180deg, rgba(47,129,247,.08), rgba(255,255,255,.015));
}

.review-highlight {
  padding: 6px 12px;
  color: #ffcc00;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255,204,0,.18);
  animation: reviewScroll 18s linear infinite;
}

/* =========================
   REVIEWS BOX
========================= */

.reviews-box {
  border-color: rgba(47,129,247,.75);
  box-shadow:
    0 0 0 1px rgba(47,129,247,.16),
    0 0 14px rgba(47,129,247,.32),
    0 10px 24px rgba(0,0,0,.22);
}

.reviews-box h2 {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  padding-bottom: 6px;
  color: #7db7ff;
  font-size: 18px;
  text-align: center;
  letter-spacing: .4px;
  text-shadow: 0 0 6px rgba(47,129,247,.45);
}

.reviews-box h2::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(47,129,247,.95),
    transparent
  );
  box-shadow:
    0 0 6px rgba(47,129,247,.85),
    0 0 12px rgba(47,129,247,.55);
}

/* =========================
   FORM
========================= */

#reviewForm {
  width: 100%;
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

#reviewForm input,
#reviewForm select,
#reviewForm textarea {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  font-size: 13px;
  border: 1px solid rgba(47,129,247,.34);
  border-radius: 10px;
  background: rgba(5,7,10,.75);
  color: var(--text);
}

#reviewForm input:focus,
#reviewForm select:focus,
#reviewForm textarea:focus {
  border-color: rgba(47,129,247,.65);
}

#reviewForm select {
  color: #ffcc00;
  font-weight: 800;
  cursor: pointer;
}

#reviewForm textarea {
  min-height: 70px;
  max-height: 130px;
  resize: vertical;
  line-height: 1.3;
}

#reviewForm button {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(47,129,247,.42);
  background: rgba(47,129,247,.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .4px;
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

#reviewForm button:hover {
  transform: translateY(-1px);
  background: rgba(47,129,247,.28);
  box-shadow: 0 0 12px rgba(47,129,247,.28);
}

#reviewForm button:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   REVIEW LIST
========================= */

#reviewsList {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(47,129,247,.20);
  background: rgba(5,7,10,.55);
}

/* =========================
   REVIEW CARD
========================= */

.review-card,
.review-item {
  width: 100%;
  padding: 4px 4px;
  box-sizing: border-box;
  text-align: left;

  position: relative; /* needed for glow line */
}

/* GLOWING DIVIDER LINE */
.review-card::after,
.review-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(47,129,247,0.95),
    transparent
  );

  box-shadow:
    0 0 6px rgba(47,129,247,.75),
    0 0 12px rgba(47,129,247,.45);

  pointer-events: none;
}

/* REMOVE LAST ONE */
.review-card:last-child::after,
.review-item:last-child::after {
  display: none;
}

.review-head,
.review-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 6px;
  margin-bottom: 1px;
}

.review-head strong,
.review-meta strong {
  min-width: 0;
  color: #ffcc00;
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: left;
  text-shadow: 0 0 6px rgba(255,204,0,.18);
}

.review-stars {
  color: #ffcc00;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: right;
}

.review-head span,
.review-meta span {
  font-size: 11px;
  white-space: nowrap;
}

/* =========================
   REVIEW TEXT
========================= */

.review-card p,
.review-item p,
.review-card p.review-text,
.review-item p.review-text,
.review-text {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  box-sizing: border-box;

  color: #f2f6ff;
  font-size: 13px;
  line-height: 1.22;
  text-align: left;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Collapsed review text */
.review-card p.is-collapsed,
.review-item p.is-collapsed,
.review-text.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expanded review text */
.review-card p.is-expanded,
.review-item p.is-expanded,
.review-text.is-expanded {
  display: block;
  overflow: visible;
  white-space: normal;
}

/* Tiny expand button */
.review-expand-btn {
  display: inline-block;
  width: auto;

  margin: 4px 0 0 0;
  padding: 2px 7px;

  border: 1px solid rgba(47,129,247,.45);
  border-radius: 999px;

  background: rgba(47,129,247,.14);
  color: #9dccff;

  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .3px;

  cursor: pointer;
}

.review-expand-btn:hover {
  background: rgba(47,129,247,.25);
  color: #ffffff;
}

.review-card small,
.review-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  text-align: left;
}

/* =========================
   ANIMATION
========================= */

@keyframes reviewScroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}