/**
 * Weekly Progress Bar Component Styles
 * Shows weekly progress dots in the Journey section on the homepage
 */

.weekly-progress-bar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

.week-progress-content {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Individual day container */
.week-progress-dot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Progress dots */
.week-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  cursor: default;
}

/* Day labels */
.week-progress-dot-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}

/* Dot states */
.week-progress-dot--complete {
  background: var(--success);
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.4);
}

.week-progress-dot--complete-plus {
  background: var(--success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

.week-progress-dot--partial {
  background: var(--warning);
}

.week-progress-dot--missed {
  background: var(--error);
  opacity: 0.5;
}

.week-progress-dot--today {
  background: var(--primary);
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
  animation: pulse 2s infinite;
}

.week-progress-dot--future {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* Pulse animation for today and complete-plus */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Hover effects */
.week-progress-dot-container:hover .week-progress-dot {
  transform: scale(1.2);
}

.week-progress-dot-container:hover .week-progress-dot-label {
  color: var(--text-secondary);
}

/* Hide for non-premium users */
body:not(.premium) .weekly-progress-bar {
  display: none;
}

/* In-card layout for Journey section */
.journey-section .weekly-progress-bar {
  background: transparent;
  border: 0;
  padding: 0 0 var(--space-sm) 0;
  min-height: 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .week-progress-content {
    gap: 12px;
  }
  
  .week-progress-dot {
    width: 6px;
    height: 6px;
  }
  
  .week-progress-dot-label {
    font-size: 9px;
  }
}
