/* Estilos para notificaciones push de eventos próximos - Tema Dark */

.push-notification {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-100%) !important;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 99999 !important;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-left: 4px solid #3b82f6;
    color: #f9fafb;
    pointer-events: auto;
}

.push-notification.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.push-notification.hide {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-100%) !important;
}

.push-notification-content {
    padding: 0;
    overflow: hidden;
}

/* Header */
.push-notification-header {
    display: flex;
    align-items: center;
    padding: 16px 20px 12px;
    background: #2c2c2c;
    color: white;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.push-notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    color: #f9fafb;
}

.push-notification-title {
    font-weight: 600;
    font-size: 16px;
    flex: 1;
}

.push-notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #9ca3af;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.push-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #d1d5db;
}

/* Body */
.push-notification-body {
    padding: 16px 20px;
}

.push-notification-event-thumbnail {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.1);
}

.push-notification-event-thumbnail img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.push-notification-event-title {
    font-weight: 700;
    font-size: 18px;
    color: #f9fafb;
    margin-bottom: 8px;
    line-height: 1.3;
}

.push-notification-event-date {
    display: flex;
    align-items: center;
    color: #d1d5db;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.push-notification-event-location {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
}

.push-notification-event-description {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Footer */
.push-notification-footer {
    padding: 12px 20px 16px;
    display: flex;
    gap: 8px;
    background: #2c2c2c;
    border-top: 1px solid #374151;
    border-radius: 0 0 8px 8px;
}

.push-notification-footer .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.push-notification-footer .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.45);
    color: #f9fafb;
    background: rgba(148, 163, 184, 0.08);
}

.push-notification-footer .btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.55);
    color: #f9fafb;
}

.push-notification-footer .btn-secondary {
    background: rgba(148, 163, 184, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #f9fafb;
}

.push-notification-footer .btn-secondary:hover {
    background: rgba(148, 163, 184, 0.48);
    border-color: rgba(148, 163, 184, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.25);
}

/* Animaciones */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%);
    }
}

/* Efectos hover */
.push-notification:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.push-notification.show:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .push-notification {
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-100%) !important;
        width: 95%;
        max-width: none;
    }
    
    .push-notification.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .push-notification.hide {
        transform: translateX(-50%) translateY(-100%) !important;
    }
    
    .push-notification-header {
        padding: 12px 16px 8px;
    }
    
    .push-notification-body {
        padding: 12px 16px;
    }
    
    .push-notification-footer {
        padding: 8px 16px 12px;
        flex-direction: column;
    }
    
    .push-notification-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .push-notification {
        top: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-100%) !important;
        width: 98%;
        border-radius: 8px;
    }
    
    .push-notification.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .push-notification.hide {
        transform: translateX(-50%) translateY(-100%) !important;
    }
    
    .push-notification-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 8px;
    }
    
    .push-notification-title {
        font-size: 14px;
    }
    
    .push-notification-event-title {
        font-size: 16px;
    }
}

/* Estados especiales */
.push-notification[data-priority="high"] {
    border-left-color: #ef4444;
}

.push-notification[data-priority="high"] .push-notification-header {
    background: #2c2c2c;
}

.push-notification[data-priority="high"] .push-notification-icon {
    background: #ef4444;
}

.push-notification[data-priority="medium"] {
    border-left-color: #f59e0b;
}

.push-notification[data-priority="medium"] .push-notification-header {
    background: #2c2c2c;
}

.push-notification[data-priority="medium"] .push-notification-icon {
    background: #f59e0b;
}

/* Accesibilidad */
.push-notification:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.push-notification-close:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Animación de pulso para eventos urgentes */
.push-notification[data-urgent="true"] {
    animation: pulseUrgent 2s infinite;
}

@keyframes pulseUrgent {
    0%, 100% {
        border-left-color: #3b82f6;
    }
    50% {
        border-left-color: #ef4444;
    }
}

/* Stack de múltiples notificaciones */
.push-notification:nth-child(2) {
    top: 120px;
    transform: translateX(-50%) translateY(-100%);
}

.push-notification:nth-child(2).show {
    transform: translateX(-50%) translateY(0);
}

.push-notification:nth-child(3) {
    top: 220px;
    transform: translateX(-50%) translateY(-100%);
}

.push-notification:nth-child(3).show {
    transform: translateX(-50%) translateY(0);
}

.push-notification:nth-child(4) {
    top: 320px;
    transform: translateX(-50%) translateY(-100%);
}

.push-notification:nth-child(4).show {
    transform: translateX(-50%) translateY(0);
}

/* Reducir opacidad de notificaciones posteriores */
.push-notification:nth-child(n+2) {
    opacity: 0.95;
}

.push-notification:nth-child(n+3) {
    opacity: 0.9;
}

.push-notification:nth-child(n+4) {
    opacity: 0.85;
}
