/* ============================================================
   HERBAL ADVISOR STYLES
   ============================================================ */

.advisor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: advisorFadeIn 0.3s ease;
}

.advisor-modal-overlay.closing {
  animation: advisorFadeOut 0.3s ease forwards;
}

@keyframes advisorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes advisorFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.advisor-modal {
  background: linear-gradient(135deg, #0d0820 0%, #1a0d35 50%, #0d1a20 100%);
  border: 1px solid rgba(180, 140, 255, 0.3);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 0 60px rgba(120, 60, 200, 0.3), 0 0 120px rgba(60, 20, 120, 0.2);
  animation: advisorSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes advisorSlideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.advisor-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.advisor-close:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.advisor-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.advisor-oracle-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(160, 100, 255, 0.6));
}

.advisor-title {
  font-family: 'Cinzel', 'Palatino Linotype', serif;
  font-size: 1.8rem;
  color: #e8d5ff;
  margin: 0 0 0.25rem;
  text-shadow: 0 0 20px rgba(160, 100, 255, 0.5);
}

.advisor-subtitle {
  color: rgba(200, 170, 255, 0.7);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
}

.advisor-progress {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.advisor-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #e879f9);
  border-radius: 2px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

.advisor-step-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #e8d5ff;
  margin: 0 0 0.5rem;
}

.advisor-step-desc {
  color: rgba(200, 170, 255, 0.75);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

/* Goal Selection Grid */
.advisor-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.advisor-goal-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180, 140, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.advisor-goal-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(180, 140, 255, 0.5);
  transform: translateY(-2px);
}

.advisor-goal-btn.selected {
  background: rgba(124, 58, 237, 0.35);
  border-color: #a78bfa;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}

.advisor-goal-icon {
  font-size: 1.5rem;
  display: block;
}

.advisor-goal-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8d5ff;
  display: block;
}

.advisor-goal-desc {
  font-size: 0.75rem;
  color: rgba(200, 170, 255, 0.6);
  display: block;
  line-height: 1.3;
}

/* Questions */
.advisor-question {
  margin-bottom: 1.5rem;
}

.advisor-q-text {
  color: #e8d5ff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.advisor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.advisor-option-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(180, 140, 255, 0.2);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: rgba(200, 170, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s;
}

.advisor-option-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(180, 140, 255, 0.5);
  color: #e8d5ff;
}

.advisor-option-btn.selected {
  background: rgba(124, 58, 237, 0.4);
  border-color: #a78bfa;
  color: white;
}

/* Herb Cards */
.advisor-herbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.advisor-herb-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180, 140, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.advisor-herb-card:hover {
  border-color: rgba(180, 140, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.advisor-herb-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.advisor-herb-info {
  padding: 0.75rem;
}

.advisor-herb-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8d5ff;
  margin: 0 0 0.2rem;
}

.advisor-herb-latin {
  font-size: 0.75rem;
  color: rgba(200, 170, 255, 0.6);
  font-style: italic;
  margin: 0 0 0.4rem;
}

.advisor-herb-desc {
  font-size: 0.75rem;
  color: rgba(200, 170, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

/* Suggested Forms */
.advisor-suggested-forms {
  margin-bottom: 1.5rem;
}

.advisor-suggested-forms h4 {
  color: rgba(200, 170, 255, 0.8);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.advisor-form-tag {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: #c084fc;
}

/* Product Cards */
.advisor-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.advisor-product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180, 140, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.advisor-product-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.advisor-product-info {
  padding: 0.75rem;
}

.advisor-product-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8d5ff;
  margin: 0 0 0.4rem;
}

.advisor-product-reason {
  font-size: 0.75rem;
  color: rgba(200, 170, 255, 0.7);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.advisor-btn-product {
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: #c084fc;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.advisor-btn-product:hover {
  background: rgba(124, 58, 237, 0.5);
  color: white;
}

/* Custom CTA */
.advisor-custom-cta {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.advisor-custom-cta p {
  color: rgba(200, 170, 255, 0.8);
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.advisor-btn-custom {
  background: linear-gradient(135deg, #7c3aed, #9d4edd);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.advisor-btn-custom:hover {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* Action Buttons */
.advisor-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.advisor-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #9d4edd);
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.advisor-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  transform: translateY(-1px);
}

.advisor-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.advisor-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(200, 170, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.advisor-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Advisor CTA Button (on homepage) */
.herbal-advisor-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(157, 78, 221, 0.3));
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  color: #c084fc;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.herbal-advisor-cta:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(157, 78, 221, 0.5));
  border-color: #a78bfa;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

@media (max-width: 600px) {
  .advisor-modal {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .advisor-goals-grid {
    grid-template-columns: 1fr 1fr;
  }
  .advisor-herbs-grid,
  .advisor-products-grid {
    grid-template-columns: 1fr 1fr;
  }
}
