/* 변환기 페이지 스타일 */
.converter-container {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    background: white;
}

.converter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.converter-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.converter-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* URL 입력 섹션 */
.converter-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.url-input-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 비디오 정보 섹션 */
.video-info-section {
    max-width: 900px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 20px;
    padding: 2rem;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-preview {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.video-preview img {
    width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.video-details {
    flex: 1;
    min-width: 250px;
}

.video-details h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.video-details p {
    color: #6b7280;
    margin: 0.25rem 0;
}

/* 형식 선택 */
.format-selection {
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.format-selection h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.format-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.format-tab {
    flex: 1;
    padding: 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.format-tab:hover {
    background: #e5e7eb;
}

.format-tab.active {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.format-icon {
    font-size: 1.5rem;
}

/* 화질 옵션 */
.quality-options h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quality-item {
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quality-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quality-item.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.quality-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.quality-item.disabled::after {
    content: '🔒';
    position: absolute;
    top: 5px;
    right: 5px;
}

.quality-label {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.quality-size {
    font-size: 0.875rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.25rem;
}

/* MP3 정보 */
.mp3-info {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.info-label {
    color: #6b7280;
    font-weight: 600;
}

.info-value {
    color: var(--dark-color);
    font-weight: 700;
}

/* 다운로드 버튼 */
.btn-download {
    width: 100%;
    justify-content: center;
}

/* 진행 상태 */
.download-progress {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.download-progress h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.progress-bar {
    height: 30px;
    background: #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

#progressText {
    color: #6b7280;
}

/* 사용 현황 */
.usage-info {
    max-width: 600px;
    margin: 3rem auto;
}

.usage-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 16px;
    padding: 2rem;
}

.usage-card h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.usage-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.usage-item {
    text-align: center;
}

.usage-label {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.usage-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.upgrade-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.upgrade-link:hover {
    color: #5558e3;
}

/* 최근 다운로드 */
.recent-downloads {
    max-width: 900px;
    margin: 3rem auto;
}

.recent-downloads h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.downloads-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.download-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.download-item:hover {
    background: #f9fafb;
}

.download-item:last-child {
    border-bottom: none;
}

.download-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.download-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.download-format {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .video-preview {
        flex-direction: column;
    }
    
    .video-preview img {
        width: 100%;
    }
    
    .format-tabs {
        flex-direction: column;
    }
    
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usage-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}