/* RetroIt-specific layout and controls.
   Shared header / shell / typography come from blizlab-ui.css */

/* TOOL CARD & HEADER ------------------------------------------ */

.tool-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 18px 20px;
}

/* We piggy-back on .app-shell for the outer card,
   so .tool-card is only needed if you reuse it elsewhere. */

/* Subtitle on the right uses .status-pill from blizlab-ui.css */

/* LAYOUT ------------------------------------------------------ */

.retroit-main {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
}

/* Sidebar card ------------------------------------------------ */

.sidebar {
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5b6a74;
  margin-bottom: 8px;
}

.controls-group {
  margin-bottom: 14px;
}

/* FILE PICKER ------------------------------------------------- */

.file-label-text {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f4fbff;
  color: #1a1a1a;
  cursor: pointer;
  font-size: 0.85rem;
  min-width: 140px;
}

.file-button input[type="file"] {
  display: none;
}

.file-button:hover {
  background: #e2f3ff;
}

.file-name {
  font-size: 0.8rem;
  color: #5b6a74;
  margin-top: 4px;
}

.hint {
  font-size: 0.8rem;
  color: #5b6a74;
}

/* ORIENTATION & STYLE CHIPS ---------------------------------- */

.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 6px;
}

.orientations,
.styles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #f4fbff;
  color: #1a1a1a;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease,
    border-color 0.15s ease;
}

.chip-btn:hover {
  background: #e2f3ff;
}

.chip-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1b1304;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.style-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.style-dot.bw {
  background: #9a9a9a;
}

.style-dot.sepia {
  background: #ffcc33;
}

.style-dot.postal {
  background: #f5054f;
}

/* SLIDERS ------------------------------------------------------ */

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.slider-group label {
  font-size: 0.9rem;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-row span {
  min-width: 3ch;
  text-align: right;
  font-size: 0.85rem;
}

/* complement the shared range styling from blizlab-ui.css */
input[type="range"] {
  flex: 1;
  accent-color: var(--yellow);
}

/* BUTTONS ------------------------------------------------------ */

button {
  font: inherit;
}

button.main {
  background: var(--yellow);
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b1304;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  transition:
    background 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

button.main:hover:not(:disabled) {
  background: #ffd76a;
  transform: translateY(-1px);
}

button.main:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #f4fbff;
  color: #1a1a1a;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.secondary-btn:hover {
  background: #e2f3ff;
}

/* CANVAS AREA -------------------------------------------------- */

.canvas-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.canvas-drop-zone {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #e7f7fc;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.canvas-panel canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.drop-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.canvas-drop-zone.dragover .drop-hint {
  opacity: 1;
}

.canvas-caption {
  font-size: 0.8rem;
  color: #5b6a74;
  text-align: center;
}

/* RESPONSIVE --------------------------------------------------- */

@media (max-width: 900px) {
  .retroit-main {
    grid-template-columns: 1fr;
  }
}

/* Make RetroIt camera icon yellow */
.tool-title-pill svg {
  width: 45px;        /* mirror BGone icon size */
  height: 45px;
  fill: var(--yellow);
  flex-shrink: 0;
  transform: translateY(4px); /* same baseline alignment as BGone */
}

/* Make subtitle pill longer for RetroIt */
#toolSubtitle {
  max-width: none;
  white-space: nowrap;
}
#toolSubtitle {
  padding-inline: 18px;
}