/**
 * Firebase Push Notifications - Frontend Styles
 */

/* Notification Bell */
.fwpn-notification-bell {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fwpn-notification-bell:hover {
    transform: scale(1.1) rotate(15deg);
}

.fwpn-bell-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.fwpn-notification-bell:hover .fwpn-bell-icon {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.fwpn-bell-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.fwpn-bell-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    border: 3px solid #fff;
    animation: fwpn-pulse 2s infinite;
}

.fwpn-subscribed .fwpn-bell-pulse {
    background: #2ed573;
}

@keyframes fwpn-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.fwpn-bell-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fwpn-notification-bell:hover .fwpn-bell-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.fwpn-bell-tooltip:after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

/* Toast Notifications */
.fwpn-toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    z-index: 999998;
    transform: translateX(450px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #667eea;
}

.fwpn-toast-notification.fwpn-show {
    transform: translateX(0);
}

.fwpn-toast-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fwpn-toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.fwpn-toast-content {
    flex: 1;
    min-width: 0;
}

.fwpn-toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e1e1e;
    margin-bottom: 4px;
}

.fwpn-toast-body {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.fwpn-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fwpn-toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Simple Toast Messages */
.fwpn-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    z-index: 999997;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fwpn-toast.fwpn-show {
    transform: translateX(-50%) translateY(0);
}

.fwpn-toast-success {
    background: linear-gradient(135deg, #2ed573 0%, #27ae60 100%);
}

.fwpn-toast-error {
    background: linear-gradient(135deg, #ff4757 0%, #e74c3c 100%);
}

.fwpn-toast-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.fwpn-toast .fwpn-toast-icon {
    font-size: 18px;
    font-weight: bold;
    width: auto;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .fwpn-notification-bell {
        bottom: 20px;
        right: 20px;
    }
    
    .fwpn-bell-icon {
        width: 50px;
        height: 50px;
    }
    
    .fwpn-bell-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .fwpn-toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .fwpn-toast {
        left: 10px;
        right: 10px;
        transform: translateY(100px);
        max-width: calc(100% - 20px);
    }
    
    .fwpn-toast.fwpn-show {
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .fwpn-notification-bell,
    .fwpn-bell-icon,
    .fwpn-bell-tooltip,
    .fwpn-toast-notification,
    .fwpn-toast {
        transition: none;
        animation: none;
    }
}
