/**
 * Fake Notifications Styles
 * Responsive toast notification system styles
 * 
 * @author BMathers
 * @date 16.01.2025
 */

/* Container */
.fake-notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
}

/* Ana bildirim kutusu */
.fake-notification {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    width: 320px;
    max-width: calc(100vw - 40px);
    margin-bottom: 10px;
    cursor: pointer;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

/* Gösterildiğinde animasyon */
.fake-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Gizlenirken animasyon */
.fake-notification.hide {
    transform: translateX(-100%);
    opacity: 0;
}

/* Hover efekti */
.fake-notification:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* İçerik wrapper */
.fake-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    position: relative;
}

/* Sol taraftaki ikon */
.fake-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFAA5B 0%, #ff8a30 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 170, 91, 0.3);
}

/* Ana içerik alanı */
.fake-notification-body {
    flex: 1;
    min-width: 0;
}

/* Başlık (kullanıcı adı + aksiyon) */
.fake-notification-header {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.fake-notification-header .user-name {
    font-weight: 600;
    color: #2c3e50;
}

.fake-notification-header .action-text {
    color: #7f8c8d;
    margin-left: 4px;
}

/* Paket ismi */
.fake-notification-package {
    font-weight: 500;
    color: #34495e;
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Platform ve kategori */
.fake-notification-platform {
    font-size: 11px;
    color: #95a5a6;
    margin-bottom: 4px;
}

/* Zaman bilgisi */
.fake-notification-time {
    font-size: 10px;
    color: #bdc3c7;
    font-style: italic;
}

/* Kapatma butonu */
.fake-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #7f8c8d;
    opacity: 0;
    transition: all 0.2s ease;
}

.fake-notification:hover .fake-notification-close {
    opacity: 1;
}

.fake-notification-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .fake-notification-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .fake-notification {
        width: calc(100vw - 20px);
        max-width: none;
    }
    
    .fake-notification-content {
        padding: 12px;
        gap: 10px;
    }
    
    .fake-notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fake-notification-container {
        left: 5px;
        right: 5px;
        bottom: 5px;
    }
    
    .fake-notification {
        width: calc(100vw - 10px);
    }
    
    .fake-notification-content {
        padding: 10px;
        gap: 8px;
    }
    
    .fake-notification-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .fake-notification-header {
        font-size: 13px;
    }
    
    .fake-notification-package {
        font-size: 12px;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .fake-notification {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .fake-notification-header .user-name {
        color: #ecf0f1;
    }
    
    .fake-notification-header .action-text {
        color: #bdc3c7;
    }
    
    .fake-notification-package {
        color: #ecf0f1;
    }
    
    .fake-notification-platform {
        color: #95a5a6;
    }
    
    .fake-notification-time {
        color: #7f8c8d;
    }
    
    .fake-notification-close {
        background: rgba(255, 255, 255, 0.1);
        color: #bdc3c7;
    }
}

/* Animasyon efektleri */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Pulse animasyonu ikon için */
.fake-notification-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 170, 91, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 170, 91, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 170, 91, 0.3);
    }
}