/* 이미지 업스케일 도구 스타일 - mockup-generator 디자인 언어 차용 (violet/indigo 테마) */
.image-upscaler-tool {
    --tool-primary: #7c3aed;
    --tool-bg: #f5f3ff;
    --tool-gradient: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

/* 히어로 */
.upscale-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.upscale-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.upscale-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.upscale-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.upscale-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 에디터 카드 */
.editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 16px;
}

/* 폼 컨트롤 포커스 테마 */
.image-upscaler-tool .form-select:focus,
.image-upscaler-tool .form-range:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.image-upscaler-tool .form-range::-webkit-slider-thumb { background: var(--tool-primary); }
.image-upscaler-tool .form-range::-moz-range-thumb { background: var(--tool-primary); }
.image-upscaler-tool .text-primary { color: var(--tool-primary) !important; }

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}
.btn-action-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #fff;
}
.btn-action-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

/* 드롭존 (JS가 dragover 시 인라인 스타일을 적용하므로 기본 상태만 테마링) */
.drop-zone {
    border: 2px dashed #d6ccf5 !important;
    background: var(--tool-bg);
    cursor: pointer;
    transition: all 0.3s;
}
.drop-zone:hover {
    border-color: var(--tool-primary) !important;
    background: #efe9ff;
}

/* 로딩 / 진행 바 */
.image-upscaler-tool .spinner-border.text-primary { color: var(--tool-primary) !important; }
.image-upscaler-tool .progress-bar {
    background-color: var(--tool-primary);
}

/* 비교 뷰 배지 */
.image-upscaler-tool .badge.bg-primary { background: var(--tool-gradient) !important; }

/* 비교 이미지 (클릭하여 크롭 비교) */
.image-upscaler-tool #originalImage,
.image-upscaler-tool #resultImage {
    cursor: crosshair;
}

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.image-upscaler-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.image-upscaler-tool .accordion-button:focus {
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .upscale-hero { padding: 28px 20px; border-radius: 12px; }
    .upscale-hero h1 { font-size: 22px; }
}
