/*
* 파일명: style.css
* 경로: /home/urlkr/public_html/p/image-converter/assets/css/
* 기능: 이미지 포맷 변환기 메인 스타일시트
* 작성일: 2025-01-10
* 수정일: 2025-01-10
*/

/* ===================================
* 히어로 섹션
* =================================== */
.converter-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.converter-hero .webtools-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0 auto !important;
    line-height: 1.5;
    max-width: 800px;
}

.converter-hero .webtools-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
}

.converter-hero .webtools-icon {
    display: none;
}

/* ===================================
* 섹션 타이틀
* =================================== */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 1.2rem;
    color: #667eea;
}

/* ===================================
* 업로드 영역
* =================================== */
.upload-box {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-box:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-box.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.upload-hint {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.upload-format {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.btn-select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 0.5rem;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ===================================
* 옵션 섹션
* =================================== */
.option-group {
    margin-bottom: 1.25rem;
}

.option-group label {
    display: block;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.select-format {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.select-format:focus {
    outline: none;
    border-color: #667eea;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.quality-value {
    width: 50px;
    text-align: center;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.btn-convert {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-convert:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================================
* 광고 영역 (IP 페이지 스타일)
* =================================== */
.webtools-ad {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.webtools-ad .text-muted {
    font-size: 0.85rem;
    text-align: center;
}

/* 초기 광고 카드 */
#initialAd .webtools-card-body {
    padding: 1rem;
}

#initialAd .webtools-ad {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ===================================
* 미리보기 영역
* =================================== */
.preview-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-item {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.preview-item img {
    width: 100%;
    max-height: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    margin-bottom: 1rem;
    border: 1px solid #e5e8ec;
}

.preview-info {
    margin-bottom: 1rem;
}

.preview-info p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.preview-info strong {
    color: #333;
    font-weight: 600;
}

.btn-download {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===================================
* 서비스 소개
* =================================== */
.intro-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.feature-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #555;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================
* 사용 방법
* =================================== */
.usage-steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.usage-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
* FAQ
* =================================== */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #e5e8ec;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.faq-question i {
    color: #667eea;
    font-size: 0.9rem;
}

.faq-answer {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    padding-left: 1.75rem;
}

/* ===================================
* 반응형
* =================================== */
@media (max-width: 991.98px) {
    .converter-hero .webtools-title {
        font-size: 1.4rem;
    }
    
    .converter-hero .webtools-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .converter-hero {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .converter-hero .webtools-title {
        font-size: 1.3rem;
    }
    
    .converter-hero .webtools-subtitle {
        font-size: 0.85rem;
    }
    
    .upload-box {
        padding: 1.5rem 1rem;
        min-height: 240px;
    }
    
    .preview-item img {
        max-height: 180px;
        height: 180px;
    }
    
    .usage-steps-wrapper {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .converter-hero {
        padding: 1rem;
    }
    
    .converter-hero .webtools-title {
        font-size: 1.2rem;
    }
    
    .converter-hero .webtools-subtitle {
        font-size: 0.8rem;
    }
}

/* ===================================
* 초기 광고 카드 높이 조정
* =================================== */
#initialAd .webtools-card-body {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

#initialAd .webtools-ad {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 300px;
}