/* Page Calories Running */

/* Layout avec largeur limitée */
.categories-main .container {
  margin: 0 0 2rem 0;
  max-width: 1200px;
}

.rtc-calories-widget {
  margin-top: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.required {
  color: #dc2626;
}

.formula-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #2563eb;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
}

/* Résultats */
.rtc-result {
  margin-top: 2rem;
}

.result-summary {
  /* panneau type carte avec ombre */
  /* base panel look via rtc-panel-box */
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.result-summary h2 {
  margin-top: 0;
  color: #92400e;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.total-calories {
  font-size: 3rem;
  font-weight: 700;
  color: #dc2626;
  text-align: center;
  margin: 1rem 0;
}

.calories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.calorie-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.calorie-card h3 {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.calorie-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.calorie-card .unit {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Graphique des calories par km */
.calories-chart {
  /* carte blanche basique */
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calories-chart h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-label {
  min-width: 120px;
  font-weight: 500;
  color: #475569;
  font-size: 0.9rem;
}

.chart-fill {
  flex: 1;
  height: 30px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  border-radius: 4px;
  position: relative;
  transition: width 0.5s ease;
}

.chart-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Équivalents alimentaires */
.food-equivalents {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.food-equivalents h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.food-item {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s;
}

.food-item:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.food-name {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.food-quantity {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.food-calories {
  font-size: 0.8rem;
  color: #64748b;
}

/* Analyse textuelle */
.analysis-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #2563eb;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.analysis-box h3 {
  margin-top: 0;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-box p {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #1e293b;
}

/* Conditions display */
.conditions-display {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
}

.conditions-display h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #475569;
  font-size: 0.9rem;
}

.conditions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.condition-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #cbd5e1;
}

.condition-tag.positive {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.condition-tag.negative {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .total-calories {
    font-size: 2.5rem;
  }

  .result-summary {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .food-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer styles are now in index.css */
