/**
 * Wedding Manager - Notifications CSS
 * Style iOS moderne pour les notifications
 * 
 * @version 2.6.0
 */

/* Container des notifications */
.wm-notifications {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

/* Positions possibles */
.wm-notifications-top-right {
    top: 24px;
    right: 24px;
}

.wm-notifications-top-left {
    top: 24px;
    left: 24px;
}

.wm-notifications-bottom-right {
    bottom: 24px;
    right: 24px;
}

.wm-notifications-bottom-left {
    bottom: 24px;
    left: 24px;
}

.wm-notifications-top-center {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.wm-notifications-bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

/* Notification individuelle */
.wm-notification {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    min-width: 300px;
    max-width: 400px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.wm-notification:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Icône */
.wm-notification-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

/* Contenu */
.wm-notification-content {
    flex: 1;
    min-width: 0;
}

.wm-notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #1d1d1f;
    word-wrap: break-word;
}

/* Bouton de fermeture */
.wm-notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
}

.wm-notification-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
}

.wm-notification-close:active {
    transform: scale(0.9);
}

/* Types de notifications */

/* Success */
.wm-notification-success {
    border-left: 4px solid #34c759;
}

.wm-notification-success .wm-notification-icon {
    background: #34c759;
}

/* Error */
.wm-notification-error {
    border-left: 4px solid #ff3b30;
}

.wm-notification-error .wm-notification-icon {
    background: #ff3b30;
}

/* Warning */
.wm-notification-warning {
    border-left: 4px solid #ff9500;
}

.wm-notification-warning .wm-notification-icon {
    background: #ff9500;
}

/* Info */
.wm-notification-info {
    border-left: 4px solid #007aff;
}

.wm-notification-info .wm-notification-icon {
    background: #007aff;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wm-notification {
        background: rgba(44, 44, 46, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .wm-notification:hover {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .wm-notification-message {
        color: #f5f5f7;
    }
    
    .wm-notification-close {
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
    }
    
    .wm-notification-close:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .wm-notifications {
        left: 12px !important;
        right: 12px !important;
        max-width: none;
        transform: none !important;
    }
    
    .wm-notification {
        min-width: auto;
        max-width: none;
    }
}

/* Animations */
@keyframes wm-notification-enter {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wm-notification-exit {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
