/* GoBet Popup Ads - Frontend Styles v1.2.0 */

.gobet-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gobet-popup-overlay.gobet-popup--visible {
    opacity: 1;
    visibility: visible;
}

/* Wrapper holds close button + popup card + RG message */
.gobet-popup-wrapper {
    position: relative;
    max-width: 420px;
    width: 100%;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
}
.gobet-popup--visible .gobet-popup-wrapper {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button - outside the popup, top right */
.gobet-popup__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}
.gobet-popup__close:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Main popup card - clickable, no hover effect */
.gobet-popup {
    background: #000;
    border-radius: 16px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* Accent bar */
.gobet-popup__accent-bar {
    height: 4px;
}

/* Badge */
.gobet-popup__badge-wrap {
    padding: 20px 25px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gobet-popup__badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-block;
}
.gobet-popup__badge--green {
    background: rgba(0,254,115,0.15);
    color: #00FE73;
}
.gobet-popup__badge--gold {
    background: rgba(255,184,34,0.2);
    color: #FFB822;
}
.gobet-popup__badge--red {
    background: rgba(253,25,91,0.2);
    color: #FD195B;
}

/* Logo */
.gobet-popup__logo {
    padding: 20px 25px 10px;
    text-align: center;
}
.gobet-popup__logo img {
    max-height: 50px;
    width: auto;
}

/* Heading */
.gobet-popup__heading {
    padding: 0 25px;
    text-align: center;
}
.gobet-popup__heading h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
    border: none;
    background: none;
}
.gobet-popup__heading h2::before,
.gobet-popup__heading h2::after {
    display: none;
    content: none;
}

/* Subheading */
.gobet-popup__subheading {
    padding: 8px 25px 0;
    text-align: center;
}
.gobet-popup__subheading p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0;
}

/* Promo code */
.gobet-popup__code-wrap {
    padding: 18px 25px 0;
    text-align: center;
}
.gobet-popup__code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px 20px;
}
.gobet-popup__code-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.gobet-popup__code-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #FFB822;
    letter-spacing: 2px;
}

/* CTA button - visual only, click handled by card */
.gobet-popup__cta {
    padding: 20px 25px 0;
    text-align: center;
}
.gobet-popup__cta span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: -0.3px;
}

/* Disclaimer */
.gobet-popup__disclaimer {
    padding: 18px 25px 22px;
    text-align: center;
}
.gobet-popup__disclaimer p {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
    margin: 0;
}

/* Responsible gambling message */
.gobet-popup__rg {
    background: #fff;
    border-radius: 0 0 16px 16px;
    margin-top: -16px;
    padding: 30px 25px 22px;
    text-align: center;
    cursor: default;
}
.gobet-popup__rg-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #000;
    line-height: 1.3;
    margin: 0 0 5px;
}
.gobet-popup__rg-sub {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .gobet-popup-wrapper {
        max-width: 340px;
    }
    .gobet-popup__heading h2 {
        font-size: 20px;
    }
    .gobet-popup__code-value {
        font-size: 17px;
    }
    .gobet-popup__close {
        top: -40px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .gobet-popup__badge-wrap,
    .gobet-popup__logo,
    .gobet-popup__heading,
    .gobet-popup__subheading,
    .gobet-popup__code-wrap,
    .gobet-popup__cta {
        padding-left: 18px;
        padding-right: 18px;
    }
    .gobet-popup__disclaimer {
        padding: 16px 18px 20px;
    }
    .gobet-popup__rg {
        padding: 26px 18px 18px;
    }
}

/* Hide on mobile when disabled */
.gobet-popup-overlay.gobet-popup--no-mobile {
    display: none;
}
@media (min-width: 769px) {
    .gobet-popup-overlay.gobet-popup--no-mobile {
        display: flex;
    }
}
