/* upload.css
   Depende de base.css + components.css
   Mantém o mesmo tema dark e vibe da home
*/

/* ==========================
   SHELL DA PÁGINA
   ========================== */

body.vh-page-upload {
  /* body base já vem em base.css */
}

.vh-upload-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 20px 120px;
}

@media (min-width: 640px) {
  .vh-upload-shell {
    padding: 96px 32px 140px;
  }
}

@media (min-width: 1024px) {
  .vh-upload-shell {
    padding-top: 96px;
  }
}

/* ==========================
   HEADER DO UPLOAD
   ========================== */

.vh-upload-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.3rem;
}

@media (min-width: 768px) {
  .vh-upload-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.vh-upload-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vh-upload-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vh-upload-title {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vh-upload-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.vh-upload-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vh-upload-meta .vh-chip {
  font-size: 0.58rem;
  padding-inline: 0.8rem;
}

/* ==========================
   WRAPPER PRINCIPAL
   ========================== */

.vh-upload-card {
  padding: 0;
  background: transparent;
  border: 0;
}

/* ==========================
   LAYOUT GERAL DO FORM
   ========================== */

.vh-upload-layout {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* STEP = bloco com label à esquerda e conteúdo à direita */
.vh-upload-step {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
  column-gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .vh-upload-step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.1rem;
  }
}

/* limpamos qualquer “card” que pudesse vir de versões anteriores */
.vh-upload-left,
.vh-upload-right {
  border: 0;
  background: transparent;
  padding: 0;
}

/* Label do step (lado esquerdo) */

.vh-upload-step-label {
  position: relative;
  padding-top: 0.3rem;
  padding-bottom: 0.4rem;
}

.vh-step-index {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vh-step-title {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.vh-step-sub {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 13.5rem;
}

/* Separador subtil vertical em screens grandes */
@media (min-width: 900px) {
  .vh-upload-step-label::after {
    content: "";
    position: absolute;
    right: -1.25rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Corpo do step (lado direito) */

.vh-upload-step-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================
   GRUPOS E LABELS
   ========================== */

.vh-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vh-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.vh-field-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.vh-field-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.vh-field-error {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #fecaca;
}

/* ==========================
   TAGS / VIBES / GENRES
   ========================== */

.vh-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vh-taglist .vh-chip {
  cursor: pointer;
  font-size: 0.62rem;
}

.vh-taglist .vh-chip[data-active="true"] {
  border-color: #f5f5f6;
  color: #f5f5f6;
  background: #111116;
}

/* ==========================
   FILE INPUTS / DROPZONES
   ========================== */

.vh-upload-file-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vh-upload-file-input {
  position: relative;
}

/* input nativo invisível por cima da zona visual */
.vh-upload-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.vh-upload-dropzone {
  border-radius: 0.9rem;
  border: 1px dashed var(--border-soft);
  background: rgba(15, 15, 16, 0.85);
  padding: 0.75rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
}

.vh-upload-dropzone-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.vh-upload-dropzone-title {
  font-size: 0.8rem;
  font-weight: 500;
}

.vh-upload-dropzone-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.vh-upload-dropzone-cta {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

/* ==========================
   PREVIEW (slot para futuro)
   ========================== */

.vh-upload-preview {
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  background: rgba(15, 15, 16, 0.9);
  padding: 0.7rem 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.vh-upload-cover {
  width: 60px;
  height: 60px;
  border-radius: 0.7rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.vh-upload-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vh-upload-preview-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vh-upload-preview-title {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vh-upload-preview-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vh-upload-preview-audio {
  margin-top: 0.3rem;
}

/* ==========================
   AÇÕES FINAIS
   ========================== */

.vh-upload-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .vh-upload-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.vh-upload-back-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.vh-upload-back-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.vh-upload-actions .vh-btn.vh-mini-btn {
  align-self: flex-end;
  min-width: 180px;
}

/* ==========================
   ESTADOS (loading, disabled)
   ========================== */

.vh-btn[disabled],
.vh-btn:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ==========================
   LIGHT MODE OVERRIDES (upload)
   ========================== */

html[data-theme="light"] .vh-upload-card,
html[data-theme="light"] .vh-upload-drop,
html[data-theme="light"] .vh-upload-panel {
  background:
    radial-gradient(circle at 0 0, rgba(0,0,0,0.05), transparent 60%),
    rgba(255,255,255,0.78) !important;
  border-color: rgba(0,0,0,0.10) !important;
}

html[data-theme="light"] .vh-upload-help,
html[data-theme="light"] .vh-upload-hint {
  color: rgba(0,0,0,0.60) !important;
}
