/**
 * PUSH NOTIFICATIONS STYLES
 * Premium notification UI
 */

/* Notification Bell Button */
.notification-bell-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.notification-bell-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.notification-bell-btn i {
    font-size: 1.1rem;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* Push Notification Prompt */
#pushNotificationPrompt {
    position: fixed;
    bottom: -500px;
    right: 2rem;
    z-index: 99998;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pushNotificationPrompt.active {
    bottom: 2rem;
}

.push-prompt-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.push-prompt-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.push-prompt-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: rotate(90deg);
}

.push-prompt-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: bellPulse 2s infinite;
}

@keyframes bellPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.push-prompt-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-align: center;
}

.push-prompt-content p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.push-prompt-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.push-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.push-benefit i {
    color: var(--success-color);
    font-size: 1rem;
}

.push-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-push-allow,
.btn-push-later {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-push-allow {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 25px -5px rgba(118, 75, 162, 0.4);
}

.btn-push-allow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(118, 75, 162, 0.6);
}

.btn-push-later {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-push-later:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Push Toast Notifications */
.push-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 350px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.push-toast.active {
    transform: translateX(0);
    opacity: 1;
}

.push-toast i {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.push-toast.success i {
    color: var(--success-color);
}

.push-toast.error i {
    color: var(--error-color);
}

.push-toast strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.push-toast p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #pushNotificationPrompt {
        right: 1rem;
        left: 1rem;
    }

    .push-prompt-container {
        max-width: 100%;
        padding: 1.5rem;
    }

    .push-prompt-content h3 {
        font-size: 1.25rem;
    }

    .push-toast {
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .notification-bell-btn i,
    .push-prompt-icon {
        animation: none;
    }

    #pushNotificationPrompt,
    .push-toast {
        transition: none;
    }
}