/* ==========================================================================
   HawkHive Verified Reviews System - Design System & Component Styles
   ========================================================================== */

/* ---------- Reviews Section Layout ---------- */
.reviews-section {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.05) 0%, rgba(7, 14, 27, 0) 70%);
}

.reviews-header-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.reviews-header-wrapper .section-subtitle {
  color: var(--gold-main, #d4af37);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: block;
}

.reviews-header-wrapper h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.reviews-header-desc {
  color: var(--text-muted, #94a3b8);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ---------- Reviews Scorecard & Summary Banner ---------- */
.reviews-scorecard-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  background: var(--bg-card-dark, rgba(15, 26, 46, 0.65));
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
  border-radius: 28px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.reviews-scorecard-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1e6f5c, #d4af37, #8b5cf6);
}

.reviews-score-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: 2rem;
  border-right: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
}

.reviews-score-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.reviews-stars-row {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.reviews-stars-row svg {
  width: 22px;
  height: 22px;
  fill: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

.reviews-score-label {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.btn-open-review-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, #d4af37 0%, #aa8529 100%);
  color: #070e1b;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-open-review-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Star Distribution Bars */
.reviews-bars-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.reviews-bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
}

.reviews-bar-label {
  width: 50px;
  text-align: right;
  font-weight: 600;
}

.reviews-bar-track {
  flex: 1;
  height: 9px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.reviews-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f59e0b);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.reviews-bar-count {
  width: 35px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Filter Tabs ---------- */
.reviews-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.reviews-filter-btn {
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
  border-radius: 99px;
  color: var(--text-muted, #94a3b8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reviews-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.reviews-filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: #fbbf24;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* ---------- Reviews Grid & Cards ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

.review-card {
  background: var(--bg-card-dark, rgba(15, 26, 46, 0.65));
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.08);
}

.review-card.featured-card {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(15, 26, 46, 0.65) 100%);
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.review-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6f5c 0%, #0f2723 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  flex-shrink: 0;
}

.review-user-avatar.rse-avatar {
  background: linear-gradient(135deg, #c9973a 0%, #2b1f0c 100%);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.review-user-avatar.deriv-avatar {
  background: linear-gradient(135deg, #8b5cf6 0%, #22123f 100%);
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.3);
}

.review-user-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(212, 175, 55, 0.25);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.review-exam-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: rgba(30, 111, 92, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(30, 111, 92, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-exam-tag.rse-tag {
  background: rgba(201, 151, 58, 0.15);
  color: #fbbf24;
  border-color: rgba(201, 151, 58, 0.3);
}

.review-exam-tag.deriv-tag {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.3);
}

.review-stars-snippet {
  display: flex;
  gap: 3px;
  margin-bottom: 0.85rem;
}

.review-stars-snippet svg {
  width: 17px;
  height: 17px;
  fill: #fbbf24;
}

.review-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.review-card-body {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.review-passed-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #10b981;
  font-weight: 600;
}

/* ---------- Hero Trust Micro-Badge ---------- */
.hero-reviews-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-reviews-trust-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.hero-trust-stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 0.95rem;
}

.hero-trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main, #f8fafc);
}

.hero-trust-text strong {
  color: #fbbf24;
}

/* ---------- Review Submission Modal ---------- */
.reviews-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
  box-sizing: border-box;
}

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

.reviews-modal-card {
  background: #0b111e;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-modal-overlay.active .reviews-modal-card {
  transform: translateY(0) scale(1);
}

.reviews-modal-close {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reviews-modal-close:hover {
  color: #ffffff;
}

.reviews-modal-header {
  margin-bottom: 2rem;
}

.reviews-modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.reviews-modal-header p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Star Rating Input Widget */
.star-rating-widget {
  display: flex;
  gap: 8px;
  margin: 0.5rem 0 1.5rem;
}

.star-rating-widget button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating-widget button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.star-rating-widget button:hover,
.star-rating-widget button.active {
  color: #fbbf24;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

/* Modal Form Fields */
.modal-form-group {
  margin-bottom: 1.3rem;
}

.modal-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.modal-form-group select option {
  background: #0b111e;
  color: #ffffff;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.modal-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
  cursor: pointer;
}

.modal-checkbox-row span {
  font-size: 0.92rem;
  color: #cbd5e1;
}

.modal-status-alert {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: none;
  line-height: 1.5;
}

.modal-status-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  display: block;
}

.modal-status-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  display: block;
}

.modal-status-alert.info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  display: block;
}

.btn-submit-review {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #d4af37 0%, #aa8529 100%);
  color: #070e1b;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-submit-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.btn-submit-review:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Modal Auth Gates */
.reviews-auth-gate {
  text-align: center;
  padding: 1.5rem 0;
}

.reviews-auth-gate h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.reviews-auth-gate p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.reviews-auth-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Modal Authentication Styles */
.rev-auth-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
  padding-bottom: 0.6rem;
}

.rev-auth-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 0.5rem 0;
  transition: all 0.2s ease;
  position: relative;
}

.rev-auth-tab-btn:hover {
  color: #ffffff;
}

.rev-auth-tab-btn.active {
  color: #ffffff;
  font-weight: 700;
}

.rev-auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.65rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #d4af37;
  border-radius: 2px;
}

.rev-auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.25rem;
}

.rev-auth-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.rev-auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
  color: #64748b;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rev-auth-divider::before,
.rev-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.rev-auth-divider span {
  padding: 0 12px;
}

.rev-auth-switch-text {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.rev-auth-switch-text a {
  color: #d4af37;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.rev-auth-switch-text a:hover {
  text-decoration: underline;
  color: #fbbf24;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 900px) {
  .reviews-scorecard-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .reviews-score-primary {
    border-right: none;
    border-bottom: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
    padding-right: 0;
    padding-bottom: 2rem;
  }
}

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

  .modal-form-row {
    grid-template-columns: 1fr;
  }

  .reviews-modal-card {
    padding: 1.8rem 1.4rem;
  }

  .star-rating-widget button svg {
    width: 28px;
    height: 28px;
  }
}
