/* PM Interview Prep Kit — Styles */

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  margin: 0 auto 24px;
  max-width: 800px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
}
.tab-btn {
  flex: 1;
  min-width: fit-content;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab-btn:hover { background: rgba(0,0,0,0.04); }
.tab-btn.active {
  background: #7C3AED;
  color: #fff;
  box-shadow: 0 2px 6px rgba(124,58,237,0.3);
}

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Radar chart (CSS bars) */
.radar-bars {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.radar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radar-label {
  font-size: 13px;
  font-weight: 600;
  min-width: 120px;
  color: #1f2937;
}
.radar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.radar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s;
}
.radar-score {
  font-size: 12px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

/* Self-assessment selectors */
.rating-cats { display: grid; gap: 20px; }
.rating-cat {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}
.rating-cat-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rating-items { display: grid; gap: 8px; }
.rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 6px;
}
.rating-item span { font-size: 13px; }
.rating-dots {
  display: flex;
  gap: 4px;
}
.rating-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  cursor: pointer;
  transition: all 0.15s;
}
.rating-dot.filled { border-color: #7C3AED; }
.rating-dot:nth-child(-n+1).filled { background: #fca5a5; border-color: #ef4444; }
.rating-dot:nth-child(-n+2).filled { background: #fdba74; border-color: #f97316; }
.rating-dot:nth-child(-n+3).filled { background: #fde047; border-color: #eab308; }
.rating-dot:nth-child(-n+4).filled { background: #86efac; border-color: #22c55e; }
.rating-dot:nth-child(-n+5).filled { background: #34d399; border-color: #10b981; }
.rating-dot:hover { transform: scale(1.2); }

/* STAR Story Builder */
.story-form { max-width: 600px; }
.story-list { margin-top: 16px; }
.story-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid #7C3AED;
  position: relative;
}
.story-card h4 { margin: 0 0 4px; font-size: 14px; }
.story-card p { margin: 0; font-size: 12px; color: #6b7280; }
.story-card .delete-story {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.story-card .delete-story:hover { opacity: 1; }

/* Interview Simulator */
.simulator-area { max-width: 600px; margin: 0 auto; text-align: center; }
.sim-question {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  margin: 20px 0;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sim-question .q-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.sim-question .q-text {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}
.sim-timer {
  font-family: 'SF Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #7C3AED;
  margin: 12px 0;
}
.sim-timer.warning { color: #ef4444; }
.sim-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Prep Plan Calendar */
.prep-plan { max-width: 700px; margin: 0 auto; }
.prep-week {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.prep-week h3 {
  margin: 0 0 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prep-day {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.1s;
}
.prep-day:hover { background: #f9fafb; }
.prep-day.done { opacity: 0.5; }
.prep-day input[type="checkbox"] {
  accent-color: #7C3AED;
  width: 16px;
  height: 16px;
}
.prep-day .day-num {
  font-size: 11px;
  font-weight: 700;
  background: #7C3AED;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prep-day .day-task { font-size: 13px; flex: 1; }
.prep-day.done .day-task { text-decoration: line-through; }

/* Company Research */
.research-cats { display: grid; gap: 16px; }
.research-cat {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.research-cat h4 {
  margin: 0 0 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.research-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
}
.research-item:last-child { border-bottom: none; }
.research-item input[type="checkbox"] {
  accent-color: #7C3AED;
  margin-top: 2px;
}
.research-item a { color: #7C3AED; text-decoration: none; }
.research-item a:hover { text-decoration: underline; }

/* Notes area per tab */
.tab-notes {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  margin-top: 12px;
  resize: vertical;
}

/* Export bar */
.export-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Overall progress ring */
.progress-ring-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.progress-ring-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .tab-bar { gap: 2px; }
  .tab-btn { font-size: 12px; padding: 8px 10px; }
  .sim-question .q-text { font-size: 16px; }
}
