/*
 * favicon-generator.css — per-tool styles: dropzone, option grid, and the
 * checkered icon-preview cards. Tokens only; no inline styles (CSP: style-src 'self').
 */

/* Drop zone — a label wrapping the (visually hidden) native file input. */
.fg-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.fg-dropzone:hover { border-color: var(--blue-600); background: var(--blue-50); }
.fg-dropzone.is-dragover { border-color: var(--blue-600); background: var(--blue-100); }
.fg-dropzone:focus-within { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.fg-dropzone-icon { color: var(--text-muted); }
.fg-dropzone-title { font: 600 15px/1.4 var(--font-sans); color: var(--text-primary); }
.fg-dropzone-hint { font: 400 13px/1.4 var(--font-sans); color: var(--text-secondary); }

.fg-file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Options */
.fg-options { margin-top: var(--space-5); }
.fg-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.fg-color {
  width: 42px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  flex: 0 0 auto;
}

/* Icon grid — each card shows a preview on a checkered tile. */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.fg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.fg-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--neutral-50);
  background-image:
    linear-gradient(45deg, var(--neutral-100) 25%, transparent 25%),
    linear-gradient(-45deg, var(--neutral-100) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--neutral-100) 75%),
    linear-gradient(-45deg, transparent 75%, var(--neutral-100) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.fg-tile-img {
  display: block;
  max-width: 128px;
  max-height: 128px;
  width: auto;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}
.fg-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.fg-card-size { font: 600 13px/1.2 var(--font-mono, var(--font-sans)); color: var(--text-primary); }
.fg-card-note { font: 400 11px/1.2 var(--font-sans); color: var(--text-secondary); }
.fg-card-dl { width: 100%; }

/* favicon.ico row */
.fg-ico-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.fg-ico-text { flex: 1 1 220px; }
.fg-ico-text h3 { margin: 0 0 var(--space-1); }
