/* Streamlined Routines Selection CSS */

/* Selection Container */
.routine-selection-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.streamlined-selector {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  position: relative;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5D5FEF 0%, #7B7DFF 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Back Button */
.back-button {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.back-button:hover {
  color: #5D5FEF;
}

/* Titles */
.selector-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.selector-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

/* Goal Cards */
.goal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.goal-card {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.goal-card:hover {
  border-color: #5D5FEF;
  background: #f0f1ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 95, 239, 0.15);
}

.goal-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.goal-card h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

/* Quick Select */
.quick-select {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.quick-select p {
  color: #666;
  margin-bottom: 0.5rem;
}

.btn-secondary {
  background: none;
  border: 2px solid #5D5FEF;
  color: #5D5FEF;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #5D5FEF;
  color: white;
}

/* Condition Grid */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.condition-btn {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.condition-btn:hover {
  border-color: #5D5FEF;
  background: #f8f9ff;
}

.condition-btn.selected {
  border-color: #5D5FEF;
  background: #5D5FEF;
  color: white;
}

.condition-icon {
  font-size: 2rem;
}

/* Level Cards */
.level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.level-card {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.level-card:hover {
  border-color: #5D5FEF;
  background: #f0f1ff;
}

.level-card h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.level-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Wellness Options */
.wellness-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.wellness-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.wellness-card:hover {
  border-color: #5D5FEF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 95, 239, 0.15);
}

.wellness-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Duration Options */
.duration-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.duration-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.duration-card:hover {
  border-color: #5D5FEF;
  background: #f8f9ff;
}

.duration-time {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #5D5FEF;
  margin-bottom: 0.5rem;
}

.duration-label {
  color: #666;
  font-size: 0.9rem;
}

/* Skip Option */
.skip-option {
  text-align: center;
  margin-top: 1rem;
}

.btn-text {
  background: none;
  border: none;
  color: #5D5FEF;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
}

.btn-text:hover {
  color: #4547d8;
}

/* Recommendations List */
.recommendations-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.routine-recommendation-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.routine-recommendation-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.routine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.routine-header h3 {
  font-size: 1.25rem;
  color: #333;
  margin: 0;
}

.favorite-btn {
  background: none;
  border: none;
  color: #ddd;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.5rem;
}

.favorite-btn:hover {
  color: #ff6b6b;
}

.favorite-btn.active {
  color: #ff6b6b;
}

.routine-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #666;
  font-size: 0.9rem;
}

.meta-item i {
  color: #5D5FEF;
}

.routine-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.routine-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background: #f0f1ff;
  color: #5D5FEF;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.start-routine-btn {
  width: 100%;
  background: #5D5FEF;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.start-routine-btn:hover {
  background: #4547d8;
}

/* More Options */
.more-options {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .streamlined-selector {
    padding: 1.5rem;
  }
  
  .selector-title {
    font-size: 1.5rem;
  }
  
  .goal-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .goal-card {
    padding: 1.5rem 1rem;
  }
  
  .goal-icon {
    font-size: 2rem;
  }
  
  .condition-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .back-button {
    position: static;
    margin-bottom: 1rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.streamlined-selector {
  animation: fadeIn 0.3s ease;
}

/* Hide traditional categories when streamlined is active */
.routine-selection-container:not(.hidden) ~ .routine-categories-wrapper {
  display: none;
}

/* Loading State */
.routine-loading {
  text-align: center;
  padding: 3rem;
}

.routine-loading i {
  font-size: 3rem;
  color: #5D5FEF;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}