/* Advisors Tab Styles */

.advisors-header {
  margin-bottom: 24px;
}

.advisors-header h3 {
  margin-bottom: 8px;
}

.advisors-header .info-text {
  color: #666;
  margin-bottom: 16px;
}

.cooldown-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.cooldown-banner .icon {
  font-size: 24px;
}

.cooldown-banner.hidden {
  display: none;
}

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.advisor-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.advisor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.advisor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.advisor-icon {
  font-size: 36px;
}

.advisor-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.advisor-title {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
  font-style: italic;
}

.advisor-specialization {
  margin: 12px 0 16px 0;
  opacity: 0.95;
  font-size: 14px;
  line-height: 1.4;
}

.consult-advisor-btn {
  width: 100%;
  background: white;
  color: #667eea;
  font-weight: 600;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.consult-advisor-btn:hover:not(:disabled) {
  background: #f0f4ff;
}

.consult-advisor-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Consultation Modal */

.advisor-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.advisor-subtitle {
  color: #666;
  font-style: italic;
  margin: -8px 0 16px 0;
}

.consultation-form {
  margin: 20px 0;
}

.consultation-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.consultation-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.consultation-form textarea:focus {
  outline: none;
  border-color: #667eea;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.advisor-response-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #eee;
}

.advisor-response-section.hidden {
  display: none;
}

.advisor-thinking {
  text-align: center;
  padding: 40px 20px;
}

.thinking-animation {
  font-size: 48px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.advisor-thinking p {
  margin-top: 16px;
  color: #666;
  font-style: italic;
}

.advisor-response {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.advisor-response.hidden {
  display: none;
}

.response-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #dee2e6;
}

.response-header h4 {
  margin: 0 0 4px 0;
  color: #333;
}

.response-time {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.response-content {
  margin: 16px 0;
  line-height: 1.6;
  color: #333;
}

.response-content p {
  margin: 0;
}

.response-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #dee2e6;
}

.response-footer p {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.cooldown-notice {
  color: #667eea !important;
  font-weight: 600;
}

.error-response {
  text-align: center;
  padding: 20px;
}

.error-response p {
  color: #d32f2f;
  margin-bottom: 16px;
}

/* Consultation History */

.consultation-history-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #eee;
}

.consultation-history-section h3 {
  margin-bottom: 16px;
}

.consultations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultation-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #667eea;
}

.consultation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.advisor-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.consultation-date {
  font-size: 12px;
  color: #666;
}

.consultation-question {
  margin: 8px 0;
  color: #333;
  font-size: 14px;
}

.consultation-response {
  margin-top: 8px;
}

.consultation-response summary {
  cursor: pointer;
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
}

.consultation-response summary:hover {
  text-decoration: underline;
}

.consultation-response .response-text {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dee2e6;
  line-height: 1.6;
  color: #555;
}

.consultation-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #dee2e6;
  font-size: 12px;
  color: #888;
}

/* History Modal */

.history-modal {
  max-width: 800px;
  max-height: 90vh;
}

.full-history-content {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.full-history-content .consultation-item {
  margin-bottom: 0;
}

/* Responsive Design */

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

  .advisor-modal,
  .history-modal {
    max-width: 95vw;
  }

  .consultation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
