/* ============================================
   SkillStack — Assessment Prep Styles
   ============================================ */

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.overview-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  display: block;
  text-decoration: none;
}

.overview-card:hover {
  border-color: var(--border);
  background: var(--surface-2);
}

.overview-card:hover .overview-card-icon {
  transform: scale(1.1);
}

.overview-card-icon {
  width: 40px;
  height: 40px;
  background: var(--lime-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.15s;
  font-size: 18px;
}

.overview-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.overview-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.overview-card-stat {
  margin-top: 16px;
  font-size: 12px;
  color: var(--lime);
  font-weight: 600;
}

/* Platform Scores */
.platform-scores {
  margin-bottom: 40px;
}

.platform-scores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-row {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  align-items: center;
  gap: 24px;
}

.platform-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}

.platform-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  padding: 3px 10px;
  border-radius: 2px;
}

.platform-score-col {
  text-align: right;
}

.platform-score-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.platform-score-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Practice Scenarios */
.scenario-header {
  margin-bottom: 40px;
}

.scenario-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 3px;
}

.timer-badge.urgent {
  color: #FF4444;
  background: rgba(255, 68, 68, 0.1);
  border-color: rgba(255, 68, 68, 0.3);
  animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timer-icon {
  font-size: 16px;
}

.platform-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-dim);
  padding: 4px 12px;
  border-radius: 2px;
}

.scenario-prompt-box {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-left: 3px solid rgba(201, 244, 57, 0.4);
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.scenario-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

.scenario-task {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
}

.scenario-instructions {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 12px;
}

.scenario-prompt-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 16px 20px;
  margin-top: 12px;
  white-space: pre-wrap;
}

/* Response Area */
.response-area {
  margin-bottom: 24px;
}

.response-textarea {
  width: 100%;
  min-height: 180px;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream);
  resize: vertical;
  line-height: 1.7;
}

.response-textarea::placeholder {
  color: var(--muted);
}

.response-textarea:focus {
  outline: none;
  border-color: var(--lime);
}

.char-count {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: 6px;
}

/* Scenario Actions */
.scenario-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Failure Pattern Drill */
.drill-section {
  margin-bottom: 40px;
}

.drill-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 24px;
  margin-bottom: 16px;
}

.drill-type-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drill-type-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}

.drill-type-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.drill-pass-rate {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1;
}

.drill-pass-label {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

.drill-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.drill-example {
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.drill-example-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.drill-example--good {
  border-left: 3px solid var(--lime);
}

.drill-example--bad {
  border-left: 3px solid #FF4444;
}

.drill-example-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream);
  white-space: pre-wrap;
}

.drill-start-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--lime);
  border: none;
  border-radius: 3px;
  padding: 8px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.drill-start-btn:hover {
  opacity: 0.85;
}

/* Readiness Progress */
.readiness-section {
  margin-bottom: 40px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.readiness-item {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 16px;
  text-align: center;
}

.readiness-item.complete {
  border-color: var(--border);
  background: var(--lime-dim);
}

.readiness-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.readiness-item.complete .readiness-label {
  color: var(--lime);
}

.readiness-score {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
}

.readiness-item.complete .readiness-score {
  color: var(--lime);
}

.readiness-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.readiness-item.complete .readiness-status {
  color: var(--lime);
}

/* Scenario Results */
.scenario-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px;
  margin-top: 28px;
}

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

.result-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}

.result-badge {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 3px;
}

.result-badge.pass {
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid var(--border);
}

.result-badge.borderline {
  color: #F5A623;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.result-badge.fail {
  color: #FF4444;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.result-dims {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.result-dim-row {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  align-items: center;
  gap: 16px;
}

.dim-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}

.dim-metric {
  height: 6px;
  background: var(--surface-2);
  border-radius: 1px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.5s ease;
}

.dim-score-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  text-align: right;
}

.result-feedback {
  padding-top: 16px;
  border-top: 1px solid var(--border-dim);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Completion */
.module-complete {
  text-align: center;
  padding: 64px 24px;
}

.complete-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.complete-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.complete-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 120px 1fr; }
  .platform-score-col { display: none; }
  .readiness-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .learn-container { padding: 32px 16px 80px; }
  .result-dim-row { grid-template-columns: 1fr; }
  .dim-score-val { text-align: left; }
  .scenario-actions { flex-direction: column; align-items: stretch; }
  .platform-row { grid-template-columns: 1fr; gap: 8px; }
}