/**
 * PUSH NOTIFICATIONS CSS
 * Archivo: assets/css/push.css
 */

/* Banner de solicitud de suscripción */
.push-prompt-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.push-prompt {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.push-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.push-close:hover {
    color: #333;
}

.push-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.push-prompt h3 {
    color: #333;
    font-size: 22px;
    margin: 15px 0 10px;
    font-weight: 600;
}

.push-prompt p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.push-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.push-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.push-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.push-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.push-btn-primary:active {
    transform: translateY(0);
}

.push-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.push-btn-secondary:hover {
    background: #e0e0e0;
}

/* Confirmación de suscripción */
.push-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
}

.push-confirmation.push-confirm-show {
    opacity: 1;
    transform: translateX(0);
}

.push-confirm-content {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .push-prompt {
        padding: 30px 20px;
        max-width: 90%;
    }

    .push-prompt h3 {
        font-size: 18px;
    }

    .push-buttons {
        flex-direction: column;
    }

    .push-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .push-confirmation {
        top: 10px;
        right: 10px;
        left: 10px;
        border-radius: 5px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .push-prompt {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .push-prompt h3 {
        color: #fff;
    }

    .push-prompt p {
        color: #b0b0b0;
    }

    .push-close {
        color: #999;
    }

    .push-close:hover {
        color: #fff;
    }

    .push-btn-secondary {
        background: #3a3a3a;
        color: #e0e0e0;
    }

    .push-btn-secondary:hover {
        background: #4a4a4a;
    }
}

/* Animación de carga */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.push-loading {
    animation: pulse 1.5s ease-in-out infinite;
}
