/* ============================================
   MA POPOTE - Recipe Browse + Detail
   Page-specific styles
   ============================================ */

/* ---- Recipe Browse ---- */
.recipe-browse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.recipe-browse-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.recipe-browse-header .search-bar {
  flex: 1;
}

.recipe-browse-header .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.recipe-browse-header .filter-btn:hover {
  background-color: var(--accent-primary-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.recipe-browse-header .filter-btn.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
}

.recipe-browse-header .view-toggle {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.recipe-browse-header .view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.recipe-browse-header .view-toggle button:hover {
  background-color: var(--bg-warm);
  color: var(--text-primary);
}

.recipe-browse-header .view-toggle button.active {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
}

.recipe-browse-header .view-toggle button + button {
  border-left: 1px solid var(--border);
}


/* ---- Recipe Tabs (Category) ---- */
.recipe-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
}

.recipe-tabs::-webkit-scrollbar {
  display: none;
}

.recipe-tabs .recipe-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.recipe-tabs .recipe-tab:hover {
  background-color: var(--accent-primary-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.recipe-tabs .recipe-tab.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
}


/* ---- Recipe Detail ---- */
.recipe-detail {
  max-width: var(--container-lg);
  margin: 0 auto;
}

/* Hero image */
.recipe-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(45, 32, 20, 0.85) 0%,
    rgba(45, 32, 20, 0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.recipe-hero .recipe-hero-back {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: var(--text-lg);
  z-index: 2;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.recipe-hero .recipe-hero-back:hover {
  background-color: var(--bg-surface);
  transform: scale(1.05);
}

/* Hero info overlay */
.recipe-hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
  z-index: 2;
}

.recipe-hero-info h1 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-on-accent);
  margin: 0 0 var(--space-md) 0;
  line-height: var(--leading-tight);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.recipe-hero-info .recipe-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.recipe-hero-info .recipe-hero-badges .badge-tag {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: var(--text-on-accent);
  border: 1px solid rgba(255, 255, 255, 0.25);
}


/* ---- Meta Bar ---- */
.recipe-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
}

.recipe-meta-bar .meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.recipe-meta-bar .meta-icon {
  font-size: var(--text-xl);
  color: var(--accent-primary);
}

.recipe-meta-bar .meta-value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.recipe-meta-bar .meta-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.recipe-meta-bar .meta-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border);
}


/* ---- Recipe Detail Tabs ---- */
.recipe-tabs-detail {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-lg);
}

.recipe-tabs-detail .tab-item {
  flex: 1;
  justify-content: center;
}


/* ---- Ingredients ---- */
.recipe-ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-ingredient-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.recipe-ingredient-item:last-child {
  border-bottom: none;
}

.recipe-ingredient-item:hover {
  background-color: var(--bg-warm);
  margin: 0 calc(-1 * var(--space-md));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-radius: var(--radius-md);
}

.recipe-ingredient-item input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.recipe-ingredient-item input[type="checkbox"]:hover {
  border-color: var(--accent-primary);
}

.recipe-ingredient-item input[type="checkbox"]:checked {
  background-color: var(--accent-success);
  border-color: var(--accent-success);
}

.recipe-ingredient-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--text-on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.recipe-ingredient-item .ingredient-name {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.recipe-ingredient-item .ingredient-qty {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  white-space: nowrap;
}

.recipe-ingredient-item.checked .ingredient-name {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.recipe-ingredient-item.checked .ingredient-qty {
  text-decoration: line-through;
  color: var(--text-tertiary);
}


/* ---- Steps ---- */
.recipe-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.recipe-step-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.recipe-step-item .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.recipe-step-item .step-content {
  flex: 1;
}

.recipe-step-item .step-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-sm) 0;
}

.recipe-step-item .step-duration {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px 10px;
  background-color: var(--accent-cta-light);
  color: var(--accent-cta);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
}

.recipe-step-item .step-connector {
  width: 2px;
  height: var(--space-md);
  background-color: var(--border);
  margin-left: 15px;
}


/* ---- Notes ---- */
.recipe-notes {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.recipe-notes .notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  cursor: pointer;
}

.recipe-notes .notes-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.recipe-notes .notes-header .notes-toggle {
  color: var(--text-tertiary);
  font-size: var(--text-lg);
  transition: transform var(--transition-base);
}

.recipe-notes.expanded .notes-header .notes-toggle {
  transform: rotate(180deg);
}

.recipe-notes .notes-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.recipe-notes.expanded .notes-body {
  max-height: 300px;
}

.recipe-notes .textarea {
  background-color: var(--bg-surface);
  min-height: 80px;
}


/* ---- Recipe Actions (Floating Bottom Bar) ---- */
.recipe-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(45, 32, 20, 0.08);
  z-index: var(--z-fixed);
}

.recipe-actions .btn-add-menu {
  flex: 1;
}

.recipe-actions .btn-favorite,
.recipe-actions .btn-cook {
  flex-shrink: 0;
}


/* ---- Cooking Mode ---- */
.cooking-mode {
  position: fixed;
  inset: 0;
  background-color: var(--text-primary);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-slow),
    visibility var(--transition-slow);
}

.cooking-mode.active {
  opacity: 1;
  visibility: visible;
}

.cooking-mode .cooking-mode-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-on-accent);
  font-size: var(--text-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.cooking-mode .cooking-mode-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.cooking-mode .cooking-mode-counter {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Cooking Mode Step */
.cooking-mode-step {
  text-align: center;
  max-width: 640px;
  width: 100%;
}

.cooking-mode-step p,
.cooking-mode-step span,
.cooking-mode-step div {
  color: rgba(255, 255, 255, 0.85);
}

.cooking-mode-step .step-text {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--text-on-accent);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-xl) 0;
}

.cooking-mode-step .step-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background-color: var(--accent-cta);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    transform var(--transition-fast);
}

.cooking-mode-step .step-timer-btn:hover {
  background-color: var(--accent-cta-hover);
  transform: scale(1.03);
}

.cooking-mode-step .step-timer-btn:active {
  transform: scale(0.97);
}

/* Cooking Mode Controls */
.cooking-mode-controls {
  position: absolute;
  bottom: var(--space-2xl);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.cooking-mode-controls .cook-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-on-accent);
  font-size: var(--text-xl);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.cooking-mode-controls .cook-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.cooking-mode-controls .cook-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cooking-mode-controls .step-dots {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cooking-mode-controls .step-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.25);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.cooking-mode-controls .step-dots .dot.active {
  background-color: var(--accent-cta);
  transform: scale(1.3);
}

.cooking-mode-controls .step-dots .dot.completed {
  background-color: rgba(255, 255, 255, 0.6);
}

.cooking-mode .swipe-hint {
  position: absolute;
  bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}


/* ---- Calorie Badge ---- */
.calorie-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  background: rgba(202, 138, 4, 0.10);
  color: #B87A03;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1.4;
  width: fit-content;
}

.calorie-badge svg {
  width: 11px;
  height: 11px;
  opacity: 0.8;
}

/* ---- Trending Section ---- */
.trending-section {
  margin-bottom: var(--space-xl);
}

.trending-section h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trending-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-sm);
}

.trending-scroll::-webkit-scrollbar {
  display: none;
}

.trending-scroll .recipe-card {
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
}

/* ---- Nutrition Card ---- */
.nutrition-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.nutrition-card h4 {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-sm);
  background: var(--bg-warm);
  border-radius: var(--radius-md);
}

.nutrition-item .nutri-value {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.nutrition-item .nutri-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.nutrition-item .nutri-unit {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.nutrition-item.highlight {
  background: var(--accent-primary-light);
}

.nutrition-item.highlight .nutri-value {
  color: var(--accent-primary);
}

/* ---- Cuisine Filter Chips ---- */
.filter-section {
  margin-bottom: var(--space-lg);
}

.filter-section h4 {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.calorie-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.calorie-presets .chip {
  justify-content: center;
  font-size: var(--text-xs);
}


/* ---- Responsive ---- */

/* Mobile */
@media (max-width: 767px) {
  .nutrition-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .calorie-presets {
    grid-template-columns: 1fr 1fr;
  }
  .recipe-browse {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .recipe-browse-header {
    flex-wrap: wrap;
  }

  .recipe-browse-header .search-bar {
    flex: 1 1 100%;
    order: 1;
  }

  .recipe-browse-header .filter-btn {
    order: 2;
    flex: 1;
  }

  .recipe-browse-header .view-toggle {
    order: 3;
  }

  .recipe-hero {
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .recipe-hero-info h1 {
    font-size: var(--text-xl);
  }

  .recipe-meta-bar {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }

  .recipe-meta-bar .meta-divider {
    display: none;
  }

  .recipe-meta-bar .meta-item {
    flex: 1 1 calc(50% - var(--space-md));
    min-width: 80px;
  }

  .recipe-actions {
    bottom: var(--bottom-nav-height);
    padding: var(--space-sm) var(--space-sm);
    gap: var(--space-xs);
    flex-wrap: wrap;
  }

  .recipe-actions .btn-add-menu {
    flex: 1 1 100%;
    order: -1;
  }

  .recipe-actions .btn-add-menu .btn-text {
    font-size: var(--text-xs);
  }

  .recipe-actions .btn {
    padding: var(--space-xs) var(--space-sm);
    min-width: 0;
    flex-shrink: 0;
  }

  .recipe-actions .btn-cook {
    flex: 1;
    justify-content: center;
  }

  .cooking-mode-step .step-text {
    font-size: var(--text-lg);
  }

  .cooking-mode-controls {
    bottom: var(--space-lg);
    gap: var(--space-md);
  }

  .cooking-mode-controls .cook-nav-btn {
    width: 48px;
    height: 48px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .recipe-browse {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-hero {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }

  .recipe-actions {
    padding: var(--space-md) var(--space-xl);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .recipe-browse {
    grid-template-columns: repeat(4, 1fr);
  }

  .recipe-hero {
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-2xl);
    margin: var(--space-lg) 0;
  }

  .recipe-hero-info h1 {
    font-size: var(--text-3xl);
  }

  .recipe-actions {
    left: var(--sidebar-width);
    padding: var(--space-md) var(--space-2xl);
  }

  .cooking-mode-step .step-text {
    font-size: var(--text-2xl);
  }
}


/* ============================================
   NEW FEATURES (8.7 - 8.18)
   ============================================ */

/* ---- FAB: Create Recipe (8.7) ---- */
.fab-create-recipe {
  position: fixed;
  bottom: calc(var(--bottom-nav-height, 60px) + var(--space-lg));
  right: var(--space-lg);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(45, 32, 20, 0.2);
  z-index: var(--z-fixed);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.fab-create-recipe:hover {
  background-color: var(--accent-primary-dark, var(--accent-primary));
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(45, 32, 20, 0.3);
}

.fab-create-recipe:active {
  transform: scale(0.95);
}

/* ---- Create Recipe Modal Rows ---- */
.create-recipe-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.create-recipe-row .input-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
}

.input-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* ---- Badge: Perso (8.7) ---- */
.badge-perso {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 2px 10px;
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.03em;
}

.user-recipe-card {
  position: relative;
}

/* ---- Community Section (8.8) ---- */
.badge-coming-soon {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-cta-light, #fff3e0));
  color: var(--accent-cta, var(--accent-primary));
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---- Seasonal Banner (8.10) ---- */
.seasonal-banner {
  animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Holiday Section (8.11) ---- */
.holiday-section {
  animation: fadeInDown 0.5s ease 0.1s both;
}

/* ---- Kids Filter Chip (8.12) ---- */
.kids-chip {
  background-color: #fef3c7 !important;
  border-color: #fbbf24 !important;
  color: #92400e !important;
  font-weight: var(--weight-semibold);
}

.kids-chip:hover {
  background-color: #fde68a !important;
  border-color: #f59e0b !important;
  color: #78350f !important;
  transform: translateY(-1px) scale(1.03);
}

.kids-chip.active {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
}

/* ---- Kid Timer (8.13) ---- */
.kid-timer {
  font-size: var(--text-xl) !important;
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  animation: kidPulse 2s ease-in-out infinite;
}

@keyframes kidPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---- Tips Section (8.17 / 8.18) ---- */
.tips-section {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tips-section h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.presentation-tips {
  border-left: 3px solid var(--accent-primary);
}

.cooking-tips-section {
  border-left: 3px solid var(--accent-cta, #f59e0b);
}

/* ---- Adapted From Badge (8.9) ---- */
.adapted-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 767px) {
  .fab-create-recipe {
    bottom: calc(var(--bottom-nav-height, 60px) + var(--space-md));
    right: var(--space-md);
    width: 48px;
    height: 48px;
  }

  .community-grid {
    grid-template-columns: 1fr !important;
  }

  .create-recipe-row {
    flex-wrap: wrap;
  }
}
