/* style.css — Celiac Hub Component Styles */

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background-color var(--transition-base);
  height: var(--header-height);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--green-500);
  white-space: nowrap;
}

[data-theme="dark"] .site-logo {
  color: var(--green-300);
}

.site-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-tld {
  color: var(--gold-500, #D4A843);
  font-weight: 500;
}

[data-theme="dark"] .logo-tld {
  color: var(--gold-300, #E8C97A);
}

.desktop-nav {
  display: none;
  gap: var(--space-1);
}

.desktop-nav a {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--green-500);
  background: var(--green-50);
}

[data-theme="dark"] .desktop-nav a:hover,
[data-theme="dark"] .desktop-nav a.active {
  color: var(--green-300);
  background: rgba(45, 122, 79, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* ========== BOTTOM NAV (MOBILE) ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  height: var(--bottom-nav-height);
  display: flex;
  transition: background-color var(--transition-base);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  padding: var(--space-1) 0;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
}

.bottom-nav a.active {
  color: var(--green-500);
}

[data-theme="dark"] .bottom-nav a.active {
  color: var(--green-300);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f1912;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-food.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: var(--space-16) var(--space-6) var(--space-20);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wheat-200);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--wheat-300);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: white;
  font-size: var(--text-base);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.hero-search input:focus {
  outline: none;
  border-color: var(--wheat-400);
  background: rgba(255,255,255,0.18);
}

.hero-search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.6);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

.hero-stat .number {
  color: var(--wheat-300);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ========== STATS BAR ========== */
.stats-bar {
  background: var(--green-500);
  padding: var(--space-8) 0;
  overflow: hidden;
}

[data-theme="dark"] .stats-bar {
  background: var(--green-800);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat-card {
  color: white;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  opacity: 0.85;
  font-weight: 500;
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: var(--space-16) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-tertiary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-500);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--green-50);
  border-radius: var(--radius-full);
}

[data-theme="dark"] .section-label {
  color: var(--green-300);
  background: rgba(45, 122, 79, 0.15);
}

.section-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== WHAT IS CELIAC ========== */
.what-is-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.what-is-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.what-is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-is-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: var(--green-500);
}

[data-theme="dark"] .what-is-text h3 {
  color: var(--green-300);
}

.what-is-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.what-is-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

[data-theme="dark"] .feature-icon {
  background: rgba(45, 122, 79, 0.15);
  color: var(--green-300);
}

.feature-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

/* ========== SYMPTOMS ========== */
.symptom-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

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

.symptom-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.symptom-tab.active {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}

[data-theme="dark"] .symptom-tab.active {
  background: var(--green-600);
  border-color: var(--green-600);
}

.symptom-panel {
  display: none;
}

.symptom-panel.active {
  display: block;
}

.symptom-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.symptom-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast);
}

.symptom-card:hover {
  box-shadow: var(--shadow-md);
}

.severity-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 6px;
}

.severity-alta { background: var(--danger); }
.severity-moderada { background: var(--warning); }
.severity-baixa { background: var(--success); }

.symptom-name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.symptom-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.symptom-freq {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
  font-style: italic;
}

.symptom-cta {
  margin-top: var(--space-8);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.btn--primary {
  background: var(--green-500);
  color: white;
}

.btn--primary:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn--secondary:hover {
  background: var(--bg-primary);
  border-color: var(--green-500);
  color: var(--green-500);
}

/* ========== DIAGNOSIS ========== */
.diagnosis-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 700px;
  margin: 0 auto;
}

.diag-step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  position: relative;
}

.diag-step-num {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--green-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.diag-step-content h4 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.diag-step-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.diag-warning {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: rgba(196, 73, 60, 0.08);
  border: 1px solid rgba(196, 73, 60, 0.2);
  border-radius: var(--radius-lg);
  color: var(--danger);
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.diag-warning span { font-size: 1.3rem; flex-shrink: 0; }

/* ========== DIET GUIDE ========== */
.diet-section-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  max-height: 300px;
}

.diet-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diet-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.diet-col {
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.diet-col-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid;
}

.diet-col--safe .diet-col-header { border-color: var(--success); }
.diet-col--avoid .diet-col-header { border-color: var(--danger); }
.diet-col--caution .diet-col-header { border-color: var(--warning); }

.diet-col-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.diet-col--safe .diet-col-icon { background: rgba(45,122,79,0.1); }
.diet-col--avoid .diet-col-icon { background: rgba(196,73,60,0.1); }
.diet-col--caution .diet-col-icon { background: rgba(212,168,67,0.1); }

.diet-col-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
}

.diet-list {
  list-style: none;
}

.diet-list li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}

.diet-list li:last-child { border-bottom: none; }

.portuguese-food {
  margin-top: var(--space-8);
}

.portuguese-food h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  text-align: center;
}

.food-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.food-item {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.food-item .food-status {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.food-item-content strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.food-item-content p {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ========== RESTAURANTS ========== */
.restaurant-section {
  position: relative;
}

.restaurant-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.restaurant-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.restaurant-search input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
  color: var(--text-primary);
  min-height: 44px;
}

.restaurant-search input:focus {
  outline: none;
  border-color: var(--green-500);
}

.restaurant-search svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 36px;
}

.filter-btn.active {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}

[data-theme="dark"] .filter-btn.active {
  background: var(--green-600);
  border-color: var(--green-600);
}

.restaurant-count {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.restaurant-count strong {
  color: var(--text-primary);
}

.restaurant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.restaurant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.restaurant-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.restaurant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  gap: var(--space-2);
}

.restaurant-card-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.restaurant-badges {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge--type {
  background: var(--warm-200);
  color: var(--warm-700);
}

[data-theme="dark"] .badge--type {
  background: var(--warm-800);
  color: var(--warm-300);
}

.badge--gf {
  background: var(--green-100);
  color: var(--green-700);
}

[data-theme="dark"] .badge--gf {
  background: rgba(45, 122, 79, 0.2);
  color: var(--green-300);
}

.badge--price {
  background: var(--wheat-100);
  color: var(--wheat-700);
}

[data-theme="dark"] .badge--price {
  background: rgba(212, 168, 67, 0.15);
  color: var(--wheat-300);
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.restaurant-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--wheat-500);
  font-weight: 700;
}

.restaurant-rating svg {
  width: 14px;
  height: 14px;
  fill: var(--wheat-400);
}

.restaurant-municipality {
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-municipality svg {
  width: 14px;
  height: 14px;
}

.restaurant-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.restaurant-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.highlight-tag {
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.restaurant-actions {
  display: flex;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.restaurant-action-btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  min-height: 36px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.restaurant-action-btn:hover {
  background: var(--green-50);
  color: var(--green-600);
}

[data-theme="dark"] .restaurant-action-btn:hover {
  background: rgba(45, 122, 79, 0.15);
  color: var(--green-300);
}

.restaurant-action-btn svg {
  width: 14px;
  height: 14px;
}

.restaurant-action-btn.fav-btn.active {
  color: var(--danger);
  background: rgba(196, 73, 60, 0.08);
}

.restaurant-expanded {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.restaurant-expanded.show {
  display: block;
}

.restaurant-expanded p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.restaurant-expanded-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.restaurant-expanded-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--green-500);
  color: white;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  min-height: 36px;
}

.restaurant-expanded-links a:hover {
  background: var(--green-600);
}

/* Chains section */
.chains-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 2px solid var(--border-light);
}

.chains-section h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.chain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
}

.chain-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.chain-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.load-more-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: var(--space-6) auto 0;
  padding: var(--space-3) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.load-more-btn:hover {
  border-color: var(--green-500);
  color: var(--green-500);
}

/* ========== TIPS CAROUSEL ========== */
.tips-carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-2) var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.tips-carousel::-webkit-scrollbar { display: none; }

.tip-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: var(--space-5);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast);
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
}

.tip-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-500);
  margin-bottom: var(--space-2);
}

[data-theme="dark"] .tip-category {
  color: var(--green-300);
}

.tip-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.tip-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.tips-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.tips-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tips-nav-btn:hover {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}

/* ========== MYTHS ========== */
.myths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.myth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}

.myth-card:hover {
  box-shadow: var(--shadow-md);
}

.myth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-3);
}

.myth-q {
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.5;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.myth-q .myth-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(196, 73, 60, 0.1);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
}

.myth-toggle {
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.myth-card.open .myth-toggle {
  transform: rotate(180deg);
}

.myth-answer {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
}

.myth-card.open .myth-answer {
  display: block;
}

.myth-answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  padding: var(--space-3) var(--space-4);
  background: var(--green-50);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--green-500);
}

[data-theme="dark"] .myth-answer p {
  background: rgba(45, 122, 79, 0.08);
}

/* ========== RESOURCES ========== */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.resource-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.resource-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green-500);
  transition: color var(--transition-fast);
}

.resource-link:hover {
  color: var(--green-600);
}

[data-theme="dark"] .resource-link {
  color: var(--green-300);
}

/* ========== TRENDS TEASER ========== */
.trends-teaser {
  text-align: center;
  padding: var(--space-10);
  background: var(--bg-card);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-2xl);
  max-width: 600px;
  margin: 0 auto;
}

.trends-teaser h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.trends-teaser p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.coming-soon-badge {
  display: inline-flex;
  padding: var(--space-2) var(--space-4);
  background: var(--wheat-100);
  color: var(--wheat-700);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .coming-soon-badge {
  background: rgba(212, 168, 67, 0.15);
  color: var(--wheat-300);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--warm-900);
  color: var(--warm-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--warm-400);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  color: var(--warm-400);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--warm-800);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--warm-500);
}

.footer-bottom a {
  color: var(--warm-400);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: white;
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-modal);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-8);
  position: relative;
}

.modal h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.modal p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-3) var(--space-5);
  background: var(--warm-900);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: var(--z-toast);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Share dropdown */
.share-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  display: none;
  min-width: 180px;
}

.share-dropdown.show {
  display: block;
}

.share-dropdown a,
.share-dropdown button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  text-align: left;
}

.share-dropdown a:hover,
.share-dropdown button:hover {
  background: var(--bg-tertiary);
}

/* ========== DESKTOP RESPONSIVE ========== */
@media (min-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }

  .what-is-grid {
    grid-template-columns: 1fr 1fr;
  }

  .symptom-list {
    grid-template-columns: 1fr 1fr;
  }

  .diet-columns {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .food-grid {
    grid-template-columns: 1fr 1fr;
  }

  .restaurant-grid {
    grid-template-columns: 1fr 1fr;
  }

  .myths-grid {
    max-width: 900px;
  }

  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .stats-grid {
    gap: var(--space-10);
  }

  .stat-number {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .restaurant-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-content {
    padding-top: var(--space-24);
  }
}

/* Mobile bottom nav spacing */
@media (max-width: 1023px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }

  .toast {
    bottom: calc(var(--bottom-nav-height) + var(--space-4));
  }
}

/* ========== SYMPTOM CHECKER (AUTO-AVALIAÇÃO) ========== */
.checker-container {
  max-width: 700px;
  margin: 0 auto;
}

.checker-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(196, 73, 60, 0.06);
  border: 1px solid rgba(196, 73, 60, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--danger);
  line-height: 1.6;
}

.checker-disclaimer span {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.checker-progress {
  position: relative;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.checker-progress-bar {
  height: 100%;
  background: var(--green-500);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  width: 9.09%;
}

.checker-progress-text {
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  font-weight: 600;
}

.checker-question {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.checker-question.active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.checker-question h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.checker-question .checker-q-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.checker-options {
  display: grid;
  gap: var(--space-2);
}

.checker-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checker-option:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}

[data-theme="dark"] .checker-option:hover {
  background: rgba(45, 122, 79, 0.1);
}

.checker-option.selected {
  border-color: var(--green-500);
  background: var(--green-50);
}

[data-theme="dark"] .checker-option.selected {
  border-color: var(--green-400);
  background: rgba(45, 122, 79, 0.15);
}

.checker-option input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--green-500);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checker-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Result */
.checker-result-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  animation: fadeInUp 0.5s ease;
}

.checker-result-card.risk-low {
  background: rgba(45, 122, 79, 0.08);
  border: 2px solid var(--green-400);
}
.checker-result-card.risk-moderate {
  background: rgba(212, 168, 67, 0.08);
  border: 2px solid var(--wheat-400);
}
.checker-result-card.risk-high {
  background: rgba(196, 73, 60, 0.08);
  border: 2px solid var(--danger);
}

.checker-result-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.checker-result-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.risk-low .checker-result-title { color: var(--green-500); }
.risk-moderate .checker-result-title { color: var(--wheat-600); }
.risk-high .checker-result-title { color: var(--danger); }

.checker-result-score {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.checker-result-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.checker-tests {
  text-align: left;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.checker-tests h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.checker-tests ul {
  list-style: disc;
  padding-left: var(--space-5);
}

.checker-tests ul li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  line-height: 1.5;
}

.checker-result-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.checker-result-actions .btn {
  font-size: var(--text-sm);
}

/* ========== RECIPES ========== */
.recipe-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.recipe-filters {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

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

.recipe-search {
  position: relative;
  max-width: 400px;
}

.recipe-search input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-size: var(--text-sm);
  color: var(--text-primary);
  min-height: 44px;
  transition: border-color var(--transition-fast);
}

.recipe-search input:focus {
  outline: none;
  border-color: var(--green-500);
}

.recipe-search svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.recipe-count {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.recipe-count strong {
  color: var(--text-primary);
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.recipe-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.recipe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  gap: var(--space-2);
}

.recipe-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recipe-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  flex: 1;
  line-height: 1.3;
}

.recipe-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.recipe-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.recipe-tag {
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.difficulty-facil { color: var(--green-600); }
.difficulty-medio { color: var(--wheat-600); }
.difficulty-dificil { color: var(--danger); }

/* Recipe Modal */
.modal--recipe {
  max-width: 700px;
  max-height: 90vh;
}

.recipe-modal-header {
  margin-bottom: var(--space-6);
}

.recipe-modal-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.recipe-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.recipe-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recipe-modal-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.recipe-modal-section h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--green-500);
  display: inline-block;
}

.recipe-ingredients {
  list-style: none;
  margin-bottom: var(--space-6);
}

.recipe-ingredients li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}

.recipe-ingredients li:last-child { border-bottom: none; }
.recipe-ingredients li::before { content: '• '; color: var(--green-500); font-weight: 700; }

.recipe-steps {
  counter-reset: step;
  list-style: none;
  margin-bottom: var(--space-6);
}

.recipe-steps li {
  counter-increment: step;
  padding: var(--space-3) 0 var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.recipe-steps li:last-child { border-bottom: none; }

.recipe-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--space-3);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--green-500);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-nutrition {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  line-height: 1.6;
}

/* ========== INGREDIENT SCANNER ========== */
.scanner-container {
  max-width: 700px;
  margin: 0 auto var(--space-10);
}

.scanner-input-area {
  margin-bottom: var(--space-4);
}

.scanner-input-area textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-size: var(--text-sm);
  color: var(--text-primary);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-fast);
  line-height: 1.6;
}

.scanner-input-area textarea:focus {
  outline: none;
  border-color: var(--green-500);
}

.scanner-btn {
  margin-top: var(--space-3);
  width: 100%;
}

.scanner-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.scanner-stat {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-sm);
}

.scanner-stat--safe { background: rgba(45, 122, 79, 0.1); color: var(--green-600); }
.scanner-stat--danger { background: rgba(196, 73, 60, 0.1); color: var(--danger); }
.scanner-stat--risk { background: rgba(212, 168, 67, 0.1); color: var(--wheat-600); }
.scanner-stat--unknown { background: var(--bg-tertiary); color: var(--text-secondary); }

[data-theme="dark"] .scanner-stat--safe { color: var(--green-300); }
[data-theme="dark"] .scanner-stat--risk { color: var(--wheat-300); }

.scanner-stat .scanner-stat-num {
  display: block;
  font-size: var(--text-2xl);
  font-family: var(--font-display);
}

.scanner-details {
  display: grid;
  gap: var(--space-2);
}

.scanner-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.scanner-item--seguro { background: rgba(45, 122, 79, 0.06); border-left: 3px solid var(--green-500); }
.scanner-item--perigoso { background: rgba(196, 73, 60, 0.06); border-left: 3px solid var(--danger); }
.scanner-item--risco { background: rgba(212, 168, 67, 0.06); border-left: 3px solid var(--wheat-400); }
.scanner-item--unknown { background: var(--bg-tertiary); border-left: 3px solid var(--warm-400); }

.scanner-item-status {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.scanner-item-name {
  font-weight: 700;
}

.scanner-item-note {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

/* Ingredient Database */
.ingredient-db {
  margin-top: var(--space-10);
}

.ingredient-db-title {
  font-size: var(--text-xl);
  text-align: center;
  margin-bottom: var(--space-6);
}

.ingredient-db-search {
  position: relative;
  max-width: 400px;
  margin: 0 auto var(--space-4);
}

.ingredient-db-search input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-size: var(--text-sm);
  color: var(--text-primary);
  min-height: 44px;
  transition: border-color var(--transition-fast);
}

.ingredient-db-search input:focus {
  outline: none;
  border-color: var(--green-500);
}

.ingredient-db-search svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.ingredient-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  max-height: 600px;
  overflow-y: auto;
  padding-right: var(--space-2);
}

.ingredient-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-fast);
}

.ingredient-card:hover {
  box-shadow: var(--shadow-sm);
}

.ingredient-status-badge {
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.ingredient-status-badge--seguro { background: rgba(45,122,79,0.1); color: var(--green-600); }
.ingredient-status-badge--perigoso { background: rgba(196,73,60,0.1); color: var(--danger); }
.ingredient-status-badge--risco { background: rgba(212,168,67,0.1); color: var(--wheat-600); }

[data-theme="dark"] .ingredient-status-badge--seguro { color: var(--green-300); background: rgba(45,122,79,0.2); }
[data-theme="dark"] .ingredient-status-badge--risco { color: var(--wheat-300); background: rgba(212,168,67,0.2); }

.ingredient-card-name {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.ingredient-card-note {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== CHAT ASSISTANT ========== */
.chat-fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-4));
  right: var(--space-4);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--green-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-overlay);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.chat-fab:hover {
  background: var(--green-600);
  transform: scale(1.05);
}

.chat-fab svg {
  width: 24px;
  height: 24px;
}

.chat-fab.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .chat-fab {
    bottom: var(--space-6);
    right: var(--space-6);
  }
}

.chat-panel {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-2));
  right: var(--space-3);
  width: calc(100vw - var(--space-6));
  max-width: 380px;
  height: 500px;
  max-height: calc(100vh - var(--bottom-nav-height) - var(--header-height) - var(--space-4));
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 1024px) {
  .chat-panel {
    bottom: var(--space-4);
    right: var(--space-6);
    max-height: calc(100vh - var(--header-height) - var(--space-8));
  }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--green-500);
  color: white;
  flex-shrink: 0;
}

[data-theme="dark"] .chat-header {
  background: var(--green-700);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-avatar {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
}

.chat-header h4 {
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
}

.chat-status {
  font-size: 0.65rem;
  opacity: 0.85;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: background var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(255,255,255,0.15);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  animation: fadeInUp 0.3s ease;
}

.chat-bubble--bot {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble--user {
  background: var(--green-500);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

[data-theme="dark"] .chat-bubble--user {
  background: var(--green-600);
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  align-self: flex-start;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-tertiary);
  animation: typingDot 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.chat-suggestions {
  padding: var(--space-2) var(--space-4);
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.chat-suggestions::-webkit-scrollbar { display: none; }

.chat-chip {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-chip:hover {
  border-color: var(--green-500);
  color: var(--green-500);
}

.chat-input-area {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-size: var(--text-sm);
  color: var(--text-primary);
  min-height: 40px;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--green-500);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--green-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
}

.chat-send:hover {
  background: var(--green-600);
}

.chat-send svg {
  width: 18px;
  height: 18px;
}

/* ========== MORE MENU (MOBILE) ========== */
.more-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.more-menu.active {
  display: flex;
}

.more-menu-inner {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 70vh;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6) calc(var(--bottom-nav-height) + var(--space-4));
}

.more-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.more-menu-header h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
}

.more-menu-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.more-menu-item:hover {
  background: var(--bg-tertiary);
}

/* ========== RESPONSIVE — NEW FEATURES ========== */
@media (min-width: 768px) {
  .recipe-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ingredient-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scanner-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ingredient-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .more-menu {
    display: none !important;
  }
}
