/**
 * Sistema Unificado de Notificaciones - Estilos CSS
 * Compatible con toda la aplicación del gimnasio
 */

/* Contenedor principal de la notificación */
#notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    font-family: var(--font-sans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

/* Overlay con blur */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Container de la notificación */
.notification-container {
    background: var(--color-surface, #ffffff);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    padding: 40px var(--space-xl, 32px) var(--space-xl, 32px) var(--space-xl, 32px);
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    border: 1px solid var(--color-border, rgba(0,0,0,0.06));
}

/* Icono de la notificación */
.notification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg, 24px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification-icon i {
    font-size: 36px;
    color: white;
}

/* Título de la notificación */
.notification-title {
    color: var(--color-text, #2b303a);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Mensaje de la notificación */
.notification-message {
    color: var(--color-text-muted, #495057);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.notification-container:focus {
    outline: none;
}

/* Animaciones */
@keyframes notificationFadeIn {
    0% { 
        opacity: 0; 
    }
    100% { 
        opacity: 1; 
    }
}

@keyframes notificationSlideInUp {
    0% { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes notificationScaleInPulse {
    0% { 
        transform: scale(0); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes notificationFadeInUp {
    0% { 
        transform: translateY(20px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes notificationFadeOut {
    0% { 
        opacity: 1; 
    }
    100% { 
        opacity: 0; 
    }
}

/* Aplicar animaciones */
.notification-overlay {
    animation: notificationFadeIn 0.3s ease;
}

.notification-container {
    animation: notificationSlideInUp 0.6s ease;
}

.notification-icon {
    animation: notificationScaleInPulse 0.8s ease;
}

.notification-title {
    animation: notificationFadeInUp 0.8s ease 0.2s both;
}

.notification-message {
    animation: notificationFadeInUp 0.8s ease 0.4s both;
}


/* Variantes de colores para diferentes tipos */
.notification-success .notification-icon {
    background: linear-gradient(135deg, var(--color-success, #28a745), rgba(32, 201, 151, 0.95));
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, var(--color-danger, #dc2626), rgba(231, 76, 60, 0.95));
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, var(--color-warning, #ffc107), rgba(243, 156, 18, 0.95));
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, var(--color-info, #2563eb), rgba(32, 201, 151, 0.95));
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        margin: 20px;
        padding: 30px 20px 20px 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .notification-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .notification-icon i {
        font-size: 28px;
    }
    
    .notification-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .notification-message {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Reducir animaciones para usuarios con preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .notification-overlay,
    .notification-container,
    .notification-icon,
    .notification-title,
    .notification-message {
        animation: none;
    }
}
