/* ===== ANALYZE PAGE ===== */
.analyze-page {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.analyze-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* Header */
.analyze-header {
  text-align: center;
  margin-bottom: 56px;
}

.analyze-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.analyze-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.analyze-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 64px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface);
  margin-bottom: 32px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--lime);
  background: rgba(204, 255, 0, 0.03);
}

.upload-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.upload-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.upload-sublabel {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-browse {
  color: var(--lime);
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload-formats {
  font-size: 13px;
  color: var(--text-dim);
}

/* Progress */
.progress-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-filename {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-percent {
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
}

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

.progress-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-status {
  font-size: 14px;
  color: var(--text-muted);
}

/* Analyzing */
.analyzing-container {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 32px;
}

.analyzing-spinner {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.spinner-ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.analyzing-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.analyzing-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.analyzing-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 280px;
  margin: 0 auto;
}

.analyze-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.analyze-step.done {
  color: var(--text);
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}

.analyze-step.done .step-dot {
  background: var(--lime);
}

/* Results */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-header {
  text-align: center;
  margin-bottom: 8px;
}

.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.results-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
}

/* Score */
.overall-score {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.score-circle {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.score-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}

.score-max {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dim);
}

.score-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Shot Summary */
.shot-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 40px;
}

.shot-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.shot-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.shot-num.error { color: #ff6b6b; }
.shot-num.rating { color: var(--lime); font-size: 24px; }

.shot-label {
  font-size: 13px;
  color: var(--text-muted);
}

.shot-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Feedback Grid */
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feedback-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.errors-card {
  border-left: 3px solid #ff6b6b;
}

.strengths-card {
  border-left: 3px solid var(--lime);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feedback-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.feedback-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.feedback-list li.no-items {
  color: var(--text-dim);
  font-style: italic;
}

.feedback-list li.no-items::before { content: ''; }

/* Positioning */
.positioning-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.block-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.block-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Drill Card */
.drill-card {
  background: var(--bg-alt);
  border: 1px solid var(--lime-dim);
  border-radius: 16px;
  padding: 36px;
}

.drill-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.drill-icon {
  width: 48px;
  height: 48px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid var(--lime-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  flex-shrink: 0;
}

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

.drill-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.drill-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.drill-cta {
  display: flex;
  gap: 12px;
}

/* Utility */
.hidden { display: none !important; }

/* Secondary Button */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  .analyze-container { padding: 40px 20px 80px; }
  .upload-zone { padding: 40px 20px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .shot-summary { gap: 24px; }
  .score-num { font-size: 56px; }
}