/**
 * Estilos para Sistema de Notificaciones Modernas - Córdoba TURF
 * Optimizado para dispositivos móviles
 */

/* Contenedor principal de notificaciones */
.turf-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

/* Notificación base */
.turf-notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    font-family: 'Barlow Condensed', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Animaciones */
.turf-notification-show {
    transform: translateX(0);
    opacity: 1;
}

.turf-notification-hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Contenido de la notificación */
.turf-notification-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Icono */
.turf-notification-content i:first-child {
    font-size: 20px;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mensaje */
.turf-notification-message {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Botón cerrar */
.turf-notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.turf-notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Tipos de notificación */

/* Error - Rojo intenso */
.turf-notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #fff;
    animation: pulseError 2s infinite;
}

.turf-notification-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5), #fff);
    animation: shimmer 2s infinite;
}

/* Warning - Naranja */
.turf-notification-warning {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
    border-color: #fff;
}

/* Success - Verde */
.turf-notification-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border-color: #B4F22E;
}

/* Info - Azul */
.turf-notification-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-color: #fff;
}

/* Animaciones */
@keyframes pulseError {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 4px 16px rgba(220, 53, 69, 0.4);
    }
    50% { 
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            0 6px 24px rgba(220, 53, 69, 0.6);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Estilos para campos con error */
.turf-input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .turf-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .turf-notification-content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .turf-notification-message {
        font-size: 15px;
    }
    
    .turf-notification-content i:first-child {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .turf-notifications-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .turf-notification-content {
        padding: 12px 14px;
    }
    
    .turf-notification-message {
        font-size: 14px;
    }
}

/* Mejora para pantallas muy pequeñas */
@media (max-width: 320px) {
    .turf-notification-close {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}
