/**
 * Notification Styles
 *
 * @package Beit_Knesset_Manager
 */

/* Notification Container */
.bkm-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.bkm-notification.show {
    right: 20px;
}

/* Types */
.bkm-notification-success {
    border-right: 4px solid #28a745;
}

.bkm-notification-success:before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.bkm-notification-error {
    border-right: 4px solid #dc3545;
}

.bkm-notification-error:before {
    content: '×';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.4em;
    flex-shrink: 0;
}

.bkm-notification-info {
    border-right: 4px solid #17a2b8;
}

.bkm-notification-info:before {
    content: 'i';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #17a2b8;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.bkm-notification-warning {
    border-right: 4px solid #ffc107;
}

.bkm-notification-warning:before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffc107;
    color: #333;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* Modal Styles */
.bkm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.bkm-modal {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.bkm-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.bkm-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.bkm-modal-content {
    padding: 40px;
}

.bkm-modal-loading {
    text-align: center;
    padding: 60px 20px;
}

.bkm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 0;
    height: 0;
    pointer-events: none;
    animation: ripple-animation 0.6s ease-out;
}

/* Body Lock */
.bkm-modal-open {
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scaleIn {
    to { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple-animation {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.bounce {
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bkm-notification {
        min-width: 280px;
        max-width: calc(100% - 40px);
    }

    .bkm-modal {
        width: 95%;
        max-height: 95vh;
    }

    .bkm-modal-content {
        padding: 30px 20px;
    }
}
