/* =============================================
   GALLERY STYLES: Reviews & Scores
   ============================================= */

/* ---- SHARED PROOF SECTION STYLES ---- */
.proof-section {
  position: relative;
  overflow: hidden;
}

.proof-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ---- REVIEWS SECTION ---- */
.reviews-section {
  background: #040d36;
}

/* Carousel wrapper */
.reviews-carousel-wrap {
  position: relative;
}

.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y:visible;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.reviews-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Each review card */
.review-card {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  scroll-snap-align: start;
}

.review-card:hover {
  border-color: rgba(245,197,24,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.review-card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  padding: 16px;
}

.review-card-meta {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-card-meta .stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-card-meta .label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ---- SCORES SECTION ---- */
.scores-section {
  background: linear-gradient(180deg, #071559 0%, #040d36 100%);
}

/* Score counter bar */
.scores-stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.score-stat {
  text-align: center;
}

.score-stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.score-stat .lbl {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  display: block;
}

/* Masonry-style grid */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.score-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.score-card:hover {
  border-color: rgba(245,197,24,0.5);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.score-card.featured {
  grid-row: span 2;
}

.score-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.score-card-overlay {
  position: relative;
}

.score-card-overlay img {
  height: 280px;
}

.score-card.featured .score-card-overlay img {
  height: 100%;
  min-height: 580px;
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(245,197,24,0.4);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 54, 0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(600px, 92vw);
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: lightbox-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark);
}

.lightbox-prev { right: 16px; }
.lightbox-next { left: 16px; }

/* ---- RESPONSIVE GALLERY ---- */
@media (max-width: 1024px) {
  .review-card {
    min-width: calc(50% - 12px);
  }

  .scores-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .score-card.featured .score-card-overlay img {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .review-card {
    min-width: calc(85% - 12px);
  }

  .scores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .score-card.featured {
    grid-row: span 1;
  }

  .score-card.featured .score-card-overlay img {
    min-height: 280px;
  }

  .score-card-overlay img {
    height: 220px;
  }

  .scores-stats-bar {
    gap: 24px;
  }

  .lightbox-nav { display: none; }
}
