﻿/* Bildirim Konteyneri */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

/* Bildirim Kartı */
.notification {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    margin-bottom: 16px;
    padding: 20px;
    padding-bottom: 24px;
    transform: translateX(calc(100% + 24px));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    overflow: hidden;
}

    .notification::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .notification:hover::before {
        opacity: 1;
    }

    .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification.hide {
        transform: translateX(calc(100% + 24px)) scale(0.8);
        opacity: 0;
    }

    /* Bildirim Türleri */
    .notification.success {
        background: linear-gradient(135deg, rgba(236, 253, 245, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    }

    .notification.error {
        background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    }

    .notification.warning {
        background: linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    }

    .notification.info {
        background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    }

/* İçerik Alanı */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* İkon Alanı */
.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

    .notification-icon::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 16px;
        background: inherit;
        opacity: 0.3;
        filter: blur(8px);
        z-index: -1;
        pointer-events: none;
    }

.notification.success .notification-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.notification.info .notification-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Metin Alanı */
.notification-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.notification-message {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Kapatma Butonu */
.notification-close {
    background: rgba(148, 163, 184, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

    .notification-close:hover {
        background: rgba(148, 163, 184, 0.2);
        color: #334155;
        transform: scale(1.05);
    }

    .notification-close:active {
        transform: scale(0.95);
    }

/* İlerleme Çubuğu */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    pointer-events: none;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
    border-radius: 0 0 18px 18px;
    position: relative;
    pointer-events: none;
}

    .notification-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
        pointer-events: none;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.notification.success .notification-progress-bar {
    background: linear-gradient(90deg, #10b981, #059669);
}

.notification.error .notification-progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.notification.warning .notification-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.notification.info .notification-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
}
