/**
 * EnfitiBiz - Web3 & NFT Escrow Reviews Design System
 * Cyberpunk Dark Theme (#060606) with Signature Multi-Color Gradient
 * Gradient: #059DFF -> #6549D5 -> #E33FA1 -> #FB5343
 */

/* ========================================================
   SECTION CONTAINER
======================================================== */
.wbs-reviews-section {
  position: relative;
  background: #060606;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(5, 157, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(227, 63, 161, 0.08) 0%, transparent 40%);
  padding: 80px 20px;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.wbs-reviews-container {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ========================================================
   HEADER & TITLE
======================================================== */
.wbs-reviews-header {
  text-align: center;
  margin-bottom: 45px;
}

.wbs-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 157, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(5, 157, 255, 0.2);
}

.wbs-reviews-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.wbs-reviews-subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================================
   SCOREBOARD (CYBER DARK TERMINAL)
======================================================== */
.wbs-scoreboard {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(10, 14, 23, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 36px 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 36px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(5, 157, 255, 0.08);
  backdrop-filter: blur(16px);
}

.wbs-score-main {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 25px;
}

.wbs-score-number {
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 25px rgba(5, 157, 255, 0.4);
}

.wbs-score-stars {
  font-size: 24px;
  color: #fbbf24;
  letter-spacing: 3px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.wbs-score-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.wbs-score-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wbs-bar-row {
  display: grid;
  grid-template-columns: 32px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.wbs-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.wbs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #059DFF 0%, #6549D5 50%, #E33FA1 100%);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(5, 157, 255, 0.5);
}

.wbs-score-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 30px;
}

.wbs-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.wbs-highlight-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.wbs-highlight-icon.check {
  background: rgba(5, 157, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.wbs-highlight-icon.star {
  background: rgba(227, 63, 161, 0.15);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.wbs-highlight-icon.bolt {
  background: rgba(251, 83, 67, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

/* Enfitibiz Signature Gradient Button */
.wbs-btn-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #059DFF 0%, #6549D5 37.98%, #E33FA1 68.19%, #FB5343 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0px 5px 25px rgba(227, 63, 161, 0.45);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 6px;
}

.wbs-btn-write:hover {
  cursor: pointer;
  box-shadow: 0 0 25px 8px rgba(251, 83, 67, 0.35);
  filter: brightness(115%);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ========================================================
   FILTERS & CONTROLS BAR
======================================================== */
.wbs-filters-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.wbs-lang-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wbs-lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0e131d;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wbs-lang-tab:hover {
  background: #141b29;
  color: #e2e8f0;
  border-color: rgba(5, 157, 255, 0.3);
}

.wbs-lang-tab.active {
  background: linear-gradient(90deg, #059DFF 0%, #6549D5 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(5, 157, 255, 0.4);
}

/* Flag Image in Filter Buttons */
.wbs-lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: inline-block;
  vertical-align: middle;
}

.wbs-lang-tab .tab-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.wbs-lang-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.wbs-sort-select {
  background: #0e131d;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wbs-sort-select:focus {
  border-color: #059DFF;
  box-shadow: 0 0 10px rgba(5, 157, 255, 0.3);
}

/* ========================================================
   REVIEWS GRID & CARDS (CYBER DARK GLASS)
======================================================== */
.wbs-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.wbs-card {
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.9) 0%, rgba(9, 12, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.wbs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(5, 157, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.wbs-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 157, 255, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(5, 157, 255, 0.15);
}

.wbs-card:hover::before {
  opacity: 1;
}

.wbs-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.wbs-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059DFF 0%, #E33FA1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(227, 63, 161, 0.35);
}

.wbs-card-meta {
  flex: 1;
  min-width: 0;
}

.wbs-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.wbs-author-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Country Flag & Label */
.wbs-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.wbs-country-flag {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wbs-email-masked {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.wbs-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 157, 255, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.wbs-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wbs-card-stars {
  font-size: 16px;
  color: #fbbf24;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.wbs-card-date {
  font-size: 12px;
  color: #64748b;
}

.wbs-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.wbs-card-text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.wbs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
  margin-top: 10px;
}

.wbs-card-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
}

.wbs-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

.wbs-lang-tag-flag {
  width: 15px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

/* ========================================================
   PAGINATION (DARK CYBER)
======================================================== */
.wbs-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.wbs-pagination-info {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

.wbs-pagination-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wbs-page-btn {
  background: #0e131d;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 38px;
  text-align: center;
}

.wbs-page-btn:hover:not(:disabled) {
  background: #141b29;
  color: #ffffff;
  border-color: rgba(5, 157, 255, 0.35);
}

.wbs-page-btn.active {
  background: linear-gradient(90deg, #059DFF 0%, #6549D5 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(5, 157, 255, 0.4);
}

.wbs-page-btn:disabled,
.wbs-page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wbs-page-ellipsis {
  color: #64748b;
  padding: 0 4px;
  font-weight: 700;
}

/* ========================================================
   MODAL (DARK GLASS)
======================================================== */
.wbs-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wbs-modal.active {
  display: flex;
}

.wbs-modal-content {
  background: #0e131d;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 580px;
  width: 100%;
  color: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(5, 157, 255, 0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.wbs-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wbs-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.wbs-form-group {
  margin-bottom: 16px;
}

.wbs-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.wbs-form-input,
.wbs-form-textarea,
.wbs-form-select {
  width: 100%;
  background: #141b29;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.wbs-form-input:focus,
.wbs-form-textarea:focus,
.wbs-form-select:focus {
  border-color: #059DFF;
  box-shadow: 0 0 10px rgba(5, 157, 255, 0.25);
}

.wbs-star-picker span {
  font-size: 28px;
  cursor: pointer;
  color: #475569;
  transition: color 0.15s;
}

.wbs-star-picker span.active {
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 992px) {
  .wbs-scoreboard {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wbs-score-main {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .wbs-score-highlights {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 20px;
  }
  .wbs-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wbs-reviews-grid {
    grid-template-columns: 1fr;
  }
  .wbs-reviews-title {
    font-size: 28px;
  }
}
