@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.12), transparent 45%),
    radial-gradient(circle at bottom, rgba(249, 115, 22, 0.12), transparent 45%),
    #050816;
  color: #f9fafb;
  min-height: 100vh;
  padding: 24px;
}

.upload-wrap {
  width: 100%;
  max-width: 680px;
  margin: 20px auto 0;
}

.upload-card {
  background: #020617;
  border-radius: 22px;
  padding: 22px 22px 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

/* NAV BAR BASE */
#jxNav {
  width: 100%;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 999;
}

.jxNav-container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 18px;
  position: relative;
}

.jxNav-logo img {
  width: 70px;
  filter: drop-shadow(0px 0px 6px rgba(0, 174, 255, 0.6));
}

.jxNav-left,
.jxNav-right {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.jxNav-left a,
.jxNav-right a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  white-space: nowrap;
}

.jxNav-left li {
  padding: 5px;
}

.jxNav-left a:hover,
.jxNav-right a:hover {
  opacity: 1;
  color: #00AFFF;
}

.jxNav-menu {
  display: flex;
  justify-content: space-between;
  flex: 1;
  max-width: 1000px;
}

/* BOTON BURGER */
.jxNav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 20px;
}

.jxNav-toggle span {
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 10px;
  transition: 0.2s;
}

/* RESPONSIVE MOBILE */
@media(max-width:930px) {
  .jxNav-toggle {
    display: flex;
  }

  .jxNav-container {
    justify-content: center;
  }

  .jxNav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .jxNav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #040713;
    flex-direction: column;
    gap: 14px;
    padding: 0px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    top: 33px;
  }

  #jxNav.open .jxNav-menu {
    max-height: 320px;
    padding-bottom: 15px;
  }

  .jxNav-left,
  .jxNav-right {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    text-align: left;
  }

  .jxNav-left a,
  .jxNav-right a {
    width: 100%;
    font-size: 15px;
  }

  #jxNav.open .jxNav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #jxNav.open .jxNav-toggle span:nth-child(2) {
    opacity: 0;
  }

  #jxNav.open .jxNav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

.upload-card::before {
  content: "UPLOAD";
  position: absolute;
  right: -46px;
  top: -38px;
  font-size: 64px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.12);
  transform: rotate(-18deg);
  pointer-events: none;
}

.upload-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.upload-sub {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.upload-hero {
  padding: 16px 16px 18px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.9));
}

.hero-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.75;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 13px;
  opacity: 0.85;
}

.upload-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.label {
  font-size: 12px;
  opacity: 0.8;
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 12px;
  background: #0b1220;
  color: #e5e7eb;
  font-size: 13px;
}

.dropzone {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.9));
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
}

.cover-dropzone {
  border-style: solid;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.9));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.dropzone.is-dragover {
  border-color: rgba(34, 197, 94, 0.9);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}

.file-input {
  display: none;
}

.dropzone-title {
  font-size: 16px;
  font-weight: 600;
}

.dropzone-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.file-meta {
  font-size: 12px;
  opacity: 0.8;
}

.file-list {
  display: grid;
  gap: 6px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

#photoPreview.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#photoPreview .preview-item {
  aspect-ratio: 1 / 1;
}

.preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0b1220;
  aspect-ratio: 4 / 3;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  cursor: pointer;
  border: 1px solid rgba(248, 113, 113, 0.6);
}

.preview-remove:hover {
  background: rgba(239, 68, 68, 0.9);
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 12px;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  opacity: 0.7;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1220;
}

.upload-errors {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.upload-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.5);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 12px;
}

.upload-success-card {
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 14px;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #a7f3d0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.success-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.success-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 12px;
}

.success-code span {
  font-weight: 700;
  color: #facc15;
}

.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.success-hint {
  font-size: 12px;
  opacity: 0.75;
}

.upload-closed {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 18px;
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
}

.closed-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.closed-sub {
  font-size: 13px;
  opacity: 0.85;
}

.closed-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #0b1220;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.closed-link:hover {
  border-color: rgba(34, 197, 94, 0.6);
  color: #a7f3d0;
}

.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
