/* ============================================================
   VegasBet — Feedback Page CSS
   ============================================================ */

/* ── Page wrapper ───────────────────────────────────────────── */
.feedback-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* ── Breadcrumbs ────────────────────────────────────────────── */
.fb-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.fb-crumb-link {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.2s;
}

.fb-crumb-link:hover { color: #f0eeff; }

.fb-crumb-sep { color: #8884aa; }

.fb-crumb-current { color: #f0eeff; }

/* ── Hero Card ──────────────────────────────────────────────── */
.fb-hero {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f0a1a 0%, #1a0c2e 55%, #250d45 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  overflow: hidden;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

/* Radial glow on right side */
.fb-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at right center, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fb-hero-left {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* Title row: icon + heading */
.fb-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.fb-hero-icon {
  width: 28px;
  height: 28px;
  color: #a855f7;
  flex-shrink: 0;
}

.fb-hero-heading {
  font-size: 28px;
  font-weight: 800;
  color: #f0eeff;
  line-height: 1.2;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.fb-hero-sub {
  color: #8884aa;
  font-size: 16px;
  margin: 0 0 30px;
  font-family: 'Inter', sans-serif;
}

/* Stats row */
.fb-stats-row {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.fb-stat-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #a855f7;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.fb-stat-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.fb-stat-label {
  color: #8884aa;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

/* Display stars (hero, read-only) */
.fb-display-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.fb-display-star {
  width: 16px;
  height: 16px;
  color: #f59e0b;
  flex-shrink: 0;
}

/* Hero right: logo + glow decoration */
.fb-hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 220px;
  flex-shrink: 0;
}

.fb-hero-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.18) 0%, rgba(124, 58, 237, 0.08) 40%, transparent 70%);
  border-radius: 50%;
}

@keyframes fb-logo-pulse {
  0%, 100% {
    opacity: 0.37;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 1))
            drop-shadow(0 0 35px rgba(124, 58, 237, 0.5))
            drop-shadow(0 0 60px rgba(124, 58, 237, 0.3));
  }
  50% {
    opacity: 0.50;
    filter: drop-shadow(0 0 26px rgba(168, 85, 247, 1))
            drop-shadow(0 0 50px rgba(124, 58, 237, 0.8))
            drop-shadow(0 0 80px rgba(124, 58, 237, 0.5));
  }
}

.fb-hero-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: fb-logo-pulse 3.5s ease-in-out infinite;
}

/* ── Section 2: Leave a Review ──────────────────────────────── */
.fb-review-section { margin-top: 0; }

.fb-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #f0eeff;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.fb-section-icon {
  width: 22px;
  height: 22px;
  color: #a855f7;
  flex-shrink: 0;
}

/* Form card */
.fb-form-card {
  position: relative;
  background: #1c1c1f;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

/* Subtle right-side glow decoration */
.fb-form-card-deco {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.fb-form-card-body {
  position: relative;
  z-index: 1;
  padding: 40px 44px;
}

.fb-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0eeff;
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
}

.fb-form-sub {
  color: #8884aa;
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}

/* ── Interactive star rating ────────────────────────────────── */
.fb-rating-wrap { margin-bottom: 22px; }

.fb-stars {
  display: flex;
  gap: 6px;
  align-items: center;
}

.fb-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 38px;
  height: 38px;
  color: rgba(136, 132, 170, 0.4);
  transition: color 0.15s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-star-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}

.fb-star-btn.fb-star-hover,
.fb-star-btn.fb-star-selected {
  color: #f59e0b;
}

.fb-star-btn:hover {
  transform: scale(1.18);
}

/* Shake animation for missing rating validation */
@keyframes fb-shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-7px); }
  30%       { transform: translateX(6px); }
  45%       { transform: translateX(-5px); }
  60%       { transform: translateX(4px); }
  75%       { transform: translateX(-2px); }
}

.fb-stars.fb-shake {
  animation: fb-shake 0.4s ease;
}

.fb-rating-error {
  color: #ef4444;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
  display: none;
}

.fb-rating-error.visible { display: block; }

/* ── Textarea ───────────────────────────────────────────────── */
.fb-textarea {
  width: 100%;
  height: 130px;
  background: #0d0d0d;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  color: #f0eeff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  padding: 14px 28px 14px 16px;
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
  display: block;
  margin-bottom: 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

.fb-textarea::placeholder { color: #8884aa; }
.fb-textarea:focus { border-color: #a855f7; }

.fb-textarea::-webkit-scrollbar { width: 6px; }
.fb-textarea::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.fb-textarea::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.4); border-radius: 3px; }
.fb-textarea::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, 0.7); }

/* ── Form actions ───────────────────────────────────────────── */
.fb-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Primary: Leave a Review button */
.fb-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7c3aed;
  color: #f0eeff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.fb-submit-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.fb-submit-btn:hover {
  background: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Secondary: Upload Image button */
.fb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #8884aa;
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.fb-upload-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fb-upload-btn:hover {
  color: #f0eeff;
  border-color: rgba(168, 85, 247, 0.5);
}

.fb-file-input { display: none; }

.fb-file-name {
  color: #8884aa;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* ── Modal Overlay ──────────────────────────────────────────── */
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

.fb-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal box */
.fb-modal {
  position: relative;
  background: #1c1c1f;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fb-modal-overlay.active .fb-modal {
  transform: scale(1);
}

/* Close × button */
.fb-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #8884aa;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.fb-modal-close:hover { color: #f0eeff; }

/* Decorative banner */
.fb-modal-banner {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #1a0533, #2d1060);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-modal-icon {
  width: 48px;
  height: 48px;
  color: #a855f7;
}

/* Modal text */
.fb-modal-text {
  font-size: 16px;
  font-weight: 600;
  color: #f0eeff;
  text-align: center;
  margin: 0;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}

.fb-modal-sub {
  font-size: 14px;
  color: #a855f7;
  text-align: center;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* Close button */
.fb-modal-btn {
  width: 100%;
  background: #7c3aed;
  color: #f0eeff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.fb-modal-btn:hover { background: #a855f7; }

/* ── Scroll-reveal animations ───────────────────────────────── */
.feedback-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feedback-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile (<768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .fb-breadcrumbs { font-size: 14px; }

  .fb-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
    gap: 0;
  }

  .fb-hero-right { display: none; }

  .fb-hero-heading { font-size: 22px; }

  .fb-hero-sub { margin-bottom: 20px; }

  .fb-stats-row {
    flex-direction: column;
    gap: 20px;
  }

  .fb-form-card-body { padding: 24px 20px; }

  .fb-form-actions { gap: 10px; }

  .fb-submit-btn,
  .fb-upload-btn { width: 100%; justify-content: center; }

  .fb-file-name { max-width: 100%; }

  .fb-modal {
    max-width: 90vw;
    padding: 24px;
  }
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */

.fb-reviews-section {
  margin-top: 44px;
}

/* Grid */
.fb-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Review card */
.fb-review-card {
  background: #1c1c1f;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}

.fb-review-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.fb-review-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

/* Card header */
.fb-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0eeff;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.fb-card-avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.fb-card-info { flex: 1; min-width: 0; }

.fb-card-username {
  font-size: 15px;
  font-weight: 700;
  color: #f0eeff;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-card-emoji { margin-left: 4px; }

.fb-card-since {
  font-size: 13px;
  color: #8884aa;
  font-family: 'Inter', sans-serif;
}

/* Card stars */
.fb-card-stars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.fb-card-star {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  flex-shrink: 0;
}

/* Card text */
.fb-card-text-wrap {
  color: #8884aa;
  font-size: 14px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}

/* Preview text: show the full review but clamp it to a few lines so it is not
   revealed in full until "Read More". */
.fb-card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0;
}

.fb-read-more-btn {
  background: none;
  border: none;
  color: #a855f7;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  transition: color 0.2s;
  display: inline-block;
}

.fb-read-more-btn:hover { color: #f0eeff; }

/* Card image placeholder */
.fb-card-img-wrap { margin-top: 2px; }

.fb-card-img-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a0533, #2d1060);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}

.fb-card-img-placeholder:hover {
  border-color: rgba(168, 85, 247, 0.5);
  opacity: 0.85;
}

/* Real review photo (thumbnail in the card) */
.fb-card-img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}

.fb-card-img:hover {
  border-color: rgba(168, 85, 247, 0.5);
  opacity: 0.85;
}

.fb-cam-icon {
  width: 28px;
  height: 28px;
  color: #8884aa;
}

/* Load More */
.fb-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.fb-loadmore-btn {
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #f0eeff;
  border-radius: 12px;
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.fb-loadmore-btn:hover {
  border-color: #a855f7;
  background: rgba(124, 58, 237, 0.1);
}

/* ── Review "Read More" Modal ───────────────────────────────── */
.fb-review-modal-overlay {
  z-index: 10000;
}

.fb-review-modal {
  position: relative;
  background: #1c1c1f;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  padding: 28px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
}

.fb-review-modal-overlay.active .fb-review-modal {
  transform: scale(1);
}

.fb-review-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0eeff;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.fb-review-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fb-review-modal-img-wrap { width: auto; }

.fb-review-modal-img-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a0533, #2d1060);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}

.fb-review-modal-img-placeholder:hover {
  border-color: rgba(168, 85, 247, 0.5);
  opacity: 0.85;
}

/* Real review photo shown inside the "Read More" modal */
.fb-review-modal-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}

.fb-review-modal-img:hover {
  border-color: rgba(168, 85, 247, 0.5);
  opacity: 0.9;
}

.fb-review-modal-stars { margin-top: 2px; }

.fb-review-modal-text {
  color: #f0eeff;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.fb-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.fb-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.fb-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(28, 28, 31, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50%;
  color: #8884aa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.fb-lightbox-close:hover { color: #f0eeff; border-color: #a855f7; }

.fb-lightbox-inner {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.fb-lightbox.active .fb-lightbox-inner {
  transform: scale(1);
}

.fb-lightbox-placeholder {
  width: min(600px, 90vw);
  height: min(450px, 70vh);
  border-radius: 12px;
  background: linear-gradient(135deg, #1a0533, #2d1060);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fb-cam-icon--lg {
  width: 56px;
  height: 56px;
  color: rgba(168, 85, 247, 0.6);
}

.fb-lightbox-placeholder span {
  color: #8884aa;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.fb-lightbox-img {
  display: block;
  max-width: min(900px, 92vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ── Grid responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fb-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .fb-card-img-placeholder,
  .fb-card-img {
    width: 80px;
    height: 80px;
  }

  .fb-loadmore-btn { width: 100%; }

  .fb-review-modal {
    max-width: 90vw;
    padding: 20px;
  }
}
