/* BGD99 Popup and Floating Button Styles */

/* Floating Button */
.floating-bonus-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FDE04E 0%, #ffca27 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(253, 224, 78, 0.4);
    animation: pulse 2s infinite;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.floating-bonus-button:hover {
    transform: scale(1.1);
    animation-play-state: paused;
    box-shadow: 0 6px 25px rgba(253, 224, 78, 0.6);
}

.floating-bonus-button svg {
    width: 32px;
    height: 32px;
    fill: #155155;
    transition: fill 0.3s ease;
}

.floating-bonus-button:hover svg {
    fill: #1B1B1B;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(253, 224, 78, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(253, 224, 78, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(253, 224, 78, 0);
    }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content */
.popup-content {
    background: linear-gradient(135deg, #1B1B1B 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 40px 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    border: 2px solid #FDE04E;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ccc;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-button:hover {
    background: rgba(253, 224, 78, 0.2);
    color: #FDE04E;
    transform: scale(1.1);
}

/* Popup Icon */
.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid #FDE04E;
    padding: 10px;
    background: rgba(253, 224, 78, 0.1);
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        box-shadow: 0 0 10px rgba(253, 224, 78, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(253, 224, 78, 0.6);
    }
}

/* Popup Title */
.popup-title {
    color: #FDE04E;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(253, 224, 78, 0.5);
    background: linear-gradient(135deg, #FDE04E 0%, #ffca27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Popup Text */
.popup-text {
    color: #fff4e1;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-text strong {
    color: #FDE04E;
    font-weight: 700;
}

/* CTA Button */
.popup-cta-button {
    display: block;
    width: 100%;
    padding: 18px 25px;
    background: linear-gradient(135deg, #FDE04E 0%, #ffca27 100%);
    color: #155155;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 224, 78, 0.3);
    position: relative;
    overflow: hidden;
}

.popup-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.popup-cta-button:hover::before {
    left: 100%;
}

.popup-cta-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #FDE04E 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 224, 78, 0.5);
}

.popup-cta-button:active {
    transform: translateY(0);
}

/* Bonus Features */
.popup-bonus-features {
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.popup-bonus-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff4e1;
    font-size: 14px;
}

.popup-bonus-feature i {
    color: #FDE04E;
    font-size: 24px;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-bonus-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-bonus-button svg {
        width: 28px;
        height: 28px;
    }
    
    .popup-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: 350px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-text {
        font-size: 15px;
    }
    
    .popup-cta-button {
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .floating-bonus-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-bonus-button svg {
        width: 24px;
        height: 24px;
    }
    
    .popup-content {
        padding: 25px 15px;
        margin: 15px;
        max-width: 320px;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .popup-text {
        font-size: 14px;
    }
    
    .popup-cta-button {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .popup-icon {
        width: 70px;
        height: 70px;
    }
}

/* Accessibility */
.floating-bonus-button:focus {
    outline: 3px solid #FDE04E;
    outline-offset: 2px;
}

.popup-close-button:focus {
    outline: 2px solid #FDE04E;
    outline-offset: 2px;
}

.popup-cta-button:focus {
    outline: 2px solid #155155;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .floating-bonus-button {
        border: 4px solid #fff;
    }
    
    .popup-content {
        border: 3px solid #FDE04E;
    }
    
    .popup-title {
        color: #FDE04E;
        -webkit-text-fill-color: #FDE04E;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-bonus-button {
        animation: none;
    }
    
    .popup-icon {
        animation: none;
    }
    
    .popup-cta-button::before {
        display: none;
    }
}
