/* Golf-specific additions on top of the shared Pitching AI Studio style.css */

.btn-close-viewer {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #e2e8f0;
  padding: 6px 14px; border-radius: 8px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 0.86rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease;
}
.btn-close-viewer:hover { background: rgba(239, 71, 111, 0.18); border-color: rgba(239, 71, 111, 0.5); color: #ff4d6d; }
.btn-close-viewer svg { width: 15px; height: 15px; stroke-width: 2.4px; }

.golf-guide {
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 2px 2px 6px 2px !important; margin-bottom: 4px;
}
.golf-guide .guideline-icon { margin-top: 3px; flex-shrink: 0; color: #38bdf8; }
.golf-guide > span { font-size: 0.95rem; color: #ffffff; line-height: 1.6; word-break: keep-all; }
.golf-guide b { color: #7dd3fc; }

/* The stage follows the clip's own aspect ratio (--ar = width / height, set by golf_app.js);
   tall clips are limited by height so the whole swing stays on screen. */
.golf-viewport { --ar: 1.7778; aspect-ratio: var(--ar); height: auto; max-height: none; margin: 0 auto;
  width: min(100%, calc(min(74vh, 720px) * var(--ar))); }
#swingVideo { width: 100%; height: 100%; object-fit: contain; display: block; }

.golf-sample-badge {
  /* sits above the stage: the rendered clip carries its own HUD in the top-left corner */
  width: fit-content; max-width: 100%; margin: 0 auto 8px;
  background: rgba(5, 8, 15, 0.78); border: 1px solid rgba(255, 209, 102, 0.4); color: #ffd166;
  font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; line-height: 1.35;
}

.golf-times { margin-top: 8px; font-size: 0.78rem; color: #cbd5e1; font-family: 'JetBrains Mono', monospace; }

.golf-checklist { list-style: none; width: 100%; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.golf-checklist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 6px; padding: 5px 9px; }
.golf-checklist li.muted { color: #94a3b8; justify-content: center; border-style: dashed; }
.golf-checklist .ck-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #ffffff; white-space: nowrap; }
.golf-checklist .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-right: 6px; }
.golf-checklist .dot.good { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.7); }
.golf-checklist .dot.warn { background: #fb923c; box-shadow: 0 0 6px rgba(251, 146, 60, 0.7); }
.golf-checklist .dot.info { background: #64748b; }
.golf-checklist .ck-name { display: flex; align-items: center; min-width: 0; }

.golf-quality { margin-top: 10px; font-size: 0.76rem; color: #94a3b8; line-height: 1.5; }
.golf-quality b { color: #e2e8f0; }

.golf-basis-note { margin-top: 10px; font-size: 0.76rem; color: #94a3b8; line-height: 1.55; }
.golf-basis-note b { color: #cbd5e1; }
.basis-tag { display: inline-block; margin-left: 4px; font-size: 0.68rem; color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px; padding: 0 5px; }

.coaching-card.critical { border-left: 3px solid #ff4d6d; }
.coaching-card.warning { border-left: 3px solid #fb923c; }
.coaching-card.good { border-left: 3px solid #4ade80; }
.coaching-card .gain-tag { font-size: 0.7rem; font-weight: 800; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.coaching-card.critical .gain-tag { color: #ff4d6d; background: rgba(255, 77, 109, 0.12); }
.coaching-card.warning .gain-tag { color: #fb923c; background: rgba(251, 146, 60, 0.12); }

.golf-modal-box { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.25); border-radius: 6px;
  padding: 10px 12px; font-size: 0.83rem; color: #e2e8f0; line-height: 1.6; }
.golf-ref-box { background: rgba(0, 0, 0, 0.35); padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.08); }
.golf-ref-box span { color: #cbd5e1; font-size: 0.78rem; }

.golf-error { color: #fecdd3; background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 8px; padding: 10px 12px; font-size: 0.85rem; margin-top: 10px; }
