/*
 * Sticky CTA — classic dark bar layout (logo, name, rating stars, bonus, red
 * button). Reveal behaviour comes from custom.js: the bar starts with the
 * `hidden` attribute, custom.js removes it after 200px of scroll and adds
 * `.is-visible` to slide it in; the close button dismisses it for the session.
 */

/* Sticky CTA */
#sticky-cta-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    right: 0;
    background: #2C2C2C;
    border-top: 2px solid #d63e2d;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transition: bottom 0.4s ease;
    color: #fff;
}
/* custom.js keeps the bar hidden until it should slide in. */
#sticky-cta-bar[hidden] {
    display: none;
}
#sticky-cta-bar .cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}
#sticky-cta-bar.is-visible { bottom: 0; }
#sticky-cta-bar .casino-logo { max-height: 80px; margin-right: 15px; }
.name-rate > span { display: flex; }
#sticky-cta-bar .cta-button {
    background: #d63e2d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}
#sticky-cta-bar .cta-button:hover { opacity: 0.8; }
.star {
    color: #ccc;
    font-size: 18px;
    position: relative;
    display: inline-block;
    margin-right: 2px;
    width: 18px;
    overflow: hidden;
}
.star.filled { color: #f5a623; }
.star.half::before {
    content: "★";
    color: #f5a623;
    position: absolute;
    width: 50%;
    overflow: hidden;
    left: 0;
    top: 0;
}

/* Close button (dismisses the bar for the rest of the browser session). */
#sticky-cta-bar .cta-close-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    padding: 2px 6px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}
#sticky-cta-bar .cta-close-btn:hover { color: #fff; }

@media (max-width: 768px) {
    #sticky-cta-bar .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        float: none !important;
    }
    #sticky-cta-bar .cta-content {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        row-gap: 0;
    }
    #sticky-cta-bar .casino-logo {
        max-width: 130px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .casino-bonus {
        flex: 1;
        text-align: left;
        width: auto;
        font-size: 15px;
    }
    #sticky-cta-bar .cta-button {
        flex: 1 1 100%;
        text-align: center;
        margin-top: 5px;
        padding: 12px 20px;
    }
    #sticky-cta-bar {
        padding: 10px 15px 15px;
        bottom: -200px;
    }
    .name-rate {
        display: none;
    }
    .cta-close-btn {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sticky-cta-bar { transition: none; }
}

/* Keep the bar from covering the footer: a gap under the footer's last block. */
body.sticky-bar-active footer.wp-block-template-part > :last-child,
body.sticky-bar-active .wp-site-blocks > footer > :last-child,
body.sticky-bar-active .wp-block-template-part--footer > :last-child {
    margin-bottom: calc(var(--sticky-bar-height, 120px) + 1rem);
}

@media screen and (min-width: 1280px) {
    header .wp-block-navigation .wp-block-navigation__submenu-container {
        margin-top:0 !important;
    }
}
