/* 한글 더미 텍스트 전용 스타일 */

/* 옵션 패널 */
.options-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.option-group {
  margin-bottom: 1rem;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.option-value {
  font-weight: 700;
  color: var(--primary);
}

/* 슬라이더 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
}

/* 스타일 라디오 버튼 */
.style-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.style-radio {
  display: none;
}

.style-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.style-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.style-radio:checked + .style-label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 버튼 행 */
.btn-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

/* 통계 바 */
.stats-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-sub);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-item .stat-val {
  font-weight: 600;
  color: var(--text);
}

/* 에디터 래퍼 */
.editor-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-sub);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 출력 영역 */
textarea {
  width: 100%;
  min-height: 300px;
  padding: 1rem;
  border: none;
  outline: none;
  resize: vertical;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  background: var(--surface);
  color: var(--text);
}

textarea::placeholder {
  color: var(--text-sub);
  opacity: 0.6;
}

textarea[readonly] {
  cursor: default;
}

/* 복사 버튼 */
.btn-copy {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-sub);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* 반응형: 태블릿 */
@media (max-width: 768px) {
  .options-panel {
    padding: 1rem;
  }
}

/* 반응형: 모바일 */
@media (max-width: 480px) {
  .options-panel {
    padding: 0.75rem;
  }

  .option-label {
    font-size: 0.8rem;
  }

  .style-label {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  textarea {
    min-height: 200px;
    font-size: 0.88rem;
  }

  .stats-bar {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
}
