/**
 * Floating Notification Bell Button
 * Mobile responsive push notification subscription
 */

/* Floating Bell Button */
.notification-bell-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color, #ed174f) 0%, #c91344 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    animation: bellPulse 2s infinite;
}

.notification-bell-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(237, 23, 79, 0.6);
}

.notification-bell-btn i {
    font-size: 24px;
    color: #ffffff;
    animation: bellRing 2s infinite;
}

.notification-bell-btn.subscribed {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    animation: none;
}

.notification-bell-btn.subscribed i {
    animation: none;
}

.notification-bell-btn .bell-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ffc107;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: badgePulse 1.5s infinite;
}

.notification-bell-btn.subscribed .bell-badge {
    display: none;
}

/* Animations */
@keyframes bellPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(237, 23, 79, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(237, 23, 79, 0.6);
    }
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Notification Popup Modal */
.notification-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.notification-popup-overlay.active {
    display: flex;
}

.notification-popup {
    background: #ffffff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

.notification-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.notification-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color, #ed174f) 0%, #c91344 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.notification-popup-icon i {
    font-size: 40px;
    color: #ffffff;
}

.notification-popup h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.notification-popup p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px 0;
    text-align: center;
}

.notification-popup-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.notification-popup-benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.notification-popup-benefit:last-child {
    margin-bottom: 0;
}

.notification-popup-benefit i {
    font-size: 20px;
    color: var(--primary-color, #ed174f);
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-popup-benefit span {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.notification-popup-actions {
    display: flex;
    gap: 10px;
}

.notification-popup-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-popup-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #ed174f) 0%, #c91344 100%);
    color: #ffffff;
}

.notification-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.4);
}

.notification-popup-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.notification-popup-btn-secondary:hover {
    background: #e9ecef;
}

.notification-popup-btn i {
    font-size: 18px;
}

/* Success State */
.notification-popup.success .notification-popup-icon {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
}

.notification-popup.success .notification-popup-icon i {
    animation: successPop 0.5s ease;
}

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

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

@keyframes successPop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .notification-bell-btn {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 15px;
    }
    
    .notification-bell-btn i {
        font-size: 22px;
    }
    
    .notification-popup {
        padding: 25px 20px;
        max-width: 90%;
    }
    
    .notification-popup-icon {
        width: 70px;
        height: 70px;
    }
    
    .notification-popup-icon i {
        font-size: 35px;
    }
    
    .notification-popup h3 {
        font-size: 20px;
    }
    
    .notification-popup p {
        font-size: 14px;
    }
    
    .notification-popup-actions {
        flex-direction: column;
    }
    
    .notification-popup-btn {
        width: 100%;
    }
}

/* Hide on very small screens if needed */
@media (max-width: 360px) {
    .notification-bell-btn {
        width: 45px;
        height: 45px;
    }
    
    .notification-bell-btn i {
        font-size: 20px;
    }
}

/* Loading State */
.notification-popup-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.notification-popup-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
