/* ═══════════════════════════════════════════════════════
   PYYROS · Showcase Studio (tools.css)
   Tool-only styles. Safe to load alongside style.css:
   every selector below is tool-* / studio-* scoped.
   Gold tokens match the main forge theme (#d29c3c / #f6d47c).
   ═══════════════════════════════════════════════════════ */

/* Grid layout for the three tool cards */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.tool-showcase-card {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* Tool card */
.tool-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(210, 156, 60, 0.28);
  padding: 1.5rem;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.tool-card:hover {
  border-color: rgba(210, 156, 60, 0.5);
  box-shadow: 0 0 22px rgba(210, 156, 60, 0.1);
}

.tool-card-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}
.tool-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: #c8c8c8;
  margin: 0 0 1.2rem 0;
  line-height: 1.5;
}

/* Upload zone */
.tool-upload-zone {
  position: relative;
  border: 2px dashed rgba(210, 156, 60, 0.35);
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
  margin-bottom: 1rem;
}
.tool-upload-zone:hover,
.tool-upload-zone.dragging {
  border-color: rgba(246, 212, 124, 0.7);
  background: rgba(210, 156, 60, 0.05);
}
.tool-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.tool-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  pointer-events: none;
}
.tool-upload-icon {
  font-size: 1.4rem;
  color: #d29c3c;
  margin-bottom: 0.5rem;
}
.tool-upload-text {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
  overflow-wrap: anywhere;
}
.tool-upload-hint {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: #adadad;
  margin: 0;
}

/* Template preview canvas */
.tool-preview-wrap {
  display: flex;
  justify-content: center;
  background: #0a0a0a;
  border: 1px solid rgba(210, 156, 60, 0.2);
  padding: 0.5rem;
  margin-bottom: 1rem;
  overflow: auto;
}
.tool-template-canvas {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* Crop editors */
.tool-crops {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tool-crop-row {
  border: 1px solid rgba(210, 156, 60, 0.2);
  padding: 0.75rem;
}
.tool-crop-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #ffffff;
}
.tool-crop-color {
  display: inline-block;
  width: 12px;
  height: 12px;
}
.tool-crop-size {
  margin-left: auto;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  color: #adadad;
  letter-spacing: 0;
}
.tool-crop-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.tool-crop-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tool-crop-field-label {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  color: #adadad;
  letter-spacing: 0;
}
.tool-crop-field input {
  background: rgba(210, 156, 60, 0.05);
  border: 1px solid rgba(210, 156, 60, 0.3);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  width: 100%;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-crop-field input:focus {
  outline: none;
  border-color: #f6d47c;
  box-shadow: 0 0 18px rgba(210, 156, 60, 0.2);
}
@media (max-width: 480px) {
  .tool-crop-fields { grid-template-columns: repeat(2, 1fr); }
}

/* Showcase card */
.tool-showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.tool-showcase-stage {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
                    linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
                    linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}
.tool-showcase-canvas {
  width: 384px;
  height: 384px;
  max-width: 100%;
  image-rendering: pixelated;
}

/* Options + actions */
.tool-options {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.tool-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #dedede;
  cursor: pointer;
}
.tool-option input {
  accent-color: #d29c3c;
  cursor: pointer;
  width: 1rem;
  height: 1rem;
}
.tool-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.tool-warn {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #f6d47c;
  margin: 0.9rem 0 0 0;
  line-height: 1.5;
}

/* PYYROS ghost button (original tool look) */
.py-btn {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.py-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  box-shadow: 0 0 22px rgba(201, 164, 103, 0.2);
}
.py-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Studio buttons - gold ghost, matches site CTA language */
.studio-btn {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f6d47c;
  background: rgba(210, 156, 60, 0.06);
  border: 1px solid #d29c3c;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.studio-btn:hover:not(:disabled) {
  background: #d29c3c;
  color: #000000;
  border-color: #d29c3c;
  box-shadow: 0 0 22px rgba(210, 156, 60, 0.3);
}
.studio-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.studio-btn-ghost {
  background: transparent;
  color: #ededed;
  border-color: rgba(210, 156, 60, 0.45);
}
