/* ========================================
   Sticky Footer Styles
   ======================================== */

/* Animations */
@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Main footer container */
.bet-sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #180157 0%, #290297 100%) !important;
    box-shadow: 0 -4px 24px rgba(24, 1, 87, 0.5) !important;
    z-index: 999999 !important;
    transform: translateY(0) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-top: 3px solid #f5813d !important;
    padding: 20px !important;
    font-family: var(--font-main) !important;
}

.bet-sticky-footer.show-animated {
    animation: slideUp 0.6s ease-out !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.bet-sticky-footer.hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Content wrapper */
.bet-sticky-footer-content-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    position: relative !important;
}

@media (min-width: 993px) {
    .bet-sticky-footer-content-wrapper {
        gap: 40px !important;
    }
    .bet-sticky-footer-button {
        margin-right: 15px !important;
    }
}

/* Logo with pulse animation */
.bet-sticky-footer-logo {
    flex-shrink: 0 !important;
    animation: pulse 2s ease-in-out infinite !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 15px !important;
    margin-right: 10px !important;
}

.bet-sticky-footer-logo img {
    max-height: 40px !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Text content */
.bet-sticky-footer-text-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.bet-sticky-footer-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.bet-sticky-footer-title strong {
    background: linear-gradient(90deg, #f5813d, #ffcc00, #f5813d, #ff6b35) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradient-shift 3s ease infinite !important;
}

.bet-sticky-footer-players {
    font-size: 14px !important;
    color: #e4e4fd !important;
}

.bet-sticky-footer-players::before {
    content: "●" !important;
    color: #4ade80 !important;
    margin-right: 6px !important;
    animation: pulse-dot 1.5s ease-in-out infinite !important;
    display: inline-block !important;
}

.bet-sticky-footer-players .player-count {
    color: #4ade80 !important;
    font-weight: 700 !important;
}

.bet-sticky-footer-players strong {
    color: #f5813d !important;
    font-weight: 700 !important;
}

/* CTA Button */
.bet-sticky-footer-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #f5813d 0%, #d44500 100%) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(245, 129, 61, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: none !important;
    cursor: pointer !important;
}

.bet-sticky-footer-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 129, 61, 0.6) !important;
    background: linear-gradient(135deg, #ff8f4d 0%, #e55500 100%) !important;
    color: #fff !important;
}

.bet-sticky-footer-button .arrow-icon {
    font-size: 18px !important;
    color: #fff !important;
    display: inline-block !important;
    margin-left: 3px !important;
    font-weight: normal !important;
    animation: arrowMove 1.5s ease-in-out infinite !important;
}

/* Close button */
.bet-sticky-footer-close {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    z-index: 1000000 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    pointer-events: auto !important;
    user-select: none !important;
}

.bet-sticky-footer-close:hover {
    background: rgba(245, 129, 61, 0.3) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bet-sticky-footer {
        padding: 12px 15px !important;
    }

    .bet-sticky-footer-content-wrapper {
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: flex-start !important;
        padding-left: 5px !important;
    }

    .bet-sticky-footer-logo {
        order: 1 !important;
        margin-right: 20px !important;
    }

    .bet-sticky-footer-logo img {
        max-height: 30px !important;
    }

    .bet-sticky-footer-text-container {
        order: 2 !important;
        flex: 0 1 auto !important;
        margin-left: -11px !important;
    }

    .bet-sticky-footer-title {
        font-size: 16px !important;
    }

    .bet-sticky-footer-players {
        font-size: 12px !important;
    }

    .bet-sticky-footer-button {
        order: 3 !important;
        flex-basis: 100% !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 20px !important;
        margin-right: 0 !important;
    }

    .bet-sticky-footer-button .arrow-icon {
        font-size: 22px !important;
    }

    .bet-sticky-footer-close {
        order: 4 !important;
        position: absolute !important;
        top: 5px !important;
        right: 2px !important;
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
        z-index: 1000000 !important;
        pointer-events: auto !important;
    }
}
