/* === PROGRAM APP STYLES === */

.program-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 32px 64px;
}

/* Header */
.program-header {
  margin-bottom: 48px;
}

.program-title {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 16px;
}

.program-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

/* Progress bar */
.progress-bar-wrap {
  max-width: 500px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.progress-track {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
  max-width: 100%;
}

/* Loading state */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Week cards */
.program-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.week-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.week-card-header:hover {
  background: var(--accent-dim);
}

.week-card-header.open:hover {
  background: var(--accent-dim);
}

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

.week-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.week-title {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.week-focus {
  font-size: 13px;
  color: var(--text-muted);
}

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

.week-day-count {
  font-size: 12px;
  color: var(--text-muted);
}

.week-progress {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.week-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.week-card-header.open .week-chevron {
  transform: rotate(180deg);
}

/* Week body */
.week-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.week-body.open {
  display: block;
}

/* Day rows */
.day-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 0;
}

.day-row:hover {
  background: var(--accent-glow);
}

.day-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s ease;
  background: transparent;
}

.day-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.day-checkbox svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.day-checkbox.checked svg {
  opacity: 1;
}

.day-content {
  flex: 1;
  min-width: 0;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.day-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day-title {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.day-row.completed .day-title {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

.day-duration {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.day-drill {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.day-tips {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
}

/* Nav link */
.nav-home-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-home-link:hover {
  color: var(--accent);
}

/* Footer */
.program-footer {
  margin-top: 64px;
}

/* Mobile */
@media (max-width: 600px) {
  .program-main {
    padding: 90px 16px 48px;
  }

  .week-card-header {
    padding: 16px;
  }

  .week-focus {
    display: none;
  }

  .day-row {
    padding: 14px 16px;
  }

  .day-title {
    font-size: 14px;
  }

  .day-drill {
    font-size: 13px;
  }
}

/* Locked day rows */
.day-row.locked {
  cursor: default;
  opacity: 0.7;
}

.day-row.locked:hover {
  background: transparent;
}

.day-lock-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-top: 2px;
}

.day-locked-msg {
  margin-top: 8px;
}