/* ---------------------------------------------------------------------------
 * videogencreate.css — video generation page (/videoGenCreate)
 *
 * Follows private/others/screenshot_template.jpeg:
 *   - two column layout (form on the left, "Exemplo" on the right)
 *   - magenta primary action, violet accents, amber upscaling badge
 *   - bright amber CTA with a soft glow
 *
 * The compiled Tailwind build only ships the accent + jacarta palettes, so the
 * magenta / violet / amber tones of the template live here.
 * ------------------------------------------------------------------------- */

.vgc-main {
  padding: 7rem 0 4rem;
}

@media (min-width: 1024px) {
  .vgc-main {
    padding: 9rem 0 6rem;
  }
}

.vgc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .vgc-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* --- Panel ---------------------------------------------------------------- */
.vgc-panel {
  border-radius: 1.5rem;
  background: #13163f;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .vgc-panel {
    padding: 2rem;
  }
}

.vgc-example {
  border-radius: 1.5rem;
  background: #13163f;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .vgc-example {
    padding: 2rem;
  }
}

/* --- Titles ---------------------------------------------------------------- */
.vgc-title {
  margin: 0 0 1.25rem;
  color: #e2e8f0;
  font-family: font-display, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.vgc-title--sm {
  margin-bottom: 1rem;
}

.vgc-subtitle {
  margin: 1.75rem 0 0.75rem;
  color: #e2e8f0;
  font-family: font-display, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Buttons ---------------------------------------------------------------- */
.vgc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.vgc-btn--magenta {
  background: #e838c4;
}

.vgc-btn--magenta:hover {
  background: #f24ed4;
  transform: translateY(-1px);
}

.vgc-btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.vgc-btn--ghost:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.vgc-btn--block {
  display: flex;
  width: 100%;
}

.vgc-btn--tall {
  padding: 0.85rem 1.25rem;
}

.vgc-btn--small {
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* --- Upload slots ----------------------------------------------------------- */
/* One slot for a single template, two side by side for a DUO template. */
.vgc-uploads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 560px) {
  .vgc-uploads--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.vgc-upload-slot {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.6rem;
}

.vgc-upload-slot__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Gender of the subject expected in the slot. */
.vgc-upload-slot--f .vgc-upload-slot__label {
  color: #f9a8d4;
}

.vgc-upload-slot--m .vgc-upload-slot__label {
  color: #7dd3fc;
}

/* --- Dropzone --------------------------------------------------------------- */
.vgc-dropzone {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 15rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

.vgc-dropzone:hover {
  background: rgba(255, 255, 255, 0.05);
}

.vgc-dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #4c1d95;
  color: #ddd6fe;
  font-size: 1rem;
}

.vgc-dropzone__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.vgc-dropzone__hint {
  margin: 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Preview of the chosen photo */
.vgc-dropzone__preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: #0d102d;
}

/* The picture itself, with the badge and the remove button on top of it. */
.vgc-dropzone__preview-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.vgc-dropzone__preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Action bar below the picture */
.vgc-dropzone__preview-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.6rem;
  background: rgba(13, 16, 45, 0.94);
}

.vgc-dropzone__preview-actions .vgc-btn {
  flex: 1 1 0;
}

/* Age / verification badge over the preview */
.vgc-dropzone__badge {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #22c55e;
  padding: 0.28rem 0.75rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.vgc-dropzone__badge[data-state="pending"] {
  background: #f59e0b;
}

.vgc-dropzone__badge.hidden {
  display: none;
}

/* Verification status line under the dropzone */
.vgc-dropzone__status {
  margin: 0.6rem 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  text-align: center;
}

.vgc-dropzone__status[data-state="checking"] {
  color: #c7d2fe;
}

.vgc-dropzone__status[data-state="error"] {
  color: #fca5a5;
}

.vgc-dropzone__status.hidden {
  display: none;
}

/* Locked dropzone for signed out visitors */
.vgc-dropzone--locked {
  opacity: 0.7;
}

.vgc-dropzone__locked-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.vgc-dropzone__locked-note a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vgc-dropzone__locked-note a:hover {
  color: #fff;
}

/* CTA that is not ready yet */
.vgc-cta.is-disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.55;
  box-shadow: none;
}

.vgc-cta.is-busy {
  cursor: progress;
  pointer-events: none;
}

.vgc-dropzone__clear {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(13, 16, 45, 0.85);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.vgc-dropzone__clear:hover {
  background: #e838c4;
}

/* --- Credits row ------------------------------------------------------------ */
.vgc-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.vgc-credits__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

/* Gem glyph next to every gem amount. */
.vgc-gem {
  margin-right: 0.15rem;
  color: #7dd3fc;
  font-size: 0.85em;
  vertical-align: -0.08em;
}

.vgc-upscale__badge .fa-gem {
  margin-right: 0.2rem;
  font-size: 0.9em;
  vertical-align: -0.05em;
}

.vgc-credits__balance {
  color: #e2e8f0;
  font-weight: 600;
}

.vgc-credits__cost {
  color: #f472b6;
  font-weight: 700;
}

/* --- Selected style ---------------------------------------------------------- */
.vgc-style {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}

.vgc-style__thumb {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #0d102d;
}

.vgc-style__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vgc-style__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(148, 163, 184, 0.5);
}

.vgc-style__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

.vgc-style__name {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.vgc-style__price {
  color: #94a3b8;
  font-size: 0.78rem;
}

.vgc-style__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.7rem;
}

/* --- Duration pills ------------------------------------------------------------ */
.vgc-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vgc-duration {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9999px;
  background: transparent;
  padding: 0.5rem 1.05rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vgc-duration:hover {
  border-color: rgba(244, 114, 182, 0.6);
}

.vgc-duration.is-active {
  border-color: transparent;
  background: #ec4899;
  color: #fff;
}

.vgc-duration__price {
  opacity: 0.85;
  white-space: nowrap;
}

.vgc-duration__price .fa-gem {
  margin-right: 0.2rem;
  font-size: 0.9em;
  vertical-align: -0.05em;
}

.vgc-hint {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
}

.vgc-hint--top {
  margin: 0 0 0.85rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* --- Upscaling panel ------------------------------------------------------------ */
.vgc-upscale {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 0.9rem;
  background: rgba(124, 58, 237, 0.12);
  padding: 0.9rem 1rem;
}

.vgc-upscale__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  background: rgba(124, 58, 237, 0.35);
  color: #ddd6fe;
  font-size: 0.95rem;
}

.vgc-upscale__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

.vgc-upscale__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
}

.vgc-upscale__badge {
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  padding: 0.1rem 0.55rem;
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
}

.vgc-upscale__desc {
  color: #94a3b8;
  font-size: 0.78rem;
}

/* --- Switch ---------------------------------------------------------------------- */
.vgc-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.vgc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vgc-switch__track {
  display: block;
  width: 3rem;
  height: 1.7rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.35);
  transition: background-color 0.2s ease;
}

.vgc-switch__thumb {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.225rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.vgc-switch input:checked + .vgc-switch__track {
  background: #7c3aed;
}

.vgc-switch input:checked + .vgc-switch__track .vgc-switch__thumb {
  transform: translateX(1.3rem);
}

.vgc-switch input:focus-visible + .vgc-switch__track {
  outline: 2px solid #8358ff;
  outline-offset: 2px;
}

/* --- CTA -------------------------------------------------------------------------- */
.vgc-cta {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: #fbbf24;
  padding: 1rem 1.5rem;
  color: #1f1500;
  font-family: font-display, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.vgc-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 38px rgba(251, 191, 36, 0.5);
}

.vgc-cta:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* --- Notices ----------------------------------------------------------------------- */
.vgc-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
}

.vgc-notice--error {
  margin-bottom: 1.25rem;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.vgc-notice--error code {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  opacity: 0.8;
}

.vgc-notice--inline {
  margin-top: 0.9rem;
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
}

/* `.vgc-notice` sets display:flex, which would otherwise beat the Tailwind
   `.hidden` utility (same specificity, later in the cascade). */
.vgc-notice.hidden,
.vgc-dropzone__preview.hidden {
  display: none;
}

/* --- Legal ------------------------------------------------------------------------ */
.vgc-legal {
  margin: 1.25rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
}

.vgc-legal__link {
  color: #f472b6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vgc-legal__link:hover {
  color: #fbcfe8;
}

/* --- Example column ---------------------------------------------------------------- */
.vgc-example__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0d102d;
}

.vgc-example__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  object-fit: cover;
}

.vgc-example__video--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.4);
}

.vgc-example__badge {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: #ec4899;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.55);
}

.vgc-example__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.vgc-example__tag {
  border-radius: 9999px;
  background: rgba(244, 114, 182, 0.14);
  padding: 0.15rem 0.6rem;
  color: #f9a8d4;
  font-size: 0.72rem;
}

/* Same dark SweetAlert skin as create.php */
.dark-mode-popup {
  background-color: #14142B !important;
  color: #ffffff !important;
}

.dark-mode-popup .swal2-title,
.dark-mode-popup .swal2-content,
.dark-mode-popup .swal2-html-container {
  color: #ffffff !important;
}

.dark-mode-popup .swal2-actions button {
  background-color: #6366F1 !important;
  color: #ffffff !important;
}

.dark-mode-popup .swal2-actions button:hover {
  background-color: #4F46E5 !important;
}
