/* ====================================
 * YouTube CAPTCHA Guide Overlay
 * ==================================== */

.youtube-captcha-guide {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.youtube-captcha-guide.show {
    opacity: 1;
}

.captcha-guide-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.captcha-guide-header {
    background: linear-gradient(135deg, #dc143c 0%, #b71c1c 100%);
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.captcha-guide-header i {
    font-size: 32px;
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.captcha-guide-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.captcha-guide-body {
    padding: 24px;
    color: #e0e0e0;
    line-height: 1.6;
}

.captcha-guide-body p {
    margin: 0 0 16px 0;
}

.captcha-guide-body strong {
    color: #fff;
    font-weight: 600;
}

.captcha-guide-solution {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #dc143c;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.captcha-guide-solution h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-guide-solution ol {
    margin: 0;
    padding-left: 24px;
}

.captcha-guide-solution li {
    margin-bottom: 16px;
    color: #fff;
    font-weight: 500;
}

.captcha-guide-solution li:last-child {
    margin-bottom: 0;
}

.guide-sub {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 400;
}

.captcha-guide-open-external {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.captcha-guide-open-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.captcha-guide-open-external:active {
    transform: translateY(0);
}

.captcha-guide-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.captcha-guide-note p {
    margin: 0;
    color: #ffc107;
    font-size: 0.9rem;
}

.captcha-guide-actions {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

.captcha-guide-retry,
.captcha-guide-close {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.captcha-guide-retry {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.captcha-guide-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.captcha-guide-close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.captcha-guide-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 썸네일 로딩 상태 */
.thumbnail-loaded {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.thumbnail-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .youtube-captcha-guide {
        padding: 10px;
    }
    
    .captcha-guide-content {
        max-height: 95vh;
    }
    
    .captcha-guide-header {
        padding: 20px;
    }
    
    .captcha-guide-header h3 {
        font-size: 1.3rem;
    }
    
    .captcha-guide-body {
        padding: 20px;
    }
    
    .captcha-guide-solution {
        padding: 16px;
    }
    
    .captcha-guide-actions {
        flex-direction: column;
    }
    
    .captcha-guide-retry,
    .captcha-guide-close {
        width: 100%;
    }
}
