@layer pages {
/* ═══════════════════════════════════════════════════════════════════
   PROFILE
   ======================================================================= */
.profile-page { padding-bottom: var(--space-5); }

.profile-hero {
  background: var(--surface);
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.profile-hero__botanical { position: absolute; right: 16px; top: 16px; opacity: 0.13; pointer-events: none; }

.profile-hero__inner { display: flex; align-items: flex-start; gap: var(--space-4); }

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  color: var(--brand-hover);
  flex-shrink: 0; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.profile-username { font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: var(--space-2); }
.profile-bio { font-size: var(--font-size-sm); color: var(--text-secondary); line-height: var(--line-height-base); }

.profile-stats {
  display: flex;
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  gap: 0;
}
.profile-stat { flex: 1; text-align: center; }
.profile-stat__val {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  line-height: 1.2;
}
.profile-stat__label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.profile-stat + .profile-stat { border-left: 1px solid var(--border); }
.profile-stat__val--brand { color: var(--brand); }

/* ── Dashboard hero — identity row ─────────────────────────────────── */
.dash-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.dash-hero__identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.dash-hero__avatar {
  width: 52px;
  height: 52px;
  font-size: var(--font-size-lg);
}
.dash-hero__name {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}
.dash-hero__username {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD
   ======================================================================= */
.dashboard-page { padding-bottom: var(--space-5); }

.dashboard-header {
  padding: var(--space-5) var(--space-5) 0;
}
.dashboard-greeting {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.dashboard-sub { font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: var(--space-4); }

/* Welcome card onboarding — utilizator cu 0 rețete */
.welcome-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: var(--space-4) var(--space-5);
  overflow: hidden;
}
.welcome-card__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
  z-index: 1;
}
.welcome-card__close:hover { background: var(--border); color: var(--text-primary); }
.welcome-card__close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.welcome-card__header {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.welcome-card__botanical {
  position: absolute; right: var(--space-4); top: var(--space-3);
  pointer-events: none;
}
.welcome-card__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-1);
}
.welcome-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.welcome-card__steps {
  display: flex; flex-direction: column;
  padding: 0 var(--space-3) var(--space-3);
}
.welcome-step {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--duration-fast);
}
.welcome-step:hover { background: var(--surface-2); text-decoration: none; }
.welcome-step:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

.welcome-step__num {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.welcome-step__body { flex: 1; }
.welcome-step__body strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}
.welcome-step__body span {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.welcome-step svg { color: var(--text-muted); flex-shrink: 0; }

/* Step completat */
.welcome-step--done { opacity: 0.55; }
.welcome-step--done .welcome-step__num {
  background: var(--brand); color: #fff; font-size: 11px;
}
.welcome-step--done .welcome-step__body strong { text-decoration: line-through; text-decoration-color: var(--text-muted); }

/* Split step (2a / 2b) */
.welcome-step__split {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--brand-soft);
  margin-left: 16px;
  padding-left: var(--space-2);
}
.welcome-step__split .welcome-step { padding: var(--space-2) var(--space-3); }
.welcome-step__split .welcome-step__num {
  font-size: 10px; width: 24px; height: 24px;
}

/* CTA ink — adauga reteta */
.dashboard-cta {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--text-primary);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-decoration: none;
  margin: var(--space-4);
  transition: opacity var(--duration-fast);
}
.dashboard-cta:hover { opacity: 0.9; text-decoration: none; }
.dashboard-cta__text { flex: 1; }
.dashboard-cta__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); }
.dashboard-cta__sub   { font-size: var(--font-size-xs); opacity: 0.6; }
.dashboard-cta__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-full, 50%);
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Dashboard quick actions — import, propuneri */
.dash-quick-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dash-quick-actions::-webkit-scrollbar { display: none; }
.dash-quick-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.dash-quick-action:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-primary);
  text-decoration: none;
}
.dash-quick-action svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Dashboard recipe row (cu status + like/view) */
.dash-recipe-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.dash-recipe-row:hover { background: var(--surface); text-decoration: none; }
.dash-recipe-row__thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dash-recipe-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-recipe-row__body { flex: 1; min-width: 0; }
.dash-recipe-row__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.dash-recipe-row__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--font-size-xs); color: var(--text-muted); flex-wrap: wrap;
}
.dash-recipe-row__actions { display: flex; gap: var(--space-1); flex-shrink: 0; }
.dash-action-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: background var(--duration-fast), color var(--duration-fast);
  text-decoration: none;
}
.dash-action-btn:hover { background: var(--surface-2); color: var(--text-primary); text-decoration: none; }
.dash-action-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.dash-action-btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.dash-action-btn--disabled { opacity: 0.35; cursor: not-allowed; }
.dash-action-btn--disabled:hover { background: none; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   COLLECTIONS
   ======================================================================= */
.collections-page { padding-bottom: var(--space-5); }

/* Collection card grid */
.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--duration-fast);
}
.collection-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }

.collection-card--featured { margin: 0 var(--space-5) 0; }
.collection-card--featured .collection-cover { height: 160px; }

.collection-cover {
  height: 110px;
  background: var(--border);
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
}
.collection-cover__thumb { background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.collection-cover__thumb img { width: 100%; height: 100%; object-fit: cover; }

.collection-card__badge {
  position: absolute; top: 8px; left: 8px;
  z-index: 1;
}

.collection-botanical { position: absolute; right: 8px; top: 6px; opacity: 0.15; pointer-events: none; z-index: 1; }

.collection-card__body { padding: 11px 12px 13px; }
.collection-card__title {
  font-family: var(--font-family-serif);
  font-size: 17px;
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  margin-bottom: 4px; line-height: 1.25;
}
.collection-card__desc { font-size: var(--font-size-xs); color: var(--text-muted); margin-bottom: var(--space-2); }
.collection-card__meta { font-size: 13px; color: var(--text-disabled); }

/* Card nou — dashed */
.collection-card--new {
  border: 1.5px dashed var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  min-height: 168px; flex-direction: column; gap: var(--space-2);
  color: var(--text-muted); font-size: var(--font-size-sm);
  cursor: pointer; border-radius: var(--radius-2xl);
  transition: border-color var(--duration-fast), color var(--duration-fast);
  padding: var(--space-4);
  text-decoration: none;
}
.collection-card--new:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.collection-card--new__icon {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.collection-card--new__icon svg { width: 20px; height: 20px; stroke: var(--text-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.collection-card--new:hover .collection-card--new__icon { border-color: var(--brand); }
.collection-card--new:hover .collection-card--new__icon svg { stroke: var(--brand); }
.collection-card--new__label { font-size: 14px; color: var(--text-muted); text-align: center; line-height: 1.4; }

/* Grid colectii */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 var(--space-5);
}

/* Featured body */
.collection-featured__body { padding: 14px 16px 18px; }
.collection-featured__title {
  font-family: var(--font-family-serif);
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}
.collection-featured__desc { font-size: var(--font-size-sm); color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.collection-featured__stats { display: flex; align-items: center; gap: 14px; }
.collection-featured__stat { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-disabled); }
.collection-featured__stat svg { width: 14px; height: 14px; stroke: var(--text-disabled); fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* Preview ultima rețetă în featured */
.collection-featured__preview {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.collection-featured__preview-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--border); flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.collection-featured__preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.collection-featured__preview-body { flex: 1; min-width: 0; }
.collection-featured__preview-label {
  font-size: var(--font-size-xs); color: var(--brand);
  font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 2px;
}
.collection-featured__preview-title {
  font-family: var(--font-family-serif);
  font-size: 15px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.collection-featured__preview-arrow { color: var(--border-strong); font-size: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS
   ======================================================================= */
.settings-page { padding-bottom: var(--space-7); }

/* Theme selector (3 carduri: Auto / Luminos / Intunecat) */
.theme-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.theme-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--space-3) var(--space-2);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
  text-align: center;
}
.theme-option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.theme-option.active { border-color: var(--brand); background: var(--brand-soft); }
.theme-option svg { width: 20px; height: 20px; stroke: var(--text-muted); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.theme-option.active svg { stroke: var(--brand); }
.theme-option__label { font-size: var(--font-size-xs); color: var(--text-secondary); font-weight: var(--font-weight-medium); }
.theme-option.active .theme-option__label { color: var(--brand-hover); }

/* ═══════════════════════════════════════════════════════════════════
   NOTIFICĂRI (notificari.php) — macheta 21_notificari.html
   ======================================================================= */

/* Page wrap — padding consistent, spațiu tab bar */
.page-wrap {
  padding: var(--space-4) var(--space-4) calc(72px + var(--space-6));  /* mobile-first base */
}

/* Header pagină */
.page-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-2);  /* mobile-first */
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.page-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.page-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
}

/* Badge unread roșu lângă titlu */
.unread-badge {
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--space-1);
  line-height: 1;
}

/* Buton marchează toate citite */
.mark-all-btn {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.mark-all-btn:hover { background: var(--surface); color: var(--text-secondary); }

/* Lista notificări */
.notif-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);  /* mobile-first base */
  padding: var(--space-3);  /* mobile-first base */
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--duration-fast);
  cursor: default;
}
.notif-row:last-child { border-bottom: none; }
.notif-row.unread { background: var(--brand-soft); }
.notif-row:hover  { background: var(--surface-2); }

/* Icon tip notificare */
.notif-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-icon svg {
  width: 15px; height: 15px;
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Body mesaj + timestamp */
.notif-body { flex: 1; min-width: 0; }
.notif-msg {
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}
.notif-row.unread .notif-msg {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}
.notif-time {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 3px;
}

/* Dot indicator necitit */
.notif-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Empty state icon (pentru notif + alte pagini) */
.empty-icon {
  margin: 0 auto var(--space-4);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.30;
}
.empty-icon svg {
  width: 40px; height: 40px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 1.3; stroke-linecap: round;
}
.empty-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  text-align: center;
}
.empty-sub {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-base);
  text-align: center;
}


/* ── Mobile-first — ≥ 481px restaurare desktop ─────────────────── */
@media (min-width: 481px) {
  .dashboard-cta {
    margin: var(--space-4) var(--space-5);
  }
  .page-wrap {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
  .page-hdr {
    flex-wrap: nowrap;
    gap: var(--space-4);
  }
  .notif-row {
    gap: var(--space-3);
    padding: var(--space-4);
  }
}
} /* end @layer pages */
