/**
 * Monetization — Activity Gate Styles
 *
 * Shimmer veils, blurred preview grids, buy strips, text teasers,
 * and GIF-hover containers for the premium content gate UI.
 *
 * @package    BUZEECI
 * @feature    monetization
 * @version    1.0.0
 * @since      18-03-2026
 */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Shimmer Veil (.sv)                                                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

.sv {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f9f9;
}

/* ── Aspect-ratio spacers ─────────────────────────────────────────────────── */

.sv__spacer {
    width: 100%;
}

.sv__spacer--16x10 {
    padding-top: 50%;
}

.sv__spacer--16x9 {
    padding-top: 56.25%;
}

/* ── Gradient mesh background ─────────────────────────────────────────────── */

.sv__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient( ellipse 60% 50% at 15% 80%, rgba(29, 155, 240, 0.10) 0%, transparent 70% ),
        radial-gradient( ellipse 50% 60% at 85% 20%, rgba(255, 193, 59, 0.08) 0%, transparent 70% ),
        radial-gradient( ellipse 45% 45% at 50% 50%, rgba(249, 24, 128, 0.06) 0%, transparent 70% ),
        #f7f9f9;
}

/* ── Traveling shimmer band ───────────────────────────────────────────────── */

.sv__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.40) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: sv-shimmer 2.6s ease-in-out infinite;
}

@keyframes sv-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Border overlay ───────────────────────────────────────────────────────── */

.sv__border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

/* ── Centered content overlay ─────────────────────────────────────────────── */

.sv__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    z-index: 2;
}

/* ── Frosted glass badge ──────────────────────────────────────────────────── */

.sv__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #0f1419;
    line-height: 1.3;
    max-width: 90%;
    text-align: center;
}

.sv__badge svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #536471;
}

/* ── Unlock button (inside shimmer veil) ──────────────────────────────────── */

.sv__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 24px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms, box-shadow 150ms;
    font-family: inherit;
    line-height: 1.3;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sv__btn:hover {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sv__btn.loading {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
}

.sv__btn svg {
    width: 16px;
    height: 16px;
}

/* ── Preview clip (autoplay muted video) ─────────────────────────────────── */

.sv__clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ── Clip hover — poster fades out to reveal playing video ───────────────── */

.sv--clip-hover .sv__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.sv--clip-hover:hover .sv__poster {
    opacity: 0;
}

.sv--clip-hover .sv__clip {
    z-index: 1;
}

/* ── Blurred preview image ────────────────────────────────────────────────── */

.sv__blur-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Photo Grid Layouts (.sv-grid)                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

.sv-grid {
    position: relative;
    display: grid;
    gap: 2px;
    border-radius: 16px;
    overflow: hidden;
}

/* 2 photos: side by side squares */
.sv-grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 photos: tall left + 2 stacked right */
.sv-grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.sv-grid--3 .sv-cell:first-child {
    grid-row: 1 / 3;
}

/* 4 photos: 2×2 grid */
.sv-grid--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* ── Grid Cell ────────────────────────────────────────────────────────────── */

.sv-cell {
    position: relative;
    overflow: hidden;
    background: #f7f9f9;
}

.sv-cell__spacer {
    width: 100%;
    padding-top: 100%;
}

.sv-grid--3 .sv-cell:first-child .sv-cell__spacer {
    padding-top: 100%;
}

/* ── Per-cell gradient variants ───────────────────────────────────────────── */

.sv-cell .sv__gradient {
    border-radius: 0;
}

.sv-cell:nth-child(1) .sv__gradient {
    background:
        radial-gradient( ellipse 70% 60% at 20% 70%, rgba(29, 155, 240, 0.12) 0%, transparent 70% ),
        radial-gradient( ellipse 50% 50% at 80% 30%, rgba(255, 193, 59, 0.08) 0%, transparent 70% ),
        #f7f9f9;
}

.sv-cell:nth-child(2) .sv__gradient {
    background:
        radial-gradient( ellipse 60% 60% at 70% 60%, rgba(249, 24, 128, 0.10) 0%, transparent 70% ),
        radial-gradient( ellipse 50% 50% at 20% 30%, rgba(29, 155, 240, 0.08) 0%, transparent 70% ),
        #f7f9f9;
}

.sv-cell:nth-child(3) .sv__gradient {
    background:
        radial-gradient( ellipse 60% 55% at 50% 50%, rgba(255, 193, 59, 0.10) 0%, transparent 70% ),
        radial-gradient( ellipse 45% 45% at 20% 80%, rgba(249, 24, 128, 0.06) 0%, transparent 70% ),
        #f7f9f9;
}

.sv-cell:nth-child(4) .sv__gradient {
    background:
        radial-gradient( ellipse 55% 60% at 80% 70%, rgba(29, 155, 240, 0.10) 0%, transparent 70% ),
        radial-gradient( ellipse 50% 50% at 30% 20%, rgba(255, 193, 59, 0.06) 0%, transparent 70% ),
        #f7f9f9;
}

/* ── Staggered shimmer delays ─────────────────────────────────────────────── */

.sv-cell:nth-child(2) .sv__shimmer { animation-delay: 0.3s; }
.sv-cell:nth-child(3) .sv__shimmer { animation-delay: 0.6s; }
.sv-cell:nth-child(4) .sv__shimmer { animation-delay: 0.9s; }

/* ── +N overflow badge ────────────────────────────────────────────────────── */

.sv-cell__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.40);
    z-index: 2;
}

.sv-cell__more-badge {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Buy Strip (.bzc-buy)                                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */

.bzc-buy {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    width: 100%;
	justify-content: space-between;
}

.bzc-buy__lock {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #536471;
}

.bzc-buy__info {
    font-size: 13px;
    color: #536471;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bzc-buy__info-container {
	display: flex;
	gap: 6px;
	align-items: center;
}

.bzc-buy__dot {
    flex-shrink: 0;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #536471;
}

.bzc-buy__price {
    font-size: 13px;
    color: #536471;
    white-space: nowrap;
}

.bzc-buy__spacer {
    flex: 1;
}

.bzc-buy__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border: none;
    border-radius: 999px;
    background: #0f1419;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms;
    font-family: inherit;
    line-height: 1.3;
}

.bzc-buy__btn:hover {
    background: #2a2f33;
}

.bzc-buy__btn.loading {
    background: #536471;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Text Teaser (.bzc-teaser)                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.bzc-teaser {
    position: relative;
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 1.5em;
}

.bzc-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(to bottom, transparent, var(--bb-content-background-color, #fff));
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Responsive                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .sv {
        border-radius: 12px;
    }

    .sv__border {
        border-radius: 12px;
    }

    .sv-grid {
        border-radius: 12px;
    }

    .sv__badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .sv__btn {
        font-size: 13px;
        padding: 8px 20px;
    }

    .bzc-buy__btn {
        font-size: 13px;
        padding: 7px 16px;
    }

    .sv-cell__more-badge {
        font-size: 18px;
    }
}
