/* ═══════════════════════════════════════════════════════════════
   WEEKLY INTENTIONS — Week screen role sections, intention
   cards, promote bottom sheet, and remove modal
   ═══════════════════════════════════════════════════════════════ */

/* ── Role Section ──────────────────────────────────────────── */

.week-role-section {
  margin-bottom: var(--space-8);
}

.week-role-section:last-child {
  margin-bottom: 0;
}

.week-role-header {
  margin-bottom: var(--space-3);
}

.week-role-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.week-role-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.week-role-vision {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
  padding-left: calc(0.5rem + var(--space-2)); /* align under name, past dot */
}

/* ── Intention Cards ───────────────────────────────────────── */

.week-intention-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.week-intention-card {
  padding: var(--space-4);
}

.week-intention-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

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

.week-intention-title {
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  word-break: break-word;
}

.week-intention-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.week-intention-project {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.week-intention-deadline {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.week-intention-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default),
              background var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  flex-shrink: 0;
}

.week-intention-remove:hover {
  color: var(--color-error);
  background: rgba(192, 120, 88, 0.08);
}

/* ── Completed State ───────────────────────────────────────── */

.week-intention-card--completed {
  opacity: 0.6;
}

.week-intention-card--completed .week-intention-title {
  text-decoration: line-through;
  color: var(--color-text-tertiary);
}

.week-intention-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── Empty State ───────────────────────────────────────────── */

.week-empty-state {
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.week-empty-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ── Soft Cap Nudge ────────────────────────────────────────── */

.week-soft-cap-nudge {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  text-align: center;
  margin-top: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

/* ── Add Intention Button ──────────────────────────────────── */

.week-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  background: transparent;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
}

.week-add-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-faint);
}

.week-add-btn:active {
  transform: scale(0.98);
}

/* ── Promote Bottom Sheet ──────────────────────────────────── */

.promote-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 51, 48, 0.4);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn var(--duration-fast) var(--ease-default);
}

.promote-sheet-overlay[hidden] {
  display: none;
}

.promote-sheet {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: var(--max-width-app);
  max-height: 75dvh;
  display: flex;
  flex-direction: column;
  animation: sheetSlideUp var(--duration-normal) var(--ease-default);
  padding-bottom: calc(var(--safe-area-bottom) + var(--space-4));
}

@keyframes sheetSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promote-sheet-header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  flex-shrink: 0;
}

.promote-sheet-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.promote-sheet-close:hover {
  color: var(--color-text-primary);
}

.promote-sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) 0;
  flex: 1;
}

/* ── Promote Task Item ─────────────────────────────────────── */

.week-promote-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
}

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

.week-promote-item:hover {
  background: var(--color-surface-muted);
}

.week-promote-item:active {
  background: var(--color-accent-faint);
}

.week-promote-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.week-promote-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.week-promote-item-title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  word-break: break-word;
}

.week-promote-item-project {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.week-promote-deadline {
  color: var(--color-text-secondary);
}

.week-promote-item-arrow {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

/* ── Promote Empty / Loading ───────────────────────────────── */

.week-promote-empty,
.week-promote-loading {
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

