/* 이미지 워터마크 추가 전용 스타일 */

/* 편집 섹션 */
.edit-section { margin-top: 1.5rem; }
.edit-section[hidden] { display: none; }

/* 미리보기 */
.preview-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 400px;
}

.preview-area canvas {
  max-width: 100%;
  max-height: 400px;
  display: block;
}

/* 설정 */
.settings {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.settings-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.settings-row .form-group {
  flex: 1;
  min-width: 180px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group > label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
}

.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* range-wrapper overrides */
.range-wrapper input[type="range"] {
  flex: 1;
}

.range-wrapper span {
  min-width: 4ch;
  font-size: 0.85rem;
}

/* 색상 옵션 */
.color-options {
  display: flex;
  gap: 1rem;
}

.color-radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.color-radio input { accent-color: var(--primary); }

.color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.color-swatch.white { background: #ffffff; }
.color-swatch.black { background: #000000; }

/* 액션 */
.action-row {
  display: flex;
  gap: 0.75rem;
}

.btn-change {
  flex: 1;
  padding: 0.65rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-change:hover {
  border-color: var(--primary);
}

.btn-download {
  flex: 2;
  padding: 0.65rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-download:hover {
  background: var(--primary-hover);
}

@media (max-width: 480px) {
  .settings-row { flex-direction: column; gap: 0.75rem; }
  .action-row { flex-direction: column; }
  .btn-download { flex: 1; }
}
