/**
 * Toast Notification Stilleri
 * 
 * Modern bildirim sistemi için CSS
 * 
 * Dosya Yolu: Assets/style/notifications.css
 */

/* ============================================
   NOTIFICATION CONTAINER
   ============================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* ============================================
   NOTIFICATION BASE
   ============================================ */

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    border-left: 4px solid #6c757d;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(400px);
}

/* ============================================
   NOTIFICATION TYPES
   ============================================ */

/* Success */
.notification-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.notification-success .notification-icon {
    color: #28a745;
}

/* Error */
.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.notification-error .notification-icon {
    color: #dc3545;
}

/* Warning */
.notification-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.notification-warning .notification-icon {
    color: #ffc107;
}

/* Info */
.notification-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.notification-info .notification-icon {
    color: #17a2b8;
}

/* Confirm */
.notification-confirm {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
}

.notification-confirm .notification-icon {
    color: #6f42c1;
}

/* ============================================
   NOTIFICATION ELEMENTS
   ============================================ */

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #212529;
}

.notification-close i {
    font-size: 1.2rem;
}

/* ============================================
   NOTIFICATION ACTIONS
   ============================================ */

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.notification-actions .btn {
    font-size: 0.875rem;
    padding: 6px 12px;
}

/* ============================================
   LOADING NOTIFICATION
   ============================================ */

.notification-loading {
    border-left-color: #007bff;
}

.notification-loading .spinner-border {
    color: #007bff;
}

/* ============================================
   PROGRESS BAR (Opsiyonel)
   ============================================ */

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: currentColor;
    transition: width linear;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.notification:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) translateX(0);
}

.notification:hover .notification-close {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification.hide {
        transform: translateY(-100px);
    }

    .notification {
        transform: translateY(-100px);
    }
}

@media (max-width: 480px) {
    .notification {
        padding: 12px;
        font-size: 0.875rem;
    }

    .notification-icon {
        font-size: 1.25rem;
        width: 28px;
        height: 28px;
    }

    .notification-message {
        font-size: 0.875rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Shake animasyonu (hata için) */
.notification-error.shake {
    animation: shake 0.5s;
}

/* ============================================
   DARK MODE SUPPORT (Opsiyonel)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d3748;
        color: #e2e8f0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .notification-message {
        color: #e2e8f0;
    }

    .notification-close {
        color: #a0aec0;
    }

    .notification-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }

    .notification-success {
        background: linear-gradient(135deg, #2d3748 0%, #1a3a2a 100%);
    }

    .notification-error {
        background: linear-gradient(135deg, #2d3748 0%, #3a1a1a 100%);
    }

    .notification-warning {
        background: linear-gradient(135deg, #2d3748 0%, #3a3a1a 100%);
    }

    .notification-info {
        background: linear-gradient(135deg, #2d3748 0%, #1a2a3a 100%);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.notification:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.notification-close:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Reduced motion için */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: none;
    }

    .notification.show {
        animation: none;
    }

    .notification.hide {
        animation: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .notification-container {
        display: none;
    }
}
