/**
 * AI 알림 시스템 스타일
 * 백그라운드 완료 알림 및 진행 상황 표시용
 */

/* 슬라이드 인 애니메이션 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 슬라이드 아웃 애니메이션 */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 알림 컨테이너 */
.ai-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 알림 내용 */
.ai-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
}

/* 알림 메시지 */
.ai-notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: white;
}

/* 닫기 버튼 */
.ai-notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 성공 알림 */
.ai-notification-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.ai-notification-success::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.ai-notification-success .ai-notification-message {
    margin-left: 24px;
}

/* 오류 알림 */
.ai-notification-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.ai-notification-error::before {
    content: '⚠';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: white;
}

.ai-notification-error .ai-notification-message {
    margin-left: 24px;
}

/* 정보 알림 */
.ai-notification-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.ai-notification-info::before {
    content: 'ℹ';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: white;
}

.ai-notification-info .ai-notification-message {
    margin-left: 24px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .ai-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .ai-notification-content {
        padding: 14px 16px;
    }
    
    .ai-notification-message {
        font-size: 13px;
    }
}

/* 다크 테마 지원 */
@media (prefers-color-scheme: dark) {
    .ai-notification {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .ai-notification {
        animation: none !important;
    }
    
    @keyframes slideInRight {
        from, to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutRight {
        from, to {
            transform: translateX(0);
            opacity: 0;
        }
    }
}

/* 포커스 관리 */
.ai-notification-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 호버 효과 */
.ai-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* 진행 상황 표시용 추가 스타일 */
.ai-notification-progress {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.ai-notification-progress::before {
    content: '⏳';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: white;
    animation: pulse 2s infinite;
}

.ai-notification-progress .ai-notification-message {
    margin-left: 24px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}