/* Lick Generator specific styles */

/* Grid layout for lick - different from petpet */
.lick-grid {
  grid-template-columns: 1fr 1.3fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "upload  preview"
    "output  preview";
}

/* Dual upload container */
.upload-dual-container {
  display: flex;
  gap: 1em;
  justify-content: stretch;
}

.upload-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px dashed var(--input-border);
  border-radius: 4px;
  padding: 0.8em;
  background: var(--preview-bg);
}

.upload-box-title {
  font-weight: 500;
  margin-bottom: 0.5em;
  color: var(--txt-light);
  font-size: 0.9em;
}

.upload-box .upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.upload-box-buttons {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
}

.upload-hint {
  font-size: 0.75em;
  color: var(--txt-light);
  text-align: center;
  line-height: 1.3;
}

.btn-small {
  font-size: 0.85em;
  padding: 0.4em 0.8em;
}

/* Smaller drop area for dual upload */
.drop-area-small {
  padding: 0.8em;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-area-small .preview-image {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.drop-area-small .drop-area-input {
  padding: 0;
}

/* Content heading note */
.content-heading-note {
  font-size: 0.85em;
  color: var(--txt-light);
  margin-left: 0.5em;
}

/* Preview canvas for lick - wider aspect ratio */
.lick-grid .preview-canvas {
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 350px;
  max-width: 100%;
}

.lick-grid .canvas {
  cursor: default;
  max-width: 100%;
  overflow: hidden;
}

/* Responsive adjustments */
@media only screen and (max-width: 50em) {
  .lick-grid {
    grid-template-columns: 100%;
    grid-template-areas:
      "upload"
      "preview"
      "output";
  }

  .upload-dual-container {
    flex-direction: row;
  }
}

@media only screen and (max-width: 30em) {
  .upload-dual-container {
    flex-direction: column;
  }

  .upload-box {
    width: 100%;
  }
}

/* Output section layout for lick */
.lick-grid .output .preview-image-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* When image is present: image centered, info below */
.lick-grid .output .preview-image-container:has(img[src]:not([src=""])) {
  justify-content: center;
}

.lick-grid .output .preview-image-container:has(img[src]:not([src=""])) .output-info {
  margin-top: 1em;
}
