/* ================================================
   Sanctuary Dashboard — 3-Column Grid Layout
   Temple of Iris v2
   ================================================ */

/* === Dashboard Section === */
.sanctuary-dashboard {
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sanctuary-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,215,0,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(200,180,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.dashboard-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: rgba(255, 215, 0, 0.8);
  letter-spacing: 4px;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
  position: relative;
  z-index: 1;
}

.dashboard-title::before { content: '✦ '; opacity: 0.5; }
.dashboard-title::after { content: ' ✦'; opacity: 0.5; }

/* === 3-Column Grid === */
.dashboard-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* === Dashboard Card (shared) === */
.dashboard-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.5s ease;
}

.dashboard-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.dashboard-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

/* === Resonance Card specifics === */
.card-resonance .dashboard-card-title {
  color: rgba(255, 215, 0, 0.85);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.card-resonance.resonance-max {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
}

/* === Oracle Card specifics === */
.card-oracle .dashboard-card-title {
  color: rgba(200, 180, 255, 0.85);
}

/* === Quest Card specifics === */
.card-quest .dashboard-card-title {
  color: rgba(100, 220, 180, 0.85);
  text-shadow: 0 0 10px rgba(100, 220, 180, 0.2);
}

/* Quest UI */
.quest-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.quest-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(100, 220, 180, 0.6);
  display: inline-block;
}

.quest-status-dot.completed {
  background: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.quest-question-area {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quest-question-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
}

.quest-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.quest-choice-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.5;
}

.quest-choice-btn:hover {
  background: rgba(100, 220, 180, 0.15);
  border-color: rgba(100, 220, 180, 0.4);
}

.quest-choice-btn.correct {
  background: rgba(100, 220, 180, 0.25);
  border-color: rgba(100, 220, 180, 0.6);
  color: #64dcb4;
}

.quest-choice-btn.wrong {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
  color: rgba(255, 150, 150, 0.9);
}

.quest-choice-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

/* Quest result area */
.quest-result {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: left;
}

.quest-result.show {
  display: block;
  animation: quest-result-in 0.4s ease-out;
}

@keyframes quest-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quest-result.correct-result {
  background: rgba(100, 220, 180, 0.08);
  border: 1px solid rgba(100, 220, 180, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.quest-result.wrong-result {
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.quest-result-icon {
  font-size: 1.1rem;
  margin-right: 6px;
}

.quest-source-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(100, 220, 180, 0.8);
  text-decoration: none;
  border-bottom: 1px dotted rgba(100, 220, 180, 0.4);
  transition: all 0.3s;
}

.quest-source-link:hover {
  color: #64dcb4;
  border-bottom-color: #64dcb4;
}

/* Quest completed state */
.quest-completed-msg {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.quest-completed-msg.show {
  display: block;
}

.quest-completed-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.quest-completed-text {
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.8);
  line-height: 1.6;
}

.quest-score-display {
  margin-top: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: rgba(100, 220, 180, 0.9);
}

/* Quest timer */
.quest-timer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 12px;
}

/* === Responsive: 3col → 2col → 1col === */
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Quest card spans full width below oracle */
  .card-quest {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .sanctuary-dashboard {
    padding: 3rem 0.8rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .card-quest {
    grid-column: auto;
  }

  .dashboard-card {
    padding: 20px 16px;
  }

  .dashboard-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .dashboard-card-title {
    font-size: 0.8rem;
  }
}
