/**
 * Vocal FX Selection Modal Styles
 */

#vocalFxModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  padding: 1.5rem;
}

#vocalFxModal.show {
  display: flex;
}

.vocal-fx-dialog {
  background: var(--theme-bg-secondary, #101224);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vocal-fx-header {
  padding: 1.25rem 1.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vocal-fx-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--theme-text-primary, #fff);
}

.vocal-fx-close {
  border: none;
  background: transparent;
  color: var(--theme-text-primary, #fff);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.vocal-fx-body {
  padding: 0 1.5rem 1.5rem;
  overflow-y: auto;
}

.vocal-fx-section {
  margin-top: 1rem;
}

.vocal-fx-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-text-secondary, rgba(255, 255, 255, 0.7));
}

.vocal-fx-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.vocal-fx-preset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-text-primary, #fff);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}

.vocal-fx-preset:hover,
.vocal-fx-preset:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-brand-primary, #bf092f);
  box-shadow: 0 12px 24px rgba(191, 9, 47, 0.15);
}

.vocal-fx-preset.selected {
  border-color: var(--color-brand-primary, #bf092f);
  background: rgba(191, 9, 47, 0.12);
  box-shadow: 0 12px 32px rgba(191, 9, 47, 0.18);
}

.vocal-fx-preset strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.vocal-fx-preset span {
  font-size: 0.9rem;
  color: var(--theme-text-secondary, rgba(255, 255, 255, 0.7));
}

.vocal-fx-autotune {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.vocal-fx-autotune.active {
  display: flex;
}

.vocal-fx-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--theme-text-primary, #fff);
}

.vocal-fx-toggle.hidden {
  display: none;
}

.vocal-fx-toggle input[type="checkbox"] {
  transform: scale(1.2);
}

.vocal-fx-autotune-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.vocal-fx-autotune-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--theme-text-secondary, rgba(255, 255, 255, 0.7));
}

.vocal-fx-autotune-fields select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 24, 0.8);
  color: var(--theme-text-primary, #fff);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.vocal-fx-summary {
  font-size: 0.9rem;
  color: var(--theme-text-secondary, rgba(255, 255, 255, 0.75));
  margin-top: 0.5rem;
  min-height: 1.4rem;
}

.vocal-fx-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vocal-fx-actions button {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.vocal-fx-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text-primary, #fff);
}

.vocal-fx-cancel:hover,
.vocal-fx-cancel:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.vocal-fx-confirm {
  background: var(--color-brand-primary, #bf092f);
  color: #fff;
  box-shadow: 0 12px 22px rgba(191, 9, 47, 0.28);
}

.vocal-fx-confirm:hover,
.vocal-fx-confirm:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(191, 9, 47, 0.35);
}

.vocal-fx-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  .vocal-fx-dialog {
    width: 100%;
    border-radius: 14px;
  }

  .vocal-fx-presets {
    grid-template-columns: 1fr;
  }

  .vocal-fx-actions {
    flex-direction: column;
  }

  .vocal-fx-actions button {
    width: 100%;
  }
}
