﻿/**
 * ════════════════════════════════════════════════════════════════
 * YIBEN B2B - Bildirim Sistemi CSS
 * ════════════════════════════════════════════════════════════════
 */

/* Container - tüm bildirimleri tutar */
#yiben-notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
}

.yiben-notification {
    /* position: fixed; KALDIRILDI - container halleder */
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.yiben-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.yiben-notification-hiding {
    opacity: 0;
    transform: translateX(400px);
}

/* Icon Container */
.yiben-notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.yiben-icon-success {
    background: #dcfce7;
    color: #16a34a;
}

.yiben-icon-error {
    background: #fee2e2;
    color: #dc2626;
}

.yiben-icon-warning {
    background: #fef3c7;
    color: #f59e0b;
}

.yiben-icon-info {
    background: #dbeafe;
    color: #3b82f6;
}

/* Content */
.yiben-notification-body {
    flex: 1;
    min-width: 0;
}

.yiben-notification-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.yiben-notification-message {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Close Button */
.yiben-notification-close {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

    .yiben-notification-close:hover {
        background: #f1f5f9;
        color: #475569;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    #yiben-notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .yiben-notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .yiben-notification-show {
        transform: translateY(0);
    }

    .yiben-notification-hiding {
        transform: translateY(-100px);
    }
}
