/* Blog Booster - Wheel of Fortune */
/* Alle Klassen unter .bb-wf scoped, um Theme-Konflikte zu vermeiden. */

.bb-wf {
    position: fixed;
    inset: 0;
    /* Promo-Layer (1035) — UNTER Modal-Backdrop (1040) und Cart-Modal (1075).
       Single Source of Truth: nova_premium_tools/.../sidecart.css */
    z-index: var(--z-promo, 1035);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.bb-wf[hidden] { display: none; }

.bb-wf__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
}

.bb-wf__box {
    position: relative;
    background: #fff;
    color: #222;
    padding: 28px 24px 24px;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    text-align: center;
}

.bb-wf__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
}
.bb-wf__close:hover { color: #222; }

.bb-wf__title {
    font-size: 22px;
    margin: 0 0 6px;
    color: var(--bb-wf-primary, #222);
}

.bb-wf__subtitle {
    font-size: 14px;
    margin: 0 0 16px;
    color: #666;
}

.bb-wf__wheel-wrap {
    position: relative;
    width: 320px;
    max-width: 100%;
    margin: 0 auto 20px;
    aspect-ratio: 1;
}

.bb-wf__wheel {
    width: 100%;
    height: 100%;
    transition: transform 5s cubic-bezier(0.18, 0.85, 0.25, 1);
    transform-origin: 50% 50%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}

.bb-wf__pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid var(--bb-wf-primary, #222);
    z-index: 2;
}

.bb-wf__wheel-text {
    font-size: 13px;
    font-weight: 600;
    fill: #fff;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.bb-wf__btn {
    background: var(--bb-wf-primary, #222);
    color: #fff;
    border: 0;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.1s;
}
.bb-wf__btn:hover { opacity: 0.9; }
.bb-wf__btn:active { transform: translateY(1px); }
.bb-wf__btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.bb-wf__result {
    margin-top: 18px;
    padding: 16px;
    background: #f7f7f7;
    border-radius: 10px;
}

.bb-wf__result-headline {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
}

.bb-wf__code-wrap {
    display: flex;
    align-items: stretch;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.bb-wf__code {
    background: #fff;
    border: 2px dashed var(--bb-wf-primary, #222);
    padding: 8px 14px;
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    border-radius: 6px;
}

.bb-wf__copy {
    background: var(--bb-wf-primary, #222);
    color: #fff;
    border: 0;
    padding: 0 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.bb-wf__copy:hover { opacity: 0.9; }

.bb-wf__valid {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0;
}

.bb-wf__terms {
    font-size: 11px;
    color: #999;
    margin: 14px 0 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .bb-wf__box { padding: 22px 16px 18px; }
    .bb-wf__wheel-wrap { width: 260px; }
    .bb-wf__wheel-text { font-size: 11px; }
}
