/* 팟케스트 기능 전용 CSS 스타일 */

/* 팟케스트 버튼 스타일 - 복사 버튼과 완전히 동일한 스타일 적용 */
.podcast-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-button:hover {
    color: var(--accent-primary);
}

.podcast-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.2);
}

/* 팟케스트 완료 후 영구 비활성화 상태 */
.podcast-button.podcast-completed {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.5);
}

.podcast-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* 팟케스트 인라인 진행 상태 컨테이너 */
.podcast-progress-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 8px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* 팟케스트 재생 컨트롤 인라인 */
.podcast-playback-controls-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 작은 진행 상태 스피너 */
.podcast-progress-spinner-small {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 작은 진행 상태 텍스트 */
.podcast-progress-text-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 작은 컨트롤 버튼 */
.podcast-control-btn-small {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.podcast-control-btn-small:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* 작은 컨트롤 텍스트 */
.podcast-control-text-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* 진행 상태 스피너 (기존 - 하위 호환성) */
.podcast-progress-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: podcast-spin 1s linear infinite;
}

.dark-mode .podcast-progress-spinner {
    border-color: #4a5568;
    border-top-color: #63b3ed;
}

@keyframes podcast-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 진행 상태 텍스트 */
.podcast-progress-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    flex: 1;
}

.dark-mode .podcast-progress-text {
    color: #e2e8f0;
}

/* 진행 바 */
.podcast-progress-bar {
    flex: 2;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.dark-mode .podcast-progress-bar {
    background-color: #4a5568;
}

.podcast-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.dark-mode .podcast-progress-fill {
    background: linear-gradient(90deg, #63b3ed 0%, #3182ce 100%);
}

/* 재생 컨트롤 */
.podcast-playback-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.podcast-control-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #495057;
}

.podcast-control-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.podcast-control-btn:active {
    transform: translateY(1px);
}

.dark-mode .podcast-control-btn {
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .podcast-control-btn:hover {
    background-color: #2d3748;
    border-color: #718096;
    color: #f7fafc;
}

/* 재생 버튼 특별 스타일 */
.podcast-play-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
}

.podcast-play-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    border-color: #1e7e34;
    color: white;
}

/* 일시정지 버튼 */
.podcast-pause-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border-color: #ffc107;
    color: #212529;
}

.podcast-pause-btn:hover {
    background: linear-gradient(135deg, #e0a800 0%, #e8630a 100%);
    border-color: #d39e00;
    color: #212529;
}

/* 정지 버튼 */
.podcast-stop-btn {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border-color: #dc3545;
    color: white;
}

.podcast-stop-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #d91a72 100%);
    border-color: #bd2130;
    color: white;
}

/* 컨트롤 텍스트 */
.podcast-control-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-left: auto;
}

.dark-mode .podcast-control-text {
    color: #a0aec0;
}

/* 팟케스트 버튼 처리 중 상태 */
.podcast-button.processing {
    opacity: 0.5;
    pointer-events: none;
}

.podcast-button.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: podcast-spin 1s linear infinite;
}

/* 반응형 디자인 및 모바일 최적화 */
@media (max-width: 768px) {
    .podcast-progress-container {
        padding: 10px 12px;
        margin: 8px 0;
    }
    
    .podcast-progress-content {
        gap: 8px;
    }
    
    .podcast-progress-text {
        font-size: 13px;
    }
    
    .podcast-playback-controls {
        gap: 8px;
    }
    
    .podcast-control-btn {
        padding: 8px;
        min-width: 44px; /* 모바일 터치 타겟 최소 크기 */
        min-height: 44px;
    }
    
    .podcast-control-btn-small {
        padding: 4px;
        min-width: 32px; /* 작은 버튼도 터치하기 쉽게 */
        min-height: 32px;
    }
    
    .podcast-button {
        min-width: 44px; /* 팟케스트 버튼 터치 타겟 크기 */
        min-height: 44px;
        padding: 12px;
    }
    
    .podcast-control-text {
        font-size: 13px;
    }
    
    /* 인라인 진행 상태 모바일 최적화 */
    .podcast-progress-inline {
        gap: 4px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .podcast-progress-text-small {
        font-size: 0.7rem;
    }
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    .podcast-button:hover,
    .podcast-control-btn:hover,
    .podcast-control-btn-small:hover {
        /* 터치 디바이스에서는 hover 효과 제거 */
        background: transparent;
        color: inherit;
        border-color: inherit;
    }
    
    .podcast-button:active,
    .podcast-control-btn:active,
    .podcast-control-btn-small:active {
        /* 터치 피드백 강화 */
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* 접근성 개선 */
.podcast-button:focus,
.podcast-control-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.dark-mode .podcast-button:focus,
.dark-mode .podcast-control-btn:focus {
    outline-color: #63b3ed;
}

/* 애니메이션 효과 */
.podcast-progress-container {
    animation: podcast-fade-in 0.3s ease-out;
}

@keyframes podcast-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 오디오 시각화 효과 (선택사항) */
.podcast-audio-visualizer {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.podcast-audio-bar {
    width: 3px;
    background: #007bff;
    border-radius: 2px;
    animation: podcast-audio-pulse 1.5s ease-in-out infinite;
}

.podcast-audio-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.podcast-audio-bar:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.podcast-audio-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.podcast-audio-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.podcast-audio-bar:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes podcast-audio-pulse {
    0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.dark-mode .podcast-audio-bar {
    background: #63b3ed;
} 