/**
 * Sistema de Notificaciones para Córdoba TURF
 * Estilos mínimos para notificaciones sin afectar el diseño existente
 */

/* Contenedor principal de notificaciones */
.turf-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

/* Notificación base */
.turf-notification {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-family: 'Inter', 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: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Icono */
.turf-notification-content i:first-child {
    font-size: 16px;
    flex-shrink: 0;
}

/* Mensaje */
.turf-notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* Botón cerrar */
.turf-notification-close {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    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 */
.turf-notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #fff;
}

/* 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: #fff;
}

/* Info - Azul */
.turf-notification-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-color: #fff;
}

/* Estilos para campos con error */
.turf-input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .turf-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .turf-notification-content {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .turf-notification-message {
        font-size: 13px;
    }
}
