/* Best US Cities Tool - Enhanced Styling */

/* Tool Container */
.bv-tool-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

/* Tool Header */
.bv-tool-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.bv-header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bv-tool-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bv-tool-description {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Statistics Section */
.bv-tool-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.bv-stat {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.bv-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
}

.bv-stat-label {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Referral Links Section */
.bv-referrals-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
}

/* Form Sections */
.bv-form-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.bv-form-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.bv-section-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Form Grid */
.bv-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bv-form-group {
  display: flex;
  flex-direction: column;
}

.bv-form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.bv-select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bv-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bv-select:hover {
  border-color: #94a3b8;
}

/* Importance Sliders */
.bv-importance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.bv-slider-group {
  display: flex;
  flex-direction: column;
}

.bv-slider-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bv-slider-group label span {
  font-weight: 700;
  color: #3b82f6;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.bv-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bv-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.bv-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bv-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Buttons */
.bv-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.bv-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  width: 100%;
  margin-top: 1rem;
}

.bv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.bv-btn-secondary {
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  margin-top: 2rem;
}

.bv-btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-1px);
}

/* Results Section */
.bv-results-section {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.bv-results-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.bv-results-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.bv-results-header p {
  color: #64748b;
  font-size: 1rem;
}

/* Cities Grid */
.bv-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.bv-city-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bv-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.bv-city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.bv-city-rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.bv-city-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  padding-right: 50px;
}

.bv-city-score {
  margin-bottom: 1rem;
}

.bv-score-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.bv-score-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bv-score-match {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid currentColor;
}

.bv-score-description {
  font-size: 0.85rem;
  color: #64748b;
  font-style: italic;
}

.bv-city-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.bv-city-detail {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.bv-city-detail:last-child {
  border-bottom: none;
}

.bv-city-detail strong {
  color: #374151;
}

/* Tool Footer */
.bv-tool-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.bv-tool-disclaimer {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.bv-tool-disclaimer h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.bv-tool-disclaimer p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bv-tool-container {
    padding: 1rem;
    margin: 1rem;
  }

  .bv-tool-title {
    font-size: 1.8rem;
  }

  .bv-form-section {
    padding: 1.5rem;
  }

  .bv-form-grid,
  .bv-importance-grid {
    grid-template-columns: 1fr;
  }

  .bv-cities-grid {
    grid-template-columns: 1fr;
  }

  .bv-city-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bv-tool-container {
    margin: 0.5rem;
    padding: 1rem;
  }

  .bv-form-section {
    padding: 1rem;
  }

  .bv-city-card {
    padding: 1rem;
  }
}