/* ── Pesach theme custom properties ─────────────────────────────────────── */
:root {
  --pesach-50: #fef7ec;
  --pesach-100: #fdecd0;
  --pesach-200: #f9d49f;
  --pesach-300: #f3b95c;
  --pesach-400: #e8992e;
  --pesach-500: #c97d1e;
  --pesach-600: #a4621a;
  --pesach-700: #7e4915;
  --pesach-800: #5a3210;
  --pesach-900: #3c200a;
}

/* ── App header override — pesach gradient ───────────────────────────────── */
.ab-app-header {
  background: linear-gradient(135deg, var(--pesach-700) 0%, var(--pesach-900) 100%);
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.pc-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.pc-card--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.pc-card--clickable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.pc-card--clickable:active {
  transform: translateY(0);
}

/* ── Badge ───────────────────────────────────────────────────────────────── */
.pc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.pc-badge--priority-critical {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.pc-badge--priority-important {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fcd34d;
}

.pc-badge--priority-nice-to-have {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
}

.pc-badge--room {
  background: var(--pesach-50);
  color: var(--pesach-700);
  border: 1px solid var(--pesach-200);
}

.pc-badge--status-pending {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.pc-badge--status-in-progress {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #93c5fd;
}

.pc-badge--status-done {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
}

/* ── Floating Action Button ──────────────────────────────────────────────── */
.pc-fab {
  position: fixed;
  bottom: 5rem;
  left: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--pesach-500);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  z-index: 50;
}

.pc-fab:hover {
  background: var(--pesach-600);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.pc-fab:active {
  transform: scale(0.94);
}

/* ── Circle status toggle button ─────────────────────────────────────────── */
.pc-circle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.pc-circle-btn--pending {
  color: #9ca3af;
  border-color: #d1d5db;
}

.pc-circle-btn--pending:hover {
  color: var(--pesach-500);
  border-color: var(--pesach-400);
}

.pc-circle-btn--in-progress {
  color: #2563eb;
  border-color: #93c5fd;
  background: #eff6ff;
}

.pc-circle-btn--done {
  color: #16a34a;
  border-color: #86efac;
  background: #f0fdf4;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.pc-progress-bar {
  width: 100%;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.pc-progress-bar__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--pesach-400) 0%, var(--pesach-600) 100%);
  transition: width 0.4s ease;
}

.pc-progress-bar__fill--done {
  background: linear-gradient(90deg, #34d399 0%, #16a34a 100%);
}

/* ── Accordion ───────────────────────────────────────────────────────────── */
.pc-accordion {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.pc-accordion--open {
  max-height: 600px;
  opacity: 1;
}

/* ── Difficulty dots ─────────────────────────────────────────────────────── */
.pc-difficulty-dots {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
}

.pc-difficulty-dots__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d1d5db;
  transition: background 0.15s ease;
}

.pc-difficulty-dots__dot--filled {
  background: var(--pesach-500);
}

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.pc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
  animation: pc-fade-in 0.15s ease;
}

@media (min-width: 640px) {
  .pc-modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

.pc-modal {
  background: #ffffff;
  border-radius: 1rem 1rem 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
  animation: pc-slide-up 0.2s ease;
}

@media (min-width: 640px) {
  .pc-modal {
    border-radius: 1rem;
    max-width: 36rem;
    max-height: 88vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: pc-fade-in 0.15s ease;
  }
}

.pc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pc-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pesach-900);
}

.pc-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #6b7280;
  padding: 0.25rem;
  border-radius: 0.25rem;
  line-height: 1;
}

.pc-modal__close:hover {
  color: #111827;
}

/* ── Tab active state ────────────────────────────────────────────────────── */
.ab-app-tab.ab-active,
.ab-app-nav-item.ab-active {
  color: var(--pesach-600);
  border-bottom-color: var(--pesach-500);
}

.pc-tab-active {
  color: var(--pesach-600);
  border-bottom: 2px solid var(--pesach-500);
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes pc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pc-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.pc-section-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pesach-700);
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--pesach-100);
}

/* ── Stat card ───────────────────────────────────────────────────────────── */
.pc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pesach-50);
  border: 1px solid var(--pesach-100);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.pc-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pesach-700);
  line-height: 1;
}

.pc-stat__label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.pc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 400px) {
  .pc-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.pc-content-pad {
  padding: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.pc-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

.pc-empty-state__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pc-empty-state__text {
  font-size: 1rem;
  color: #6b7280;
}

/* RTL-aware flex row */
.pc-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.pc-row--between {
  justify-content: space-between;
}

.pc-row--end {
  justify-content: flex-end;
}

.pc-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.375rem;
}
