/* ============================================
   THEME PICKER MODAL CSS
   ============================================
   Extracted from base.css PR 7/8 (2026-05-15).
   Theme picker modal grid + cards. Consumed by ThemePickerModal. */


/* ============================================
   THEME PICKER MODAL
   ============================================ */

.theme-picker-modal {
  max-width: 500px;
  width: 90%;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-base);
  padding: var(--space-lg);
  max-height: 60vh;
  overflow-y: auto;
}

.theme-card {
  background: var(--bg-card);
  border: var(--border-width-medium) solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: var(--space-base);
  text-align: center;
  transition: all var(--transition-default);
  cursor: pointer;
}

.theme-card:hover {
  border-color: var(--color-action-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-card-selected {
  border-color: var(--color-action-primary);
  border-width: var(--border-width-thick);
  background: var(--bg-highlight);
  position: relative;
  animation: selectionPulse 0.4s ease-out;
}

.theme-card-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.theme-card-colors {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}

.theme-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: var(--border-width-thin) solid rgba(0, 0, 0, 0.1);
}

.theme-card-checkmark {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  width: 24px;
  height: 24px;
  background: var(--color-action-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  animation: selectionPop var(--animation-pop);
}

.theme-picker-note {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
}
