/* Workout Plan Generator - Enhanced Styling */

/* Tool Container */
.bv-workout-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;
}

/* Progress Section */
.bv-progress-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-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bv-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.bv-step-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #64748b;
}

.bv-current-step {
  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;
}

.bv-progress-bar-container {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bv-progress-bar {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  height: 100%;
  transition: width 0.3s ease;
}

.bv-progress-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

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

.bv-step {
  display: none;
}

.bv-step-active {
  display: block;
}

.bv-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.bv-form-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bv-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.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-form-group input,
.bv-form-group select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

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

.bv-form-group input:hover,
.bv-form-group select:hover {
  border-color: #94a3b8;
}

.bv-input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.bv-input-with-unit input {
  padding-right: 50px;
}

.bv-unit {
  position: absolute;
  right: 16px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Goals Section */
.bv-goals-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: center;
}

.bv-goals-section p {
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}

.bv-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bv-goal-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.bv-goal-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.bv-goal-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.bv-goal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.bv-goal-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.bv-goal-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* Training Section */
.bv-training-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: center;
}

.bv-env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.bv-env-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bv-env-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.bv-env-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.bv-env-icon {
  font-size: 1.5rem;
}

.bv-env-card span {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

/* Equipment Section */
.bv-equipment-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: center;
}

.bv-equipment-section p {
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}

.bv-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.bv-equipment-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bv-equipment-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.bv-equipment-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.bv-equipment-icon {
  font-size: 1.5rem;
}

.bv-equipment-card span {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

/* Navigation Buttons */
.bv-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.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);
  flex: 1;
  max-width: 200px;
}

.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;
  flex: 1;
  max-width: 200px;
}

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

.bv-btn-generate {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex: 1;
  max-width: 250px;
}

.bv-btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Results Section */
.bv-results-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  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-plan-summary {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  color: #0c4a6e;
}

.bv-workout-plan {
  margin: 2rem 0;
}

.bv-plan-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

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

/* 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-workout-container {
    padding: 1rem;
    margin: 1rem;
  }

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

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

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

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

  .bv-progress-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .bv-nav-buttons {
    flex-direction: column;
  }

  .bv-btn {
    max-width: none;
  }

  .bv-goals-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .bv-equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .bv-plan-actions {
    flex-direction: column;
  }
}

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

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

  .bv-goal-card,
  .bv-equipment-card {
    padding: 1rem;
  }

  .bv-tool-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}