/* Interactive PGN + LLM Thoughts viewer for robertfilter.net */
.cv-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  color: #212529;
}

.cv-card:focus {
  outline: 2px solid #6c757d;
  outline-offset: 2px;
}

.cv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.65rem;
}

.cv-tab {
  border: 1px solid #ced4da;
  background: #ffffff;
  color: #343a40;
  border-radius: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.cv-tab:hover {
  background: #e9ecef;
}

.cv-tab.active {
  background: #343a40;
  color: #ffffff;
  border-color: #343a40;
}

.cv-header {
  margin-bottom: 0.75rem;
}

.cv-title {
  font-family: 'Merriweather', Times, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
}

.cv-sub {
  font-size: 0.82rem;
  color: #5c636a;
  margin: 0;
}

.cv-board-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.cv-board-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #8a6d4b;
  border-radius: 0.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.cv-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.cv-btn {
  border: 1px solid #ced4da;
  background: #ffffff;
  color: #212529;
  border-radius: 0.3rem;
  padding: 0.28rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.3;
}

.cv-btn:hover:not(:disabled) {
  background: #e9ecef;
}

.cv-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cv-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.cv-hl-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c636a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.15rem;
}

.cv-pill {
  border: 1px solid #adb5bd;
  background: #ffffff;
  color: #343a40;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.cv-pill:hover {
  background: #e9ecef;
}

.cv-pill.active {
  background: #343a40;
  color: #ffffff;
  border-color: #343a40;
}

.cv-movelist {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.35rem;
  padding: 0.5rem 0.65rem;
  max-height: 168px;
  overflow-y: auto;
  line-height: 1.7;
  margin-bottom: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
}

.cv-movenum {
  color: #6c757d;
  margin-right: 0.2rem;
  user-select: none;
}

.cv-mv {
  display: inline-block;
  border: none;
  background: transparent;
  padding: 0.05rem 0.32rem;
  margin: 0 0.12rem 0.08rem 0;
  border-radius: 0.22rem;
  cursor: pointer;
  color: #212529;
  font-family: inherit;
  font-size: inherit;
}

.cv-mv:hover {
  background: #e9ecef;
}

.cv-mv.active {
  background: #343a40;
  color: #ffffff;
  font-weight: 700;
}

.cv-mv.has-note {
  text-decoration: underline dotted #adb5bd;
  text-underline-offset: 3px;
}

.cv-thoughts {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-left: 3px solid #343a40;
  border-radius: 0.35rem;
  padding: 0.65rem 0.8rem;
  min-height: 130px;
  max-height: 220px;
  overflow-y: auto;
}

.cv-thoughts-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
}

.cv-thoughts-body {
  font-size: 0.87rem;
  line-height: 1.5;
  color: #212529;
  margin: 0;
}

.cv-thoughts-empty {
  color: #6c757d;
  font-style: italic;
}

@media (max-width: 767.98px) {
  .cv-card {
    padding: 0.75rem;
  }
  .cv-movelist {
    max-height: 132px;
  }
  .cv-thoughts {
    min-height: 110px;
    max-height: 200px;
  }
}
