/* Active Image Generator stylesheet. Root-level /styles is the live CSS architecture. */
.tools-hero {
  padding-top: 72px;
  padding-bottom: 18px;
}

.tools-hero__head {
  background: rgba(20, 21, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  max-width: 960px;
}

.tool-module__kicker {
  color: rgba(239, 233, 221, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.tools-collection {
  padding-top: 28px;
}

#tools-generator-root {
  position: relative;
  margin: 0;
  padding: 0;
}

#tools-generator-root .tool-wrap {
  max-width: 980px;
  margin: 0 auto;
}

#tools-generator-root .tool-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #0b0f19;
}

#tools-generator-root label {
  font-weight: 600;
  display: block;
  margin: 14px 0 6px;
}

#tools-generator-root textarea,
#tools-generator-root select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #0b1220;
  color: #f8fafc;
  padding: 10px 12px;
  outline: none;
}

#tools-generator-root textarea {
  resize: vertical;
  min-height: 120px;
}

#tools-generator-root .hint {
  margin: 6px 0 0;
  opacity: 0.8;
  font-size: 14px;
}

#tools-generator-root .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 10px;
}

#tools-generator-root button {
  border-radius: 10px;
  border: 0;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

#tools-generator-root button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#tools-generator-root .status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.06);
  border: 1px solid rgba(2, 6, 23, 0.1);
  min-height: 20px;
  white-space: pre-wrap;
}

#tools-generator-root .results {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

#tools-generator-root .result-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  color: #0b0f19;
}

#tools-generator-root .result-card img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
}

#tools-generator-root .result-meta {
  padding: 10px 12px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.3;
  color: #0b0f19;
}

#tools-generator-root .result-actions {
  padding: 0 12px 12px;
}

#tools-generator-root .tool-results-title {
  margin: 18px 0 10px;
}

.tool-generator-visual {
  margin: 16px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.tool-generator-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: min(1000px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 900px) {
  .tools-hero {
    padding-top: 58px;
  }
}

@media (max-width: 760px) {
  #tools-generator-root .row {
    grid-template-columns: 1fr;
  }
}
