/* =========================================================================
   PIXEL FORMAT CONVERTER - STYLESHEET
   ========================================================================= */

.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 18px;
  align-items: stretch;
}

.conv-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.conv-card h2 {
  margin: 0;
  font-size: 19px;
}

.conv-card-desc {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}

.conv-dropzone {
  border: 2px dashed rgba(59, 47, 77, 0.55);
  background: rgba(255, 255, 255, 0.55);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.conv-dropzone:hover,
.conv-dropzone.dragover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--universe-purple);
}

.conv-drop-hint {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.8;
}

.conv-result {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(59, 47, 77, 0.18);
}

.conv-result.visible {
  display: flex;
}

.conv-preview-box {
  background: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.2);
  padding: 12px;
  min-height: 120px;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.conv-preview-box canvas {
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
}

.conv-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark-purple);
}

.conv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conv-action-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 47, 77, 0.35);
  color: var(--text-dark-purple);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.conv-action-btn:hover:not(:disabled) {
  background: var(--universe-purple);
  color: #ffffff;
  border-color: var(--universe-purple);
}

.conv-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
