/*
 * H&S Music Artist Panel – Release Wizard Review / Submit
 *
 * Präsentation der bestehenden Review- und Submit-Daten.
 * Fachliche Validierung und Submit-Logik bleiben in den bestehenden Regeln.
 */

.wizard-review-stack {
  width: 100%;
  display: grid;
  gap: 34px;
}

.wizard-review-overview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-review-cover {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-2);
  color: var(--hs-text-subtle);
  font-size: var(--hs-text-sm);
  text-align: center;
}

.wizard-review-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wizard-review-summary {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: center;
}

.wizard-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.4;
  font-weight: var(--hs-weight-medium);
}

.wizard-review-meta > span {
  display: inline-flex;
  align-items: center;
}

.wizard-review-meta > span + span::before {
  content: "·";
  margin: 0 9px;
  color: var(--hs-line-strong);
}

.wizard-review-state.is-good {
  color: var(--hs-success);
}

.wizard-review-state.is-warn {
  color: var(--hs-warning);
}

.wizard-review-workflow.is-core-accent {
  color: var(--core-accent-text);
}

.wizard-review-summary h3 {
  margin: 0;
  color: var(--hs-text);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  font-weight: var(--hs-weight-bold);
  letter-spacing: -.025em;
}

.wizard-review-artist {
  margin: 3px 0 0;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-md);
  line-height: 1.5;
}

.wizard-review-intro {
  max-width: 680px;
  margin: 0;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
  line-height: 1.65;
}

.wizard-review-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.wizard-review-group {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--hs-line);
}

.wizard-review-group h4 {
  margin: 0 0 14px;
  color: var(--hs-text);
  font-size: var(--hs-text-lg);
  line-height: 1.3;
  font-weight: var(--hs-weight-semibold);
}

.wizard-review-data-list {
  display: grid;
}

.wizard-review-data-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-review-data-row span {
  min-width: 0;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--hs-weight-medium);
  overflow-wrap: anywhere;
}

.wizard-review-data-row strong {
  min-width: 0;
  color: var(--hs-text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: var(--hs-weight-semibold);
  overflow-wrap: anywhere;
}

.wizard-review-track-list {
  display: grid;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-review-track-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-review-track-number {
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--hs-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.wizard-review-track-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wizard-review-track-main strong,
.wizard-review-track-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-review-track-main strong {
  color: var(--hs-text);
  font-size: 13px;
  font-weight: var(--hs-weight-semibold);
}

.wizard-review-track-main span {
  color: var(--hs-text-subtle);
  font-size: 12px;
  font-weight: var(--hs-weight-regular);
}

.wizard-review-track-ai {
  color: var(--hs-brand-400);
}

.wizard-review-open-points {
  padding-top: 22px;
  border-top: 1px solid var(--hs-warning);
}

.wizard-review-open-points-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.wizard-review-open-points-head h3 {
  margin: 0;
  color: var(--hs-text);
  font-size: var(--hs-text-xl);
  line-height: 1.25;
  font-weight: var(--hs-weight-semibold);
}

.wizard-review-open-points-head p {
  margin: 6px 0 0;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
  line-height: 1.55;
}

.wizard-review-open-points-count {
  flex: 0 0 auto;
  color: var(--hs-warning);
  font-size: 12px;
  line-height: 1.4;
  font-weight: var(--hs-weight-semibold);
  white-space: nowrap;
}

.wizard-review-open-points-list {
  display: grid;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-review-open-point {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-review-open-point > span {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: var(--hs-radius-round);
  background: var(--hs-warning);
}

.wizard-review-open-point > strong {
  color: var(--hs-text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--hs-weight-medium);
}

.wizard-review-note-section,
.wizard-review-submit-section {
  padding-top: 24px;
  border-top: 1px solid var(--hs-line);
}

.wizard-review-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.wizard-review-note-head h3,
.wizard-review-submit-section h3 {
  margin: 0;
  color: var(--hs-text);
  font-size: var(--hs-text-xl);
  line-height: 1.3;
  font-weight: var(--hs-weight-semibold);
}

.wizard-review-note-head p,
.wizard-review-submit-section p {
  margin: 6px 0 0;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
  line-height: 1.6;
}

.wizard-review-note-optional {
  flex: 0 0 auto;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.5;
  font-weight: var(--hs-weight-medium);
}

.wizard-review-note-input {
  width: 100%;
  min-height: 132px;
  display: block;
  resize: vertical;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-2);
  color: var(--hs-text);
  font: inherit;
  line-height: 1.55;
}

.wizard-review-note-input:hover {
  border-color: var(--hs-line-strong);
}

.wizard-review-note-input:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: 2px;
  border-color: var(--hs-brand-line);
}

.wizard-review-note-input::placeholder {
  color: var(--hs-text-subtle);
}

.wizard-review-note-meta {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  color: var(--hs-text-subtle);
  font-size: 12px;
}

.wizard-review-note-status.is-saving {
  color: var(--hs-text-subtle);
}

.wizard-review-note-status.is-success {
  color: var(--hs-success);
}

.wizard-review-note-status.is-error {
  color: var(--hs-danger);
}

.wizard-review-note-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.wizard-review-note-readonly {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid var(--hs-line-subtle);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-surface-1);
  color: var(--hs-text);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wizard-review-submit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.wizard-review-submit-copy {
  max-width: 720px;
}

.wizard-review-submit-action {
  min-width: 220px;
}

@media (max-width: 860px) {
  .wizard-review-overview {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 22px;
  }

  .wizard-review-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wizard-review-submit-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wizard-review-submit-action {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .wizard-review-stack {
    gap: 28px;
  }

  .wizard-review-overview {
    grid-template-columns: 1fr;
  }

  .wizard-review-cover {
    width: min(220px, 100%);
  }

  .wizard-review-data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wizard-review-open-points-head,
  .wizard-review-note-head {
    display: grid;
    gap: 8px;
  }

  .wizard-review-open-points-count,
  .wizard-review-note-optional {
    justify-self: start;
  }

  .wizard-review-submit-action {
    width: 100%;
    min-width: 0;
  }

  .wizard-review-submit-action .hs-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-review-note-input {
    scroll-behavior: auto;
  }
}
