/* Moderation label strip + details panel. Shared by userinfo.php and labelcheck.php. */

.mod-strip-wrap {
    --mod-dot: #9aa3b2;
    margin-top: 14px;
    border-radius: 12px;
    background: #f6f8fc;
    color: #2b3648;
    overflow: hidden;
}

.mod-level-clear   { --mod-dot: #22a06b; }
.mod-level-info    { --mod-dot: #5b8def; }
.mod-level-alert   { --mod-dot: #e08a00; }
.mod-level-bluesky { --mod-dot: #d83a3a; }

.mod-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.mod-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mod-dot);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.mod-loading .mod-dot {
    animation: mod-pulse 1.2s ease-in-out infinite;
}

@keyframes mod-pulse {
    50% { opacity: 0.3; }
}

.mod-verdict {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    font-size: 14px;
}

.mod-summary {
    font-size: 12px;
    opacity: 0.8;
}

.mod-toggle {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #2f5fd0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mod-toggle:hover { background: #eef4ff; }

.mod-details {
    padding: 4px 14px 14px;
    background: #fff;
    color: #2b3648;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
}

.mod-details[hidden] { display: none; }

.mod-section-title {
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a8496;
}

.mod-labels,
.mod-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mod-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mod-label:last-child { border-bottom: none; }

.mod-badge {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.mod-badge-bluesky { background: #fde8e8; color: #a12020; }
.mod-badge-alert   { background: #fff1d6; color: #7a4b00; }
.mod-badge-adult   { background: #f1e8fd; color: #5b2a99; }
.mod-badge-info    { background: #eef4ff; color: #24427a; }
.mod-badge-self    { background: #eef0f3; color: #4a5568; }

.mod-label-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mod-label-name { font-weight: 600; overflow-wrap: anywhere; }
.mod-label-count { font-weight: 500; color: #7a8496; }

.mod-label-meta {
    font-size: 12px;
    color: #7a8496;
}

.mod-label-desc {
    font-size: 12px;
    color: #4a5568;
    margin-top: 2px;
}

.mod-posts li {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    min-width: 0;
}

.mod-posts a {
    color: #2b3648;
    overflow-wrap: anywhere;
}

.mod-text,
.mod-empty,
.mod-note {
    margin: 4px 0;
}

.mod-empty { color: #7a8496; }

.mod-footnote {
    margin: 14px 0 0;
    font-size: 11px;
    color: #8a94a6;
    line-height: 1.5;
}

.mod-footnote a { color: #2f5fd0; }

/* Inside the blue profile card: a translucent strip so it reads as part of the card */
.stats-summary-card .mod-strip-wrap {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.stats-summary-card .mod-toggle {
    border-color: transparent;
}

@media (max-width: 576px) {
    .mod-strip { padding: 9px 10px; gap: 8px; }
    .mod-verdict { font-size: 13px; }
    .mod-details { padding: 2px 12px 12px; }

    /* Badge above the text on narrow screens, so the label name keeps the full width */
    .mod-label { flex-direction: column; gap: 4px; }

    /* Keep the collapsed strip to two lines: verdict, then one line of counts */
    .mod-summary {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Labeler descriptions can run to a paragraph; two lines is enough on a phone */
    .mod-label-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --- Lists, blocks & starter packs strip (network_lists_ui.js) --- */

/* Two strips stacked in the profile card sit closer than the first one to the text */
.mod-strip-wrap + .mod-strip-wrap {
    margin-top: 8px;
}

.net-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #5b8def;
    color: #fff;
}

.net-count {
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef0f3;
    color: #4a5568;
    font-size: 11px;
    letter-spacing: 0;
}

.net-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.net-row {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.net-row[hidden] { display: none; }
.net-row:last-child { border-bottom: none; }

.net-name {
    font-weight: 600;
    color: #2b3648;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.net-name:hover { text-decoration: underline; }

.net-more {
    margin: 4px 0 0;
    padding: 0;
    border: none;
    background: none;
    color: #2f5fd0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.net-loading {
    animation: mod-pulse 1.2s ease-in-out infinite;
}
