/* ─────────────────────────────────────────────
   FAMILY KITCHEN — styles
   Prefix: fk__
   ───────────────────────────────────────────── */

/* ── Base shell ───────────────────────────────── */
.fk {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--color-bg-base);
  font-family: var(--font-body);
}

/* ── Scroll body (shared) ─────────────────────── */
.fk__scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 0;
  -webkit-overflow-scrolling: touch;
}

/* ── Home body ────────────────────────────────── */
.fk__body {
  padding: 0 20px;
  overflow-y: auto;
  flex: 1;
}

/* ══════════════════════════════════════════════
   HERO — home
   ══════════════════════════════════════════════ */
.fk--home .fk__hero {
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg,#1a2e20 0%,#2d5240 55%,#4a7a5a 100%);
  padding: 56px 24px 28px;
}

.fk__hero-bubble {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.fk__hero-back {
  position: absolute;
  top: 16px; left: 20px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.fk__hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245,240,232,.6);
  margin-bottom: 6px;
}

.fk__hero-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: #f5f0e8;
  line-height: 1.1;
  margin-bottom: 16px;
}

.fk__members-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
}

.fk__members-pill-label {
  font-size: 13px;
  font-weight: 600;
  color: #f5f0e8;
}

/* ══════════════════════════════════════════════
   HOME body
   ══════════════════════════════════════════════ */

/* Mini chart */
.fk__mini-chart {
  background: var(--color-bg-surface);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0 12px;
}

.fk__mini-chart-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 10px;
}

.fk__mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-bottom: 10px;
}

.fk__mini-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-subtle);
}

/* AI alert */
.fk__ai-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg,rgba(61,90,64,.08),rgba(74,122,90,.06));
  border: 1px solid rgba(61,90,64,.15);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.fk__ai-alert-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg,#3d5a40,#2d4a30);
  display: flex; align-items: center; justify-content: center;
}

.fk__ai-alert-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.fk__ai-alert-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Section header */
.fk__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fk__section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.fk__link-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Upcoming */
.fk__upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.fk__upcoming-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 12px 14px;
}

.fk__upcoming-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.fk__upcoming-info { flex: 1; }

.fk__upcoming-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.fk__upcoming-meta {
  font-size: 12px;
  color: var(--color-text-subtle);
}

.fk__upcoming-avatars { display: flex; }

/* Quick grid */
.fk__quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.fk__quick-card {
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fk__quick-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}

.fk__quick-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.fk__quick-sub {
  font-size: 11px;
  color: var(--color-text-subtle);
}

/* CTA row */
.fk__cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 32px;
}

.fk__cta-half {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  font-family: var(--font-body);
}

.fk__cta-half--green {
  background: linear-gradient(135deg,#3d5a40,#2a4a2a);
  color: #f5f0e8;
}

.fk__cta-half--outline {
  background: var(--color-bg-surface);
  color: var(--color-brand-primary);
  border: 1.5px solid rgba(61,90,64,.25);
}

/* ══════════════════════════════════════════════
   LIGHT SCREENS (members, planner, shopping, etc.)
   ══════════════════════════════════════════════ */
.fk--light {
  background: var(--color-bg-base);
}

.fk__light-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 56px 20px 16px;
  background: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border-subtle);
}

.fk__back-light {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.fk__light-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.fk__light-sub {
  font-size: 12px;
  color: var(--color-text-subtle);
}

/* Section labels */
.fk__sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════
   MEMBERS
   ══════════════════════════════════════════════ */
.fk__member-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg-surface);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
}

.fk__member-avatar {
  width: 58px; height: 58px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.fk__member-info { flex: 1; }

.fk__member-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.fk__member-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.fk__member-sub {
  font-size: 12px;
  color: var(--color-text-subtle);
  margin-top: 2px;
}

.fk__chip {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  cursor: default;
  display: inline-block;
}

button.fk__chip {
  cursor: pointer;
}

.fk__chip--green {
  background: var(--color-brand-primary) !important;
  color: #fff !important;
}

.fk__invite-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-surface);
  border: 1.5px dashed var(--color-border-subtle);
  border-radius: 16px;
  padding: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-top: 4px;
}

.fk__invite-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.fk__invite-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.fk__invite-sub {
  font-size: 12px;
  color: var(--color-text-subtle);
}

/* ══════════════════════════════════════════════
   MEMBER DETAIL
   ══════════════════════════════════════════════ */
.fk--detail { background: var(--color-bg-base); }

.fk__detail-hero {
  flex-shrink: 0;
  padding: 60px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.fk__detail-back {
  position: absolute;
  top: 16px; left: 20px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.fk__detail-avatar {
  width: 68px; height: 68px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  background: rgba(255,255,255,.15);
}

.fk__detail-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #f5f0e8;
  margin-bottom: 4px;
}

.fk__detail-role {
  font-size: 13px;
  color: rgba(245,240,232,.7);
}

.fk__detail-card {
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.fk__detail-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.fk__day-cell {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════
   PLANNER
   ══════════════════════════════════════════════ */
.fk__plan-day {
  background: var(--color-bg-surface);
  border-radius: 16px;
  overflow: hidden;
}

.fk__plan-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.fk__plan-day-label {
  font-size: 13px;
  font-weight: 700;
}

.fk__plan-badge {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}

.fk__primary-btn {
  width: 100%;
  background: linear-gradient(135deg,#3d5a40,#2a4a2a);
  color: #f5f0e8;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
}

/* ══════════════════════════════════════════════
   SHOPPING
   ══════════════════════════════════════════════ */
.fk__shop-progress {
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.fk__shop-group { margin-bottom: 16px; }

.fk__shop-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 8px;
}

.fk__shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.fk__shop-check {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 2px solid var(--color-border-subtle);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.fk__shop-check--done {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.fk__shop-info { flex: 1; }

.fk__shop-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.fk__shop-name--done {
  text-decoration: line-through;
  color: var(--color-text-subtle);
}

.fk__shop-meta {
  font-size: 12px;
  color: var(--color-text-subtle);
}

.fk__shop-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.fk__shop-insight {
  background: var(--color-brand-primary-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   PANTRY
   ══════════════════════════════════════════════ */
.fk__pantry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fk__pantry-item {
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 14px;
}

/* ══════════════════════════════════════════════
   RECOMMENDATIONS
   ══════════════════════════════════════════════ */
.fk--recs { background: var(--color-bg-base); }

.fk__recs-hero {
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg,#1a2e20 0%,#2d5240 55%,#4a7a5a 100%);
  padding: 56px 24px 28px;
}

.fk__recs-star-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(212,168,48,.2);
  border: 1.5px solid rgba(212,168,48,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.fk__rec-card {
  background: var(--color-bg-surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
}

.fk__rec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.fk__rec-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.fk__rec-why {
  background: var(--color-brand-primary-soft);
  border-radius: 10px;
  padding: 8px 12px;
}

.fk__rec-why-text {
  font-size: 12px;
  color: var(--color-brand-primary);
  font-weight: 500;
}

.fk__rec-cta {
  margin-top: 10px;
  width: 100%;
  background: linear-gradient(135deg,#3d5a40,#2a4a2a);
  color: #f5f0e8;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}

/* ══════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════ */
.fk__timeline {
  position: relative;
}

.fk__tl-section { margin-bottom: 24px; }

.fk__tl-day-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-subtle);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.fk__tl-events {
  position: relative;
  padding-left: 28px;
}

.fk__tl-events::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border-subtle);
}

.fk__tl-event-wrap {
  position: relative;
  margin-bottom: 12px;
}

.fk__tl-node {
  position: absolute;
  left: -22px;
  top: 14px;
  width: 10px; height: 10px;
  border-radius: 999px;
}

.fk__tl-card {
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 12px 14px;
}

.fk__tl-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin-bottom: 4px;
}

.fk__tl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.fk__tl-detail {
  font-size: 12px;
  color: var(--color-text-subtle);
}

/* ══════════════════════════════════════════════
   GUEST MODE
   ══════════════════════════════════════════════ */
.fk__occasions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.fk__occasion-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}

.fk__occasion-btn--active {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-primary-soft);
}

.fk__occasion-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.fk__guest-counter {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.fk__counter-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
}

.fk__counter-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
  flex: 1;
  text-align: center;
}

.fk__chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   INSIGHTS
   ══════════════════════════════════════════════ */
.fk--insights { background: var(--color-bg-base); }

.fk__insights-hero {
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(150deg,#1a2e20 0%,#2d5240 60%,#4a7060 100%);
  padding: 56px 20px 24px;
  position: relative;
}

.fk__rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fk__rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 12px 14px;
}

.fk__rank-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-subtle);
  width: 24px;
  text-align: center;
}

.fk__cooks-list {
  background: var(--color-bg-surface);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
