/* Additional component styles */

/* Feature Cards on Home */
.feature-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-card .feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Dashboard Quick Actions */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.quick-action .action-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.quick-action span {
  font-weight: 600;
  color: var(--gray-700);
}

/* Activity Feed */
.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content h6 {
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.activity-content small {
  color: var(--gray-500);
}

/* Exercise Library Filters */
.filter-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.filter-section .search-box {
  position: relative;
}

.filter-section .search-box input {
  padding-left: 3rem;
}

.filter-section .search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.filter-chip:hover {
  background: var(--gray-200);
}

.filter-chip.active {
  background: var(--primary);
  color: var(--white);
}

/* Exercise Detail */
.exercise-detail {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
}

.exercise-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2rem;
}

.exercise-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.exercise-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exercise-instructions {
  padding: 2rem;
}

.instruction-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  padding-top: 0.25rem;
}

/* Progress Chart Section */
.progress-section {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.progress-section h4 {
  margin-bottom: 1.5rem;
  color: var(--dark);
}

/* Meal Log Form */
.meal-form {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
}

.meal-type-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meal-tab {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.meal-tab:hover {
  background: var(--gray-200);
}

.meal-tab.active {
  background: var(--primary);
  color: var(--white);
}

/* Macro Display */
.macro-display {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.macro-item {
  padding: 1rem;
}

.macro-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.macro-item .label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.macro-item.protein .value { color: #3b82f6; }
.macro-item.carbs .value { color: #f59e0b; }
.macro-item.fat .value { color: #ef4444; }

/* Calendar Day */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gray-100);
}

.calendar-day:hover {
  background: var(--gray-200);
}

.calendar-day.workout {
  background: var(--primary);
  color: var(--white);
}

.calendar-day.today {
  border: 2px solid var(--primary);
}

.calendar-day.rest {
  background: var(--gray-200);
  color: var(--gray-500);
}

/* Goal Progress Ring */
.goal-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.goal-progress svg {
  transform: rotate(-90deg);
}

.goal-progress .progress-circle {
  fill: none;
  stroke-width: 8;
}

.goal-progress .progress-bg {
  stroke: var(--gray-200);
}

.goal-progress .progress-fill {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.goal-progress .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.goal-progress .progress-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.goal-progress .progress-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Workout Builder */
.exercise-builder {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.exercise-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.sets-table {
  width: 100%;
  margin-top: 1rem;
}

.sets-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 0.5rem;
}

.sets-table td {
  padding: 0.5rem;
}

.set-input {
  width: 60px;
  padding: 0.375rem;
  text-align: center;
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
}

/* Streak Display */
.streak-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 2rem;
  color: var(--white);
  font-weight: 700;
}

.streak-display i {
  font-size: 1.25rem;
}

/* Profile Header */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  color: var(--primary);
  font-weight: 700;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

/* Badge Rarity Styles */
.badge-common { background: #9ca3af; }
.badge-uncommon { background: #22c55e; }
.badge-rare { background: #3b82f6; }
.badge-epic { background: #a855f7; }
.badge-legendary { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner {
  width: 60px;
  height: 60px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.toast {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }
