/* Instagram Highlight Cover — Tool-specific styles */
.page { padding: 40px 20px; max-width: 1000px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

.grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; }

.form-card { padding: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; color: #aaa;
  margin-bottom: 6px; font-weight: 500;
}
.form-group input[type=text] {
  width: 100%; padding: 10px 12px;
  background: #0d0d0d; color: #eee;
  border: 1px solid #2a2a2a; border-radius: 6px;
  font-size: 18px;
}
.form-group input[type=text]:focus { border-color: #ff4444; outline: none; }
.form-group .hint { font-size: 11px; color: #666; margin-top: 4px; }

.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] {
  width: 44px; height: 38px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid #2a2a2a; border-radius: 6px;
}
.color-row input[type=text] {
  flex: 1; font-family: 'SF Mono', monospace; font-size: 14px;
}

.preset-colors {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.preset-color {
  aspect-ratio: 1; border: 1px solid #2a2a2a;
  border-radius: 6px; cursor: pointer;
  transition: transform 0.1s;
}
.preset-color:hover { transform: scale(1.08); }

input[type=range] { width: 100%; accent-color: #ff4444; }
.range-val { font-size: 12px; color: #888; }
.checkbox-label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: #ccc;
}
.checkbox-label input { accent-color: #ff4444; }

#download-btn { width: 100%; }
.status-msg { display: block; font-size: 13px; margin-top: 8px; text-align: center; }
.status-msg.ok { color: #4caf50; }

.preview-card { padding: 18px; display: flex; flex-direction: column; }
.preview-label { font-size: 12px; color: #888; margin-bottom: 10px; }
.preview-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #0a0a0a; border-radius: 8px;
  border: 1px solid #1a1a1a;
  padding: 20px; position: relative;
}
.cover-canvas {
  max-width: 100%; max-height: 500px; height: auto;
  border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
/* Visual circle overlay showing what gets cropped */
.circle-overlay {
  position: absolute;
  width: 26%; aspect-ratio: 1;
  border: 3px dashed rgba(255, 68, 68, 0.7);
  border-radius: 50%; pointer-events: none;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .cover-canvas { max-height: 400px; }
}
@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
}
