/* astro upload page — page-specific styles only.
   Topbar, brand, ecosystem-nav, fonts, palette, .container, .btn, .card, and
   page-title typography all come from the astro hub's styles.css plus
   /shared/fcc-v2-controls.css + /shared/fcc-editorial.css. */

.container { max-width: 720px; }

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.page-lede {
  margin: 0 0 1.5rem;
  color: var(--text-dim, rgba(255,255,255,0.65));
  font-size: .95rem;
  line-height: 1.5;
}
.page-lede a { color: var(--accent, #c7d2fe); }

/* Login prompt */
.login-prompt h2 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.login-prompt p {
  margin: .35rem 0;
  color: var(--text-dim, rgba(255,255,255,0.7));
}

/* Form */
.upload-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.4rem;
}
.upload-form legend {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(199,210,254,0.65);
  padding: 0;
  margin-bottom: .55rem;
}
.upload-form label {
  display: block;
  margin-bottom: .85rem;
}
.upload-form label > span {
  display: block;
  font-size: .82rem;
  margin-bottom: .25rem;
  color: rgba(255,255,255,0.78);
}
.upload-form input[type="text"],
.upload-form input[type="date"],
.upload-form select,
.upload-form textarea {
  width: 100%;
  padding: .55rem .7rem;
  font: inherit;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: .4rem;
  resize: vertical;
}
.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
  outline: 0;
  border-color: rgba(199,210,254,0.55);
  background: rgba(0,0,0,0.6);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.hint {
  display: block;
  font-size: .76rem;
  color: rgba(255,255,255,0.45);
  margin-top: .25rem;
}
.hint code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: .92em;
  background: rgba(255,255,255,0.06);
  padding: .05rem .3rem;
  border-radius: 3px;
}

/* Dropzone */
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 2px dashed rgba(199,210,254,0.25);
  border-radius: .6rem;
  background: rgba(0,0,0,0.3);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  overflow: hidden;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(199,210,254,0.6);
  background: rgba(199,210,254,0.05);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
#dropzonePrompt {
  font-size: .9rem;
  color: rgba(255,255,255,0.6);
}
#dropzonePreview {
  max-width: 100%;
  max-height: 320px;
  border-radius: .4rem;
  display: block;
}

/* Actions row */
.actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.2rem;
}

/* Tonight-panel-style accent button (matches the rest of /astro/sky/) */
.btn-primary {
  background: linear-gradient(135deg, rgba(245,215,122,.95), rgba(245,215,122,.78));
  color: #1c1300;
  border-color: rgba(245,215,122,.7);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffe9a7, #f5d77a);
  color: #1c1300;
  border-color: #f5d77a;
}
.btn-primary:disabled {
  opacity: .5;
  cursor: wait;
}

.status {
  font-size: .85rem;
  color: rgba(255,255,255,0.65);
}
.status.is-error { color: #ff8866; }
.status.is-ok    { color: #74e89d; }

.moderation-notice {
  margin: .9rem 0 0;
  font-size: .78rem;
  color: rgba(255,255,255,0.5);
}
.moderation-notice a { color: var(--accent, #c7d2fe); }

/* My uploads */
.my-uploads h2 {
  margin: 0 0 .9rem;
  font-size: 1.1rem;
}
.my-uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem;
}
.my-upload-tile {
  position: relative;
  border-radius: .5rem;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
}
.my-upload-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.my-upload-tile-meta {
  padding: .45rem .55rem .55rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.my-upload-tile-name {
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-upload-tile-status {
  font-size: .7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.my-upload-tile-status.approved { color: #74e89d; }
.my-upload-tile-status.pending  { color: #f5d77a; }
.my-upload-tile-status.rejected { color: #ff8866; }
.my-upload-tile-delete {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.55);
  font-size: .72rem;
  cursor: pointer;
  margin-top: .15rem;
  padding: 0;
  text-decoration: underline;
}
.my-upload-tile-delete:hover {
  color: #ff8866;
}
