/* Floating Button and Popup Styles */

/* Floating Button */
.floating-bonus-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(180deg, #FDE33D 0%, #F6A626 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: pulse 2.5s infinite;
    border: 2px solid #FBC201;
    transition: transform 0.2s ease;
}

.floating-bonus-button:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.floating-bonus-button svg {
    width: 55%;
    height: 55%;
    fill: #1A1A1A;
    transition: fill 0.2s ease;
}

.floating-bonus-button:hover svg {
    fill: #FBC201;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 194, 1, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(251, 194, 1, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 194, 1, 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(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content */
.popup-content {
    background: #191919;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 2px solid #FBC201;
    box-shadow: 0 0 25px rgba(251, 194, 1, 0.4);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s 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: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close-button:hover {
    color: #FBC201;
    background: rgba(251, 194, 1, 0.1);
}

/* Popup Icon */
.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 2px solid #FBC201;
    padding: 5px;
    background: rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

/* Popup Title */
.popup-title {
    color: #FBC201;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(251, 194, 1, 0.5);
}

/* Popup Text */
.popup-text {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-text strong {
    color: #FBC201;
    font-weight: 700;
}

/* CTA Button */
.popup-cta-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #FDE33D 0%, #F6A626 100%);
    color: #1A1A1A;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.popup-cta-button:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
    color: #1A1A1A;
    text-decoration: none;
}

.popup-cta-button:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-bonus-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .popup-content {
        padding: 25px;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .popup-text {
        font-size: 15px;
    }
    
    .popup-cta-button {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .floating-bonus-button {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .popup-content {
        padding: 20px;
        margin: 15px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-text {
        font-size: 14px;
    }
    
    .popup-cta-button {
        font-size: 15px;
        padding: 10px;
    }
    
    .popup-icon {
        width: 60px;
        height: 60px;
    }
}

/* Animation for floating button entrance */
.floating-bonus-button {
    animation: pulse 2.5s infinite, slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Additional hover effects */
.floating-bonus-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FBC201, #FDE33D, #F6A626, #FBC201);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-bonus-button:hover::before {
    opacity: 1;
}

/* Popup entrance animation */
.popup-overlay.active .popup-content {
    animation: popupBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupBounce {
    0% {
        transform: scale(0.3) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
