/* ================= RATINGS ================= */

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.rating-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    0 0 0 1px rgba(255, 138, 69, 0.05) inset,
    0 12px 28px rgba(0,0,0,0.28);
  padding: 18px 18px 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rating-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 69, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 138, 69, 0.08) inset,
    0 0 20px rgba(255, 106, 0, 0.10),
    0 16px 34px rgba(0,0,0,0.34);
}

.rating-card.is-success {
  animation: ratingPop 0.55s ease;
}

.rating-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rating-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.rating-card-meta {
  white-space: nowrap;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

.rating-average {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 106, 0, 0.14);
}

.rating-votes {
  margin-left: 6px;
  color: rgba(255,255,255,0.66);
}

.rating-stars {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.rating-star {
  position: relative;
  font-size: 1.95rem;
  line-height: 1;
  color: rgba(255,255,255,0.24);
  cursor: pointer;
  transform: scale(1);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease,
    filter 0.18s ease;
}

.rating-star:hover,
.rating-star.is-hover {
  color: #ffb15c;
  text-shadow:
    0 0 10px rgba(255, 106, 0, 0.35),
    0 0 18px rgba(255, 106, 0, 0.20);
  transform: translateY(-2px) scale(1.08);
  filter: brightness(1.08);
}

.rating-star.is-selected {
  color: #ff8a45;
  text-shadow:
    0 0 12px rgba(255, 106, 0, 0.40),
    0 0 24px rgba(255, 106, 0, 0.22);
}

.rating-star.is-half,
.rating-star.is-hover-half {
  color: rgba(255,255,255,0.24);
  transform: translateY(-2px) scale(1.08);
}

.rating-star.is-half::before,
.rating-star.is-hover-half::before {
  content: '★';
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: #ff8a45;
  text-shadow:
    0 0 12px rgba(255, 106, 0, 0.40),
    0 0 24px rgba(255, 106, 0, 0.22);
}

.rating-star.is-hover-half::before {
  color: #ffb15c;
  text-shadow:
    0 0 10px rgba(255, 106, 0, 0.35),
    0 0 18px rgba(255, 106, 0, 0.20);
}

.rating-feedback {
  min-height: 22px;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.rating-card.is-loading .rating-stars {
  pointer-events: none;
  opacity: 0.7;
}

@keyframes ratingPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .ratings-grid {
    grid-template-columns: 1fr;
  }

  .rating-card-head {
    flex-direction: column;
    gap: 6px;
  }

  .rating-stars {
    gap: 8px;
  }

  .rating-star {
    font-size: 1.8rem;
  }
}
