/* Short-article blur gate + download button. */
.bc-blur-locked {
    position: relative;
    max-height: 320px;
    overflow: hidden;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 90%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 90%);
}

/* Self-heal: JS confirmed the viewer is a logged-in member, so reveal the text
   the server blurred (e.g. a page cache served the guest variant). */
.bc-blur-locked.bc-gate-revealed {
    max-height: none;
    overflow: visible;
    filter: none;
    user-select: auto;
    pointer-events: auto;
    -webkit-mask-image: none;
    mask-image: none;
}

.bc-blur-overlay {
    margin-top: -80px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 16px;
}

.bc-blur-overlay__text {
    font-weight: 600;
    margin-bottom: 12px;
}

/* Cyan matches the live B&Company brand accent (see docs/design-guidelines.md). */
.bc-blur-overlay__cta,
.bc-article-download__btn {
    display: inline-block;
    padding: 12px 20px;
    background: #33c6e9;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.bc-blur-overlay__cta:hover,
.bc-article-download__btn:hover {
    background: #1fb0d3;
}

/* Loading state: shown while the reveal round-trip resolves the file URL so a
   click gives immediate feedback instead of a frozen-looking button. */
.bc-gate-trigger.is-loading {
    cursor: wait;
    opacity: 0.9;
}

.bc-gate-trigger.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bc-article-spin 0.6s linear infinite;
}

@keyframes bc-article-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .bc-blur-overlay__cta,
    .bc-article-download__btn {
        transition: none;
    }

    .bc-gate-trigger.is-loading::after {
        animation: none;
    }
}

.bc-article-download {
    margin: 20px 0;
}
