/* ============================================================
   RECEITASWEB - IDENTIDADE VISUAL GASTRONÔMICA & MODERNA
   ============================================================ */

:root {
  --primary: #ea580c;           /* Terracota / Páprica Quente */
  --primary-hover: #c2410c;
  --primary-light: #ffedd5;
  --secondary: #292524;         /* Carvão Gourmet */
  --accent-green: #15803d;      /* Manjericão Fresco */
  --accent-gold: #d97706;       /* Açafrão Dourado */
  --bg-cream: #faf7f2;          /* Fundo Linho Culinário */
  --card-bg: #ffffff;
  --border-color: #e7e2da;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 12px 28px rgba(28, 25, 23, 0.12);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15);
}

.brand-icon {
  font-size: 24px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-title .highlight {
  color: var(--primary);
}

.brand-tagline {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Search Input */
.header-search-wrap {
  flex: 1;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-light);
  pointer-events: none;
}

.header-search-wrap input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s ease;
}

.header-search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.omniroute-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.status-dot.pulsing {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-cream);
  border-color: var(--text-light);
}

.btn-ai {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid #ea580c;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

.btn-ai:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.filter-fav-btn.active {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ============================================================
   CATEGORIES BAR (Sub-Header)
   ============================================================ */
.categories-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.categories-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

.cat-count {
  display: inline-block;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.cat-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ============================================================
   MAIN CONTENT & RECIPES GRID
   ============================================================ */
.main-content {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.content-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-info h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.section-count {
  font-size: 13.5px;
  color: var(--text-muted);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Recipe Card */
.recipe-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #fed7aa;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f4ede4;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.card-fav-btn:hover {
  transform: scale(1.15);
  background: #ffffff;
}

.card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f5f0e8;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-diff-tag {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.diff-facil { background: #dcfce7; color: #166534; }
.diff-medio { background: #fef3c7; color: #92400e; }
.diff-avancado { background: #fee2e2; color: #991b1b; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 40px auto;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   MODAIS (GERAL)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-lg {
  max-width: 820px;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-cream);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-header {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-emoji {
  font-size: 28px;
}

.modal-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 22px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================================
   MODAL DETALHE DA RECEITA
   ============================================================ */
.detail-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-enter 0.25s ease;
}

.detail-hero {
  position: relative;
  width: 100%;
  height: 320px;
  background: #292524;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.95) 0%, rgba(28, 25, 23, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  color: #ffffff;
}

.detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-cat {
  background: var(--primary);
  color: #ffffff;
}

.badge-diff {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.detail-hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.detail-desc {
  font-size: 15px;
  color: #e7e2da;
  line-height: 1.5;
  max-width: 720px;
}

.detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: #fdfbf7;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-icon {
  font-size: 22px;
}

.meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.meta-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* Scaler Widget */
.scaler-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.scaler-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scaler-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.scaler-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.scaler-number {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  min-width: 22px;
  text-align: center;
}

.detail-tools {
  display: flex;
  gap: 8px;
}

.tool-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: var(--bg-cream);
  transform: translateY(-1px);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  padding: 36px;
}

/* Ingredients Panel */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.panel-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
}

.panel-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ingredients-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.ingredients-list li:hover {
  background: #f5f0e6;
}

.ingredients-list li.checked {
  opacity: 0.5;
  text-decoration: line-through;
}

.ing-check {
  font-size: 14px;
  color: var(--primary);
}

.ing-amount {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.ing-name {
  color: var(--text-main);
  flex: 1;
}

/* Instructions Panel */
.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  list-style: none;
}

.instruction-step {
  display: flex;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  flex: 1;
}

.chef-tips-box {
  margin-top: 28px;
  padding: 18px 20px;
  background: #fefce8;
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.source-tag {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================================
   MODO COZINHA (FULL SCREEN STEP-BY-STEP)
   ============================================================ */
.cook-mode-overlay {
  position: fixed;
  inset: 0;
  background: #1c1917;
  color: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.cook-mode-overlay.hidden {
  display: none !important;
}

.cook-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
}

.cook-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.cook-mode-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 26px;
}

.cook-mode-body {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.cook-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 40px;
  overflow: hidden;
}

.cook-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 20%;
  transition: width 0.3s ease;
}

.cook-step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cook-step-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cook-step-text {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 500;
  color: #f5f5f4;
}

.cook-mode-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* ============================================================
   AI IMPORT MODAL (OMNIROUTE)
   ============================================================ */
.ai-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  gap: 4px;
}

.ai-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.ai-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff7ed;
}

.ai-tab-content {
  margin-bottom: 20px;
}

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  background: var(--bg-cream);
  cursor: pointer;
  transition: all 0.2s;
}

.dropzone:hover {
  border-color: var(--primary);
  background: #fff7ed;
}

.drop-icon {
  font-size: 42px;
  margin-bottom: 8px;
  display: block;
}

.dropzone h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.dropzone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.file-input-hidden {
  display: none;
}

.dropzone-preview img {
  max-height: 220px;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.media-file-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

#media-filename {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.ai-tab-content textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-cream);
  resize: vertical;
}

.ai-model-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.model-tag {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #334155;
}

.ai-loading-state {
  text-align: center;
  padding: 30px 20px;
  background: #fff7ed;
  border-radius: var(--radius-md);
  border: 1px solid #fed7aa;
  margin-bottom: 16px;
}

.chef-spinner {
  font-size: 44px;
  display: inline-block;
  animation: cook-flip 1.2s infinite ease-in-out;
  margin-bottom: 12px;
}

@keyframes cook-flip {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(18deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ============================================================
   FORMULÁRIO (NOVA/EDITAR RECEITA)
   ============================================================ */
.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-group.flex-2 { flex: 2; }
.form-group.flex-1 { flex: 1; }

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.label-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg-cream);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.image-input-group {
  display: flex;
  gap: 10px;
}

.image-input-group input {
  flex: 1;
}

.upload-btn-label {
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--secondary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transition: all 0.25s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* ============================================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   ============================================================ */
@media (max-width: 900px) {
  .detail-body-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .header-search-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .header-actions {
    gap: 6px;
  }

  .omniroute-text {
    display: none;
  }

  .btn-text {
    display: none;
  }

  .btn {
    padding: 8px 12px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .detail-hero {
    height: 220px;
  }

  .detail-hero-overlay {
    padding: 20px;
  }

  .detail-hero-overlay h1 {
    font-size: 24px;
  }

  .detail-bar {
    padding: 14px 20px;
  }

  .cook-step-card {
    padding: 24px;
  }

  .cook-step-text {
    font-size: 19px;
  }
}
