/**
 * NSFW Overlay & Hidden Activity Styles
 *
 * Uses CSS container queries on .buzeeci-nsfw-overlay to adapt content
 * density to the available height — no JavaScript required.
 *
 * Breakpoints:
 *   Full    (≥140px) : icon (own line) + title + description + button
 *   Compact (105–139px) : [icon title] + description + button
 *   Minimal (<105px) : [icon title] + button
 *
 * @package     BUZEECI
 * @subpackage  custom/nsfw
 */

/* ── Hidden preference ─────────────────────────────────────────────────── */

.buzeeci_activity_is_hidden {
    display: none !important;
}

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

.buzeeci-nsfw-overlay {
    display: flex;
    flex-direction: column;
    padding: 15px 20px 10px 62px;
    background-color: rgba(255, 255, 255, 0.49);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    height: 100%;
    z-index: 10;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    font-size: 15px;
    line-height: 22px;
    container-type: size;
    container-name: nsfw-overlay;
}

/* ── Title & icon ──────────────────────────────────────────────────────── */

.buzeeci-nsfw-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
}

.buzeeci-nsfw-title:before {
    content: '';
    display: block;
    background-image: url(../img/nsfw-censored.svg);
    width: 24px;
    min-height: 24px;
    max-height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 1px;
}

/* ── Description ───────────────────────────────────────────────────────── */

.buzeeci-nsfw-desc {
    font-size: 15px;
    line-height: 22px;
}

/* ── Show button ───────────────────────────────────────────────────────── */

.buzeeci-nsfw-show-button {
    background-color: var(--bb-primary-button-background-regular);
    color: var(--bb-primary-button-text-regular);
    width: fit-content;
    padding: 4px 19px;
    border-radius: 30px;
    margin-top: 7px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.buzeeci-nsfw-show-button:hover {
    background-color: var(--bb-primary-button-background-hover);
    color: var(--bb-primary-button-text-hover);
}

/* ── Adaptive sizing via container queries ─────────────────────────────── */

/* Compact: icon beside title, description visible */
@container nsfw-overlay (min-height: 91px) and (max-height: 139px) {
    .buzeeci-nsfw-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .buzeeci-nsfw-title:before {
        display: inline-block;
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

/* Minimal: icon beside title, description hidden */
@container nsfw-overlay (max-height: 90px) {
    .buzeeci-nsfw-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .buzeeci-nsfw-title:before {
        display: inline-block;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .buzeeci-nsfw-desc {
        display: none;
    }
}