/**
 * Monetization — Styles
 *
 * Premium content notice, buy button, whitelist modal, and mock feed styling.
 *
 * @package    BUZEECI
 * @feature    monetization
 * @version    3.0.0
 * @since      18-03-2026
 */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Whitelist Modal                                                           */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay ───────────────────────────────────────────────────────────────── */

.wl-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Modal Shell ───────────────────────────────────────────────────────────── */

.wl-modal {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.12);
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.wl-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 53px;
    flex-shrink: 0;
    border-bottom: 1px solid #eff3f4;
}

.wl-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #0f1419;
    letter-spacing: -0.2px;
}

.wl-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f1419;
    transition: background 150ms;
}
.wl-modal__close:hover {
    background: rgba(15, 20, 25, 0.08);
}
.wl-modal__close svg {
    width: 20px;
    height: 20px;
}

/* ── Search ────────────────────────────────────────────────────────────────── */

.wl-modal__search {
    padding: 12px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid #eff3f4;
}

.wl-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f9f9;
    border: 1px solid #cfd9de;
    border-radius: 999px;
    padding: 0 16px;
    transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.wl-search:focus-within {
    border-color: #1d9bf0;
    box-shadow: 0 0 0 1px #1d9bf0;
    background: #ffffff;
}

.wl-search__icon {
    flex-shrink: 0;
    color: #8899a6;
    transition: color 200ms;
    display: flex;
}
.wl-search:focus-within .wl-search__icon {
    color: #1d9bf0;
}
.wl-search__icon svg {
    width: 18px;
    height: 18px;
}

.wl-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #0f1419;
    padding: 10px 0;
    line-height: 1.4;
}
.wl-search__input::placeholder {
    color: #8899a6;
}

/* ── Body ──────────────────────────────────────────────────────────────────── */

.wl-modal__body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* ── Section Headers ───────────────────────────────────────────────────────── */

.wl-section {
    padding: 12px 16px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #536471;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── User Row ──────────────────────────────────────────────────────────────── */

.wl-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background 150ms;
}
.wl-user:hover {
    background: #f7f9f9;
}

.wl-user__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff3f4;
    flex-shrink: 0;
    overflow: hidden;
}
.wl-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wl-user__info {
    flex: 1;
    min-width: 0;
}

.wl-user__name {
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-user__username {
    font-size: 13px;
    color: #536471;
    line-height: 1.3;
}

.wl-user__action {
    flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 16px;
    line-height: 1.4;
    transition: background 150ms, color 150ms, border-color 150ms;
    font-family: inherit;
    min-width: 70px;
}

.wl-btn--add {
    background: #0f1419;
    color: #ffffff;
}
.wl-btn--add:hover {
    background: #2a2f33;
}

.wl-btn--added {
    background: transparent;
    color: #1d9bf0;
    border: 1px solid #1d9bf0;
}
.wl-btn--added:hover {
    background: rgba(244, 33, 46, 0.08);
    color: #f4212e;
    border-color: #f4212e;
}

.wl-btn--remove {
    background: transparent;
    color: #f4212e;
    border: 1px solid #cfd9de;
}
.wl-btn--remove:hover {
    background: rgba(244, 33, 46, 0.08);
    border-color: #f4212e;
}

.wl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */

.wl-divider {
    height: 1px;
    background: #eff3f4;
    margin: 0;
}

/* ── Empty State ───────────────────────────────────────────────────────────── */

.wl-empty {
    padding: 32px 16px;
    text-align: center;
}

.wl-empty__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #8899a6;
}

.wl-empty__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
    margin-bottom: 4px;
}

.wl-empty__desc {
    font-size: 13px;
    color: #536471;
    line-height: 1.4;
}

/* ── Search Hint (before typing) ───────────────────────────────────────────── */

.wl-search-hint {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #8899a6;
}

/* ── Loading State ─────────────────────────────────────────────────────────── */

.wl-loading {
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    color: #536471;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.wl-modal__footer {
    flex-shrink: 0;
    padding: 12px 16px;
    border-top: 1px solid #eff3f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
}

.wl-footer__count {
    font-size: 13px;
    color: #536471;
}
.wl-footer__count strong {
    color: #0f1419;
}

.wl-footer__link {
    font-size: 13px;
    color: #f4212e;
    cursor: pointer;
    font-weight: 600;
}
.wl-footer__link:hover {
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .wl-overlay {
        padding: 0;
    }
    .wl-modal {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
}

/* ── Text Toggle (Capsule) ────────────────────────────────────────────────── */

.bzc-text-toggle {
    --bzc-tt-active:          #1d9bf0;
    --bzc-tt-active-hover:    #1a8cd8;
    --bzc-tt-active-text:     #fff;
    --bzc-tt-inactive-text:   #536471;
    --bzc-tt-border:          #cfd9de;
    --bzc-tt-font-size:       14px;
    --bzc-tt-font-weight:     700;
    --bzc-tt-letter-spacing:  0.04em;
    --bzc-tt-radius:          999px;
}

.bzc-text-toggle--capsule {
    display: inline-flex;
    border: 1px solid var(--bzc-tt-border);
    border-radius: var(--bzc-tt-radius);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.bzc-text-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.bzc-text-toggle__option {
    cursor: pointer;
}

.bzc-text-toggle__label {
    display: block;
    padding: 10px 28px;
    font-size: var(--bzc-tt-font-size);
    font-weight: var(--bzc-tt-font-weight);
    letter-spacing: var(--bzc-tt-letter-spacing);
    color: var(--bzc-tt-inactive-text);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bzc-text-toggle__divider {
    width: 1px;
    align-self: stretch;
    background: var(--bzc-tt-border);
    flex-shrink: 0;
}

.bzc-text-toggle__input:checked + .bzc-text-toggle__label {
    background: var(--bzc-tt-active);
    color: var(--bzc-tt-active-text);
}

.bzc-text-toggle__option:hover .bzc-text-toggle__input:not(:checked) + .bzc-text-toggle__label {
    background: rgba(29, 155, 240, 0.04);
    color: #0f1419;
}

.bzc-text-toggle__option:hover .bzc-text-toggle__input:checked + .bzc-text-toggle__label {
    background: var(--bzc-tt-active-hover);
}

.bzc-text-toggle__input:focus-visible + .bzc-text-toggle__label {
    box-shadow: inset 0 0 0 2px rgba(29, 155, 240, 0.3);
}

/* ── Page-Level Gate: Gated Message (fallback) ─────────────────────────────── */

.bzc-page-gated-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 20px;
    text-align: center;
}

.bzc-page-gated-message p {
    font-size: 17px;
    font-weight: 600;
    color: #536471;
    max-width: 420px;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Mock Activity Feed (Profile & Group Gate Paywall)                         */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── Feed Container ────────────────────────────────────────────────────────── */

.bzc-mock-feed {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 0 0 40px;
}

/* ── Single Mock Activity Card ─────────────────────────────────────────────── */

.bzc-mock-activity {
    padding: 16px 20px;
    border-bottom: 1px solid #eff3f4;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Second card fades away — implies more content below */
.bzc-mock-activity--faded {
    opacity: 0.45;
}

/* ── Header Row (avatar + name + action + time) ───────────────────────────── */

.bzc-mock-activity__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.bzc-mock-activity__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eff3f4;
}
.bzc-mock-activity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bzc-mock-activity__avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cfd9de 0%, #eff3f4 100%);
}

.bzc-mock-activity__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    min-width: 0;
    line-height: 1.4;
}

.bzc-mock-activity__name {
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
}

.bzc-mock-activity__action {
    font-size: 14px;
    color: #536471;
}

.bzc-mock-activity__time {
    font-size: 13px;
    color: #8899a6;
}

/* ── Blurred Content Body ──────────────────────────────────────────────────── */

.bzc-mock-activity__body {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    padding: 0 0 0 56px; /* align with text after avatar */
}
.bzc-mock-activity__body p {
    font-size: 15px;
    color: #0f1419;
    line-height: 1.5;
    margin: 0;
}

/* ── Blurred Image Placeholder ─────────────────────────────────────────────── */

.bzc-mock-activity__media {
    padding: 10px 0 0 56px;
    filter: blur(6px);
    -webkit-filter: blur(6px);
}

.bzc-mock-activity__img-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        #e8ecef 0%,
        #d5dce0 25%,
        #c8d0d5 50%,
        #d5dce0 75%,
        #e8ecef 100%
    );
    background-size: 200% 200%;
    animation: bzc-mock-shimmer 2.5s ease-in-out infinite;
}

@keyframes bzc-mock-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Fake Action Bar ───────────────────────────────────────────────────────── */

.bzc-mock-activity__actions {
    display: flex;
    gap: 28px;
    padding: 10px 0 0 56px;
    filter: blur(4px);
    -webkit-filter: blur(4px);
}

.bzc-mock-activity__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #536471;
}
.bzc-mock-activity__action-btn svg {
    opacity: 0.6;
}

/* ── Subscribe CTA Overlay ─────────────────────────────────────────────────── */

.bzc-mock-feed__cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Gradient fades from transparent at top to opaque white at bottom */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 25%,
        rgba(255, 255, 255, 0.95) 50%,
        #ffffff 70%
    );
    padding: 80px 20px 28px;
    pointer-events: auto;
}

.bzc-mock-feed__cta-inner {
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
}

.bzc-mock-feed__cta-icon {
    color: #1d9bf0;
    margin-bottom: 8px;
}

.bzc-mock-feed__cta-text {
    font-size: 15px;
    color: #536471;
    line-height: 1.5;
    margin: 0 0 16px;
}
.bzc-mock-feed__cta-text strong {
    color: #0f1419;
}

.bzc-mock-feed__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border: none;
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}
.bzc-mock-feed__cta-btn:hover {
    background: #1a8cd8;
    color: #fff;
    text-decoration: none;
}
.bzc-mock-feed__cta-btn:active {
    background: #1a7bc4;
}

/* ── Responsive Tweaks ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .bzc-mock-activity__body,
    .bzc-mock-activity__media,
    .bzc-mock-activity__actions {
        padding-left: 0;
    }

    .bzc-mock-activity__img-placeholder {
        height: 150px;
        border-radius: 12px;
    }
}