/* public/css/recommendations.css — Estilos para blocos de recomendação IA */

/* Container principal */
.aq-rec-container {
  padding: 12px 0;
  margin: 8px 0;
}

/* Seção de recomendação (cada bloco) */
.aq-rec-section {
  margin-bottom: 16px;
  animation: aqRecFadeIn 0.3s ease-out;
}

@keyframes aqRecFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Título da seção */
.aq-rec-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aq-rec-section-title .aq-rec-icon {
  font-size: 16px;
}

/* Cards de recomendação */
.aq-rec-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.aq-rec-cards::-webkit-scrollbar {
  display: none;
}

.aq-rec-card {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 180px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.aq-rec-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
  transform: translateY(-1px);
}

.aq-rec-card:active {
  transform: scale(0.98);
}

.aq-rec-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.aq-rec-card-reason {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

.aq-rec-card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f0e7ff;
  color: #7c3aed;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}

.aq-rec-card-btn {
  display: block;
  width: 100%;
  padding: 6px 0;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.aq-rec-card-btn:hover {
  background: #6d28d9;
}

/* Upsell banner */
.aq-rec-upsell {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aq-rec-upsell:hover {
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.aq-rec-upsell-info {
  flex: 1;
}

.aq-rec-upsell-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}

.aq-rec-upsell-reason {
  font-size: 11px;
  color: #a16207;
}

.aq-rec-upsell-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.aq-rec-upsell-btn:hover {
  background: #d97706;
}

/* Combo suggestion */
.aq-rec-combo {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aq-rec-combo:hover {
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.aq-rec-combo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.aq-rec-combo-name {
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
}

.aq-rec-combo-score {
  background: #a7f3d0;
  color: #065f46;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.aq-rec-combo-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.aq-rec-combo-item {
  background: #fff;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #047857;
}

.aq-rec-combo-reason {
  font-size: 11px;
  color: #047857;
  margin-bottom: 10px;
}

.aq-rec-combo-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.aq-rec-combo-btn:hover {
  background: #059669;
}

/* Repetir último pedido */
.aq-rec-repeat {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #3b82f6;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aq-rec-repeat:hover {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.aq-rec-repeat-info {
  flex: 1;
}

.aq-rec-repeat-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 2px;
}

.aq-rec-repeat-items {
  font-size: 11px;
  color: #3b82f6;
}

.aq-rec-repeat-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.aq-rec-repeat-btn:hover {
  background: #2563eb;
}

/* Baseado no histórico */
.aq-rec-history-section .aq-rec-section-title {
  color: #7c3aed;
}

/* Loading state */
.aq-rec-loading {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
}

.aq-rec-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e8e8e8;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: aqRecSpin 0.6s linear infinite;
  margin-bottom: 6px;
}

@keyframes aqRecSpin {
  to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 480px) {
  .aq-rec-card {
    min-width: 130px;
    max-width: 160px;
    padding: 10px;
  }

  .aq-rec-upsell,
  .aq-rec-combo,
  .aq-rec-repeat {
    padding: 12px;
  }

  .aq-rec-section-title {
    font-size: 13px;
  }
}
