/* === 파일 변환기 === */
.converter-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.converter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.converter-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.converter-desc {
  font-size: 0.82rem;
  color: var(--sand-dark);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(244, 197, 66, 0.2);
  border-radius: 0 4px 4px 0;
}

/* 업로드 영역 */
.converter-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(11, 16, 38, 0.90);
  margin-bottom: 1rem;
}

.converter-upload-area:hover,
.converter-upload-area.drag-over {
  border-color: var(--gold);
  background: rgba(244, 197, 66, 0.05);
}

.converter-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.converter-upload-text {
  font-size: 0.9rem;
  color: var(--sand);
  margin-bottom: 0.3rem;
}

.converter-upload-hint {
  font-size: 0.75rem;
  color: var(--sand-dark);
}

/* 파일 목록 */
.converter-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.converter-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(11, 16, 38, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.converter-file-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.converter-file-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--sand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.converter-file-size {
  font-size: 0.72rem;
  color: var(--sand-dark);
  flex-shrink: 0;
}

.converter-file-remove {
  background: none;
  border: none;
  color: var(--sand-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  transition: color 0.15s;
  flex-shrink: 0;
}

.converter-file-remove:hover {
  color: #e74c3c;
}

/* 옵션 */
.converter-options {
  padding: 1rem;
  background: rgba(11, 16, 38, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.converter-option-group {
  margin-bottom: 0.8rem;
}

.converter-option-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--sand);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.converter-convert-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* 결과 */
.converter-result {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(123, 198, 126, 0.06);
  border: 1px solid rgba(123, 198, 126, 0.25);
  border-radius: var(--radius);
}

.converter-result-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.converter-result-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 1rem;
}

.converter-result-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* 제한 안내 */
.converter-limits {
  font-size: 0.72rem;
  color: var(--sand-muted);
  margin-top: 0.4rem;
}

/* 프로그레스 바 */
.converter-progress {
  margin-bottom: 0.8rem;
}

.converter-progress-text {
  font-size: 0.78rem;
  color: var(--sand);
  margin-bottom: 0.35rem;
}

.converter-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.converter-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

/* 결과 정보 */
.converter-result-info {
  font-size: 0.85rem;
  color: var(--sand);
  margin-bottom: 1rem;
}

.converter-result-warnings {
  margin-top: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 6px;
  font-size: 0.78rem;
  color: #e74c3c;
  text-align: left;
  line-height: 1.5;
}

/* === HWP 안내 패널 === */
.hwp-guide-panel {
  position: relative;
  background: rgba(244, 197, 66, 0.05);
  border: 1px solid rgba(244, 197, 66, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  animation: hwpGuideFadeIn 0.3s ease;
}

@keyframes hwpGuideFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hwp-guide-panel { animation: none; }
}

.hwp-guide-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--sand-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  transition: color 0.15s;
}

.hwp-guide-close:hover {
  color: var(--sand);
}

.hwp-guide-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hwp-guide-header-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.hwp-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.hwp-guide-filename {
  font-size: 0.78rem;
  color: var(--sand);
  margin-top: 0.15rem;
  word-break: break-all;
}

.hwp-guide-subtitle {
  font-size: 0.78rem;
  color: var(--sand-dark);
  margin-top: 0.15rem;
}

/* 방법 카드 */
.hwp-guide-method {
  padding: 0.8rem;
  background: rgba(11, 16, 38, 0.4);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.hwp-guide-method-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.hwp-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}

.hwp-guide-badge--recommended {
  background: var(--gold);
  color: #1a1a2e;
  border-color: var(--gold);
}

.hwp-guide-method-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand);
}

.hwp-guide-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1a1a2e;
  background: var(--gold);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* 단계 */
.hwp-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.2rem;
}

.hwp-guide-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--sand);
  line-height: 1.5;
}

.hwp-guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(244, 197, 66, 0.15);
  color: var(--gold);
  flex-shrink: 0;
}

/* "또는" 구분선 */
.hwp-guide-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.hwp-guide-divider::before,
.hwp-guide-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(244, 197, 66, 0.15);
}

.hwp-guide-divider span {
  font-size: 0.72rem;
  color: var(--sand-muted);
}

/* 참고 안내 */
.hwp-guide-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.6rem;
  background: rgba(244, 197, 66, 0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--sand-dark);
  line-height: 1.5;
}

.hwp-guide-note-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 다운로드 버튼 영역 */
.hwp-guide-actions {
  display: flex;
  gap: 0.5rem;
}

.hwp-guide-btn {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

/* 반응형 */
@media (max-width: 480px) {
  .converter-container {
    padding: 0 0.75rem;
  }

  .converter-upload-area {
    padding: 1.5rem 1rem;
  }

  .converter-result-actions {
    flex-direction: column;
  }

  .hwp-guide-actions {
    flex-direction: column;
  }
}
