/* 全域通知樣式 */

/* 載入成功提示樣式 */
.load-more-success-toast {
    position: fixed;
    display: flex;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000000 !important;
    max-width: 280px !important;
    max-height: 60px !important;
    background: var(--success);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    opacity: 0;

}

.load-more-success-toast.show {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.5);
    opacity: 1;
}

.load-more-success-toast i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}


/* 載入錯誤提示樣式 */
.load-more-error-toast {
    position: fixed;
    display: flex;
    top: 20px;
    left: 50%;
    background: var(--danger);
    color: var(--white);
    transform: translateX(-50%) translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000000 !important;
    max-width: 280px !important;
    max-height: 60px !important;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    overflow: hidden;
    padding: 0.75rem 1.5rem;
    opacity: 0;
}

.load-more-error-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    box-shadow: 0 8px 28px rgba(220, 53, 69, 0.5);
}

.load-more-error-toast i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

/* 通用通知樣式 */
.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #333333;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000000 !important;
    transform: translateX(-50%) translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 280px !important;
    max-height: 60px !important;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.notification-toast:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* 通知類型樣式 */
.notification-toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
}

.notification-toast.success.show {
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.5);
}

.notification-toast.success:hover {
    box-shadow: 0 10px 32px rgba(40, 167, 69, 0.6);
}

.notification-toast.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.4);
}

.notification-toast.error.show {
    box-shadow: 0 8px 28px rgba(220, 53, 69, 0.5);
}

.notification-toast.error:hover {
    box-shadow: 0 10px 32px rgba(220, 53, 69, 0.6);
}

.notification-toast.info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(23, 162, 184, 0.4);
}

.notification-toast.info.show {
    box-shadow: 0 8px 28px rgba(23, 162, 184, 0.5);
}

.notification-toast.info:hover {
    box-shadow: 0 10px 32px rgba(23, 162, 184, 0.6);
}

.notification-toast.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.4);
}

.notification-toast.warning.show {
    box-shadow: 0 8px 28px rgba(255, 193, 7, 0.5);
}

.notification-toast.warning:hover {
    box-shadow: 0 10px 32px rgba(255, 193, 7, 0.6);
}

/* 深色模式支援 */
.dark-mode .notification-toast {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.dark-mode .notification-toast.show {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.dark-mode .notification-toast:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
}

/* 響應式設計 */
@media (max-width: 768px) {
    
    .notification-toast {
        top: 15px;
        left: 15px;
        right: 15px;
        max-width: none;
        transform: translateY(100px);
    }
    
    .notification-toast.show {
        transform: translateY(0);
    }
    
    .notification-toast:hover {
        transform: translateY(-3px);
    }
}

/* 動畫效果 */
@keyframes notificationSlideIn {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

/* 載入動畫 */
@keyframes notificationPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


/* 內容溢出處理 */
.load-more-success-toast,
.load-more-error-toast,
.notification-toast {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* 圖標動畫 */
.load-more-success-toast i,
.load-more-error-toast i {
    animation: notificationPulse 2s ease-in-out infinite;
}
