/**
 * Submit a correction modal (matches events modal pattern).
 *
 * @package IndyGG
 */

/* Hide until Alpine removes x-cloak (do not rely on tailwind load order). */
.indygg-correction-modal[x-cloak] {
  display: none !important;
}

body.indygg-correction-modal--open {
  overflow: hidden;
}

.indygg-correction-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
}

.indygg-correction-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.indygg-correction-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: calc(100% - 2rem);
  max-width: 32rem;
  border-top: 3px solid var(--cyan, #00d4ff);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.indygg-correction-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e4e6ea;
}

.indygg-correction-modal__title {
  font-weight: 800;
  font-size: 1.125rem;
  color: #111;
}

.indygg-correction-modal__sub {
  font-size: 0.625rem;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.indygg-correction-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 0.25rem;
  flex-shrink: 0;
  line-height: 0;
}

.indygg-correction-modal__body {
  padding: 1.5rem;
}

.indygg-correction-modal__intro {
  margin: 0 0 1rem;
  color: #555;
  line-height: 1.55;
}

.indygg-correction-modal__success {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 4px;
}

.indygg-correction-modal__done {
  margin-top: 1rem;
  appearance: none;
  background: transparent;
  border: 1px solid #e4e6ea;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.indygg-correction-modal__done:hover {
  border-color: var(--cyan, #00d4ff);
  color: var(--cyan, #00d4ff);
}

.indygg-correction-modal__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.35rem;
}

.indygg-correction-modal__input,
.indygg-correction-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e6ea;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.indygg-correction-modal__textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

.indygg-correction-modal__error {
  margin: 0 0 0.75rem;
  color: #b91c1c;
}

.indygg-correction-modal__submit {
  margin-top: 0.25rem;
}

.indygg-correction-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.indygg-correction-modal__relative {
  position: relative;
}

.indygg-correction-modal__skeleton {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0 0;
  pointer-events: none;
}

.indygg-correction-modal__sk-row {
  height: 2.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: indygg-correction-shimmer 1.2s ease-in-out infinite;
}

.indygg-correction-modal__sk-row--short {
  width: 55%;
}

.indygg-correction-modal__sk-block {
  height: 6.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: indygg-correction-shimmer 1.2s ease-in-out infinite;
}

.indygg-correction-modal__sk-btn {
  height: 2.75rem;
  width: 8rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: indygg-correction-shimmer 1.2s ease-in-out infinite;
}

@keyframes indygg-correction-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

button.team-single__correction,
button.venue-single__correction {
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  font: inherit;
}

button.indy-scene-archive__cta-secondary {
  appearance: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
