/* ================================================================
   STRIP - top control bar
   Edit this file to change: header layout, wordmark, upload button,
   URL input, Go button styling
   ================================================================ */

.strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 48px;
  border-bottom: 1px dashed var(--bd);
  background: rgba(0,10,22,.55);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Wordmark ── */
.wordmark {
  font-size: 16px;
  font-weight: 800;
  color: var(--ice);
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 6px;
  user-select: none;
  text-shadow: 0 0 20px rgba(128,238,192,.18);
}

.wordmark small {
  display: block;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  text-shadow: none;
}

/* Thin rule between wordmark and controls */
.strip-divider {
  width: 1px;
  height: 22px;
  background: var(--bd);
  flex-shrink: 0;
}

/* ── File upload thumbnail ── */
.img-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(128,238,192,.14);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--dim);
  transition: border-color .15s;
}

.img-btn:hover { border-color: rgba(128,238,192,.35); }

/* Hidden file input covers the entire button - always clickable */
.img-btn input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 9; font-size: 0;
}

.img-btn-idle {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}

.img-btn-preview {
  position: absolute; inset: 0; display: none;
  background: repeating-conic-gradient(#030c14 0% 25%,#051018 0% 50%) 0 0/10px 10px;
}

.img-btn-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "Change" overlay shown on hover when an image is loaded */
.img-btn-swap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 6.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ice); background: rgba(0,8,18,.85);
  opacity: 0; transition: opacity .15s;
  pointer-events: none;
}

.img-btn.loaded .img-btn-idle             { display: none; }
.img-btn.loaded .img-btn-preview          { display: block; }
.img-btn.loaded:hover .img-btn-swap       { opacity: 1; }

/* ── URL input ── */
.url-field {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bd);
  border-radius: 0;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 2px;
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}

.url-field:focus       { border-color: var(--ice2); }
.url-field::placeholder { color: var(--muted); }

/* ── Go button ── */
.go {
  background: transparent;
  border: 1px solid var(--bd-hi);
  border-radius: 4px;
  color: var(--ice);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}

.go:hover { background: rgba(128,238,192,.10); border-color: var(--ice); }

/* ── Error message ── */
#errMsg {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--err);
  flex-shrink: 0;
  display: none;
  max-width: 240px;
  line-height: 1.4;
}
