/* ============================================================================
   ASSISTANT SANTÉ — LAMA WORLDS
   Design inspiré des cards IgG mais isolé (assistant-card-*)
   Neon + glassmorphism + left color bar
============================================================================ */

/* === Layout principal === */
.assistant-main {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

/* === Sections glass === */
.assistant-panel,
.assistant-section {
  margin: 25px 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(14, 30, 46, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 200, 255, 0.18);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.15);
}

.assistant-panel h2,
.assistant-section h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  color: #bdeaff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.45);
}

/* ============================================================================
   ZONE ANALYSE (input + btn)
============================================================================ */

.assistant-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* LARGE INPUT BARS - Enlarged for better UX */
#meal-input,
#product-input {
  width: 100%;
  padding: 14px 20px;
  /* Larger padding for prominent appearance */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: #e8faff;
  font-size: 1.05rem;
  /* Larger font size */
  outline: none;
  transition: 0.2s;
}

#meal-input::placeholder,
#product-input::placeholder {
  color: #8bb;
}

#meal-input:focus,
#product-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #00dfff;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.btn.primary {
  background: linear-gradient(135deg, #00caff, #007bff);
  border: none;
  padding: 14px 24px;
  /* Larger button to match larger input */
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: white;
  transition: 0.25s ease;
}

.btn.primary:hover {
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
  transform: translateY(-2px);
}

/* ============================================================================
   CARTE D'ANALYSE — assistant-card
   (clone visuel igg-card mais isolé)
============================================================================ */

.assistant-card {
  display: flex;
  margin: 16px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.20);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
  overflow: hidden;
}

.assistant-card-left {
  width: 10px;
}

.assistant-level-1 {
  background: #37d47a;
}

.assistant-level-2 {
  background: #eac54f;
}

.assistant-level-3 {
  background: #e05252;
}

.assistant-card-content {
  padding: 16px;
  flex: 1;
}

.assistant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-card-title {
  font-size: 1.15rem;
  color: #e8faff;
  font-weight: 600;
}

.assistant-pill {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
}

/* Data lines */
.assistant-line {
  margin-top: 4px;
  opacity: 0.9;
}

/* Alt suggestion */
.assistant-alt {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.08);
  font-size: 0.88rem;
}

/* Unknown ingredients */
.unknown-block {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* ============================================================================
   ALTERNATIVES INTELLIGENTES
============================================================================ */

#assistant-smart-alt h3 {
  font-size: 1.3rem;
}

.smart-alt-block {
  margin: 15px 0;
}

.smart-alt-block h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #bceeff;
}

.alt-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.alt-badge {
  padding: 6px 10px;
  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 0.85rem;
}

.smart-dishes ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* ============================================================================
   CARDS : Alternatives courantes & plats compatibles
============================================================================ */

.alt-card,
.meal-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 255, 255, 0.20);
  margin-bottom: 12px;
}

.meal-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meal-tag {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.12);
  font-size: 0.75rem;
}

/* ============================================================================
   ERROR
============================================================================ */
.assistant-error {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 60, 60, 0.18);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffbaba;
}

/* Loader neon */
#assistant-loader {
  margin-top: 20px;
  padding: 14px;
  text-align: center;
  font-size: 1rem;
  color: #bdeaff;
  display: none;
}

#assistant-loader.active {
  display: block;
  animation: glowPulse 1.4s infinite;
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 6px #00dfff;
    opacity: 0.6;
  }

  50% {
    text-shadow: 0 0 18px #00dfff;
    opacity: 1;
  }

  100% {
    text-shadow: 0 0 6px #00dfff;
    opacity: 0.6;
  }
}

/* ============================================================================
   MODE SWITCH BUTTONS
============================================================================ */
.mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}

.mode-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.15);
  color: #aaa;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
}

.mode-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #fff;
}

.mode-btn.active {
  background: rgba(0, 200, 255, 0.2);
  border-color: #00dfff;
  color: #00dfff;
  font-weight: 600;
}

/* Product search */
.input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

/* Product results */
#product-results {
  margin-top: 20px;
}

.product-item {
  padding: 12px;
  margin: 10px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.15);
  cursor: pointer;
  transition: 0.2s;
}

.product-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.3);
}

.product-name {
  font-size: 1rem;
  color: #e8faff;
  font-weight: 600;
}

/* Alt suggestion */
.assistant-alt {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.08);
  font-size: 0.88rem;
}

/* Unknown ingredients */
.unknown-block {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* ============================================================================
   ALTERNATIVES INTELLIGENTES
============================================================================ */

#assistant-smart-alt h3 {
  font-size: 1.3rem;
}

.smart-alt-block {
  margin: 15px 0;
}

.smart-alt-block h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #bceeff;
}

.alt-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.alt-badge {
  padding: 6px 10px;
  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 0.85rem;
}

.smart-dishes ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* ============================================================================
   CARDS : Alternatives courantes & plats compatibles
============================================================================ */

.alt-card,
.meal-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 255, 255, 0.20);
  margin-bottom: 12px;
}

.meal-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meal-tag {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.12);
  font-size: 0.75rem;
}

/* ============================================================================
   ERROR
============================================================================ */
.assistant-error {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 60, 60, 0.18);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffbaba;
}

/* Loader neon */
#assistant-loader {
  margin-top: 20px;
  padding: 14px;
  text-align: center;
  font-size: 1rem;
  color: #bdeaff;
  display: none;
}

#assistant-loader.active {
  display: block;
  animation: glowPulse 1.4s infinite;
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 6px #00dfff;
    opacity: 0.6;
  }

  50% {
    text-shadow: 0 0 18px #00dfff;
    opacity: 1;
  }

  100% {
    text-shadow: 0 0 6px #00dfff;
    opacity: 0.6;
  }
}

/* ============================================================================
   MODE SWITCH BUTTONS
============================================================================ */
.mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}

.mode-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.15);
  color: #aaa;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
}

.mode-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #fff;
}

.mode-btn.active {
  background: rgba(0, 200, 255, 0.2);
  border-color: #00dfff;
  color: #00dfff;
  font-weight: 600;
}

/* Product search */
.input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

/* Product results */
#product-results {
  margin-top: 20px;
}

.product-item {
  padding: 12px;
  margin: 10px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.15);
  cursor: pointer;
  transition: 0.2s;
}

.product-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.3);
}

.product-name {
  font-size: 1rem;
  color: #e8faff;
  font-weight: 600;
}

.product-brand {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 2px;
}

/* ============================================================================
   LOADER BAR
============================================================================ */
.loader-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: #00dfff;
  box-shadow: 0 0 10px #00dfff;
  border-radius: 2px;
  animation: loadingBar 1s infinite linear;
}

@keyframes loadingBar {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}