/* PREXFORGE — G10: Exploration View Styles */

.view-section { display: none; }
.view-section.active { display: block; }

.exploration-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.exploration-header {
  text-align: center;
  margin-bottom: 32px;
}

.explore-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a3633;
  margin: 0 0 8px;
}

.explore-subtitle {
  font-size: 16px;
  color: #5a7a76;
  margin: 0;
}

.exploration-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  min-height: 200px;
}

.explore-msg {
  display: flex;
  max-width: 85%;
}

.learner-msg {
  align-self: flex-end;
}

.guide-msg {
  align-self: flex-start;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.learner-bubble {
  background: #1a3633;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.guide-bubble {
  background: #f0f5f4;
  color: #1a3633;
  border: 1px solid #d8e5e3;
  border-bottom-left-radius: 4px;
}

.deeper-bubble {
  background: #e8f0ef;
  border-color: #c5d8d5;
}

.intro-lesson-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5a7a76;
  margin-bottom: 6px;
}

.intro-lesson-text {
  font-style: italic;
  color: #3a5a56;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.loading-dots span {
  font-size: 20px;
  color: #5a7a76;
  animation: dotPulse 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

.exploration-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 0;
  border-top: 1px solid #e8e8e8;
}

/* Possibility cards */
.possibilities-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.possibility-card {
  background: #fff;
  border: 2px solid #e0ebe9;
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.possibility-card:hover {
  border-color: #1a3633;
  box-shadow: 0 2px 12px rgba(26, 54, 51, 0.08);
}

.possibility-card.rejected {
  opacity: 0.45;
  border-style: dashed;
}

.possibility-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a3633;
  margin-bottom: 8px;
}

.possibility-desc {
  font-size: 14px;
  color: #4a6a66;
  line-height: 1.5;
  margin-bottom: 8px;
}

.possibility-reasoning {
  font-size: 13px;
  color: #6a8a86;
  margin-bottom: 14px;
}

.possibility-reasoning em {
  color: #5a7a76;
}

.possibility-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.poss-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.explore-btn {
  background: #e8f0ef;
  color: #1a3633;
}

.explore-btn:hover {
  background: #d0e0de;
}

.reject-btn {
  background: #f5f0f0;
  color: #8a4a4a;
}

.reject-btn:hover {
  background: #ecdede;
}

.choose-btn {
  background: #1a3633;
  color: #fff;
}

.choose-btn:hover {
  background: #0a2623;
}

.possibility-rejected-label {
  font-size: 12px;
  color: #8a4a4a;
  font-weight: 600;
  text-transform: uppercase;
}

/* Loading state */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #5a7a76;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e0ebe9;
  border-top-color: #1a3633;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 600px) {
  .exploration-container { padding: 16px 12px 60px; }
  .explore-title { font-size: 22px; }
  .explore-subtitle { font-size: 14px; }
  .explore-msg { max-width: 92%; }
  .msg-bubble { font-size: 14px; padding: 12px 14px; }
  .possibility-actions { flex-direction: column; }
  .poss-btn { width: 100%; text-align: center; }
}
