/* ============================================
   DISC Profile - Dashboard & Blind Spots Styles
   Dark theme with DISC type accents
   ============================================ */

/* ---- Layout ---- */
.dash {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.dash__header {
  text-align: center;
  margin-bottom: 48px;
}

.dash__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.dash__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Grid ---- */
.dash__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dash__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.dash__full {
  grid-column: 1 / -1;
}

/* ---- Card ---- */
.dash__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-fast);
}

.dash__card:hover {
  border-color: var(--border-hover);
}

.dash__card-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---- Mastery Overview (top bar) ---- */
.dash__overview {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.dash__level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.dash__level-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-2);
}

.dash__level-ring svg {
  position: absolute;
  top: -3px;
  left: -3px;
  transform: rotate(-90deg);
}

.dash__level-ring circle.progress-ring {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash__level-name {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #8b5cf6);
}

.dash__level-xp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash__xp-bar {
  flex: 1;
  min-width: 200px;
}

.dash__xp-track {
  height: 10px;
  background: var(--bg-3);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.dash__xp-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--disc-d), var(--disc-i), var(--disc-s), var(--disc-c));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dash__xp-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
}

.dash__xp-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}

.dash__quick-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.dash__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}

.dash__stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.dash__stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Radar Chart ---- */
.dash__radar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.dash__radar svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.dash__radar-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  fill: var(--text-secondary);
  cursor: pointer;
  transition: fill 0.2s;
}

.dash__radar-label:hover {
  fill: var(--text);
}

.dash__radar-polygon {
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash__radar-tip {
  position: absolute;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text);
  max-width: 240px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}

.dash__radar-tip.visible {
  opacity: 1;
}

/* ---- Content Progress ---- */
.dash__progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.dash__progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.dash__progress-ring {
  width: 56px;
  height: 56px;
  position: relative;
}

.dash__progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash__progress-ring circle {
  fill: none;
  stroke-width: 4;
}

.dash__progress-ring .track {
  stroke: var(--bg-3);
}

.dash__progress-ring .fill {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash__progress-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.dash__progress-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---- Game Stats ---- */
.dash__game-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash__game-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dash__game-row:hover {
  background: var(--bg-3);
}

.dash__game-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  min-width: 110px;
}

.dash__game-best {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent, #8b5cf6);
}

.dash__game-played {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash__game-trend {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.dash__game-trend.up { color: #10b981; }
.dash__game-trend.down { color: #ef4444; }
.dash__game-trend.neutral { color: var(--text-muted); }

.dash__best-game {
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(139,92,246,0.02));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dash__best-game strong {
  color: var(--text);
}

/* ---- Timeline ---- */
.dash__timeline {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash__timeline::-webkit-scrollbar {
  width: 4px;
}

.dash__timeline::-webkit-scrollbar-track {
  background: transparent;
}

.dash__timeline::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.dash__timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.dash__timeline-item:hover {
  background: var(--bg-card-hover);
}

.dash__timeline-item:last-child {
  border-bottom: none;
}

.dash__timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #8b5cf6);
  margin-top: 6px;
  flex-shrink: 0;
}

.dash__timeline-content {
  flex: 1;
}

.dash__timeline-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.dash__timeline-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dash__timeline-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 4px;
}

/* ---- Insights ---- */
.dash__insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash__insight {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
}

.dash__insight--strength {
  background: rgba(16,185,129,0.08);
  border-left: 3px solid #10b981;
}

.dash__insight--weakness {
  background: rgba(239,68,68,0.08);
  border-left: 3px solid #ef4444;
}

.dash__insight--trend {
  background: rgba(59,130,246,0.08);
  border-left: 3px solid #3b82f6;
}

.dash__insight--engagement {
  background: rgba(139,92,246,0.08);
  border-left: 3px solid #8b5cf6;
}

.dash__insight--streak {
  background: rgba(245,158,11,0.08);
  border-left: 3px solid #f59e0b;
}

.dash__insight--suggestion {
  background: var(--bg-2);
  border-left: 3px solid var(--text-muted);
}

.dash__insight-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Achievements ---- */
.dash__achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.dash__achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  text-align: center;
  transition: all var(--transition-fast);
}

.dash__achievement.earned {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(139,92,246,0.3);
}

.dash__achievement.locked {
  opacity: 0.4;
}

.dash__achievement-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.dash__achievement.earned .dash__achievement-icon {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
}

.dash__achievement.locked .dash__achievement-icon {
  background: var(--bg-3);
  color: var(--text-muted);
}

.dash__achievement-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.dash__achievement-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---- Empty State ---- */
.dash__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.dash__empty-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.dash__empty-text {
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.dash__empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent, #8b5cf6);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dash__empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow, rgba(139,92,246,0.25));
}

/* ===========================================
   BLIND SPOTS STYLES
   =========================================== */

.blind {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.blind__header {
  text-align: center;
  margin-bottom: 48px;
}

.blind__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.blind__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Assessment Summary ---- */
.blind__assessment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.blind__type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-fast);
}

.blind__type-card.weakest {
  border-color: #ef4444;
  background: rgba(239,68,68,0.05);
}

.blind__type-card.strongest {
  border-color: #10b981;
  background: rgba(16,185,129,0.05);
}

.blind__type-letter {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.blind__type-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blind__type-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.blind__type-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.blind__type-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.blind__type-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blind__type-tag.tag-weak {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.blind__type-tag.tag-strong {
  background: rgba(16,185,129,0.15);
  color: #10b981;
}

/* ---- Drill Grid ---- */
.blind__drills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.blind__drill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blind__drill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blind__drill-card.active {
  border-color: var(--accent, #8b5cf6);
  box-shadow: 0 0 20px var(--accent-glow, rgba(139,92,246,0.15));
}

.blind__drill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.blind__drill-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.blind__drill-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Drill Play Area ---- */
.blind__play-area {
  min-height: 400px;
  margin-bottom: 40px;
}

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

.blind__drill-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.blind__drill-progress {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blind__drill-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  text-align: center;
}

.blind__drill-prompt {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
}

.blind__drill-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.blind__drill-option {
  padding: 14px 18px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition-fast);
  text-align: center;
  font-weight: 500;
}

.blind__drill-option:hover:not(.selected):not(.correct):not(.wrong) {
  border-color: var(--border-hover);
  background: var(--bg-3);
}

.blind__drill-option.correct {
  border-color: #10b981;
  background: rgba(16,185,129,0.1);
  color: #10b981;
}

.blind__drill-option.wrong {
  border-color: #ef4444;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.blind__drill-feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  display: none;
}

.blind__drill-feedback.show {
  display: block;
}

.blind__drill-feedback.correct {
  background: rgba(16,185,129,0.08);
  border-left: 3px solid #10b981;
  color: var(--text);
}

.blind__drill-feedback.wrong {
  background: rgba(239,68,68,0.08);
  border-left: 3px solid #ef4444;
  color: var(--text);
}

.blind__drill-next {
  display: none;
  margin: 20px auto 0;
  padding: 10px 24px;
  background: var(--accent, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.blind__drill-next.show {
  display: inline-flex;
}

.blind__drill-next:hover {
  transform: translateY(-2px);
}

/* ---- Drill Results ---- */
.blind__results {
  text-align: center;
  padding: 40px;
}

.blind__results-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.blind__results-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.blind__results-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  margin: 0 8px;
  transition: transform var(--transition-fast);
}

.blind__results-btn:hover {
  transform: translateY(-2px);
}

.blind__results-btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---- Progress Tracking ---- */
.blind__progress-section {
  margin-top: 40px;
}

.blind__accuracy-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 8px;
}

.blind__accuracy-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent, #8b5cf6) 0%, rgba(139,92,246,0.3) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blind__accuracy-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.blind__drill-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.blind__drill-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
}

.blind__drill-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.blind__drill-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ---- Timer Bar (Speed Round) ---- */
.blind__timer-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.blind__timer-fill {
  height: 100%;
  background: var(--accent, #8b5cf6);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.blind__timer-fill.warning {
  background: #f59e0b;
}

.blind__timer-fill.danger {
  background: #ef4444;
}

/* ---- Nav Links ---- */
.dash__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent, #8b5cf6);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 16px;
}

.dash__nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow, rgba(139,92,246,0.25));
}

.dash__nav-link.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .dash__grid {
    grid-template-columns: 1fr;
  }
  .dash__grid--3col {
    grid-template-columns: 1fr;
  }
  .dash__overview {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .dash__level-badge {
    flex-direction: row;
    gap: 16px;
  }
  .dash__quick-stats {
    justify-content: center;
  }
  .blind__assessment {
    grid-template-columns: 1fr 1fr;
  }
  .blind__drill-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dash {
    padding: 80px 16px 60px;
  }
  .blind {
    padding: 80px 16px 60px;
  }
  .dash__card {
    padding: 20px;
  }
  .blind__assessment {
    grid-template-columns: 1fr;
  }
  .blind__drills {
    grid-template-columns: 1fr;
  }
  .dash__achievements {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .dash__progress-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}
