/* UGC report modal — matches MetFix / Daily Fix blues (#0076D6, #0085E5) */

.bsi-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 44, 77, 0.55);
    backdrop-filter: blur(4px);
    animation: bsi-report-fade-in 0.2s ease-out;
}

@keyframes bsi-report-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.bsi-report-dialog {
    position: relative;
    width: 100%;
    max-width: 26rem;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0, 118, 214, 0.08),
        0 20px 48px rgba(0, 44, 77, 0.22);
    animation: bsi-report-slide-up 0.25s ease-out;
}

@keyframes bsi-report-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bsi-report-dialog__header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #0076d6 0%, #0085e5 48%, #33a9ff 100%);
    border-radius: 12px 12px 0 0;
    color: #fff;
}

.bsi-report-dialog__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.125rem;
}

.bsi-report-dialog__heading {
    flex: 1;
    min-width: 0;
}

.bsi-report-dialog__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.bsi-report-dialog__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    opacity: 0.92;
}

.bsi-report-dialog__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: -0.25rem -0.25rem 0 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bsi-report-dialog__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.bsi-report-dialog__body {
    padding: 1.25rem;
}

.bsi-report-field {
    margin: 0 0 1rem;
}

.bsi-report-field:last-of-type {
    margin-bottom: 0;
}

.bsi-report-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #002c4d;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bsi-report-field__control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #1a1a1a;
    background: #f0f8ff;
    border: 2px solid #c5e4fa;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bsi-report-field__control:hover {
    border-color: #88c9ff;
}

.bsi-report-field__control:focus {
    outline: none;
    background: #fff;
    border-color: #0076d6;
    box-shadow: 0 0 0 3px rgba(0, 118, 214, 0.2);
}

.bsi-report-field__control--textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.bsi-report-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: flex-end;
    padding: 0 1.25rem 1.25rem;
}

.bsi-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.bsi-report-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.bsi-report-btn--ghost {
    background: #fff;
    border-color: #c5e4fa;
    color: #0067b2;
}

.bsi-report-btn--ghost:hover:not(:disabled) {
    background: #f0f8ff;
    border-color: #0076d6;
    color: #0076d6;
}

.bsi-report-btn--primary {
    background: linear-gradient(180deg, #0085e5 0%, #0076d6 100%);
    border-color: #0067b2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 118, 214, 0.35);
}

.bsi-report-btn--primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #33a9ff 0%, #0085e5 100%);
    border-color: #0076d6;
}

.bsi-report-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Daily Fix comment row — report trigger matches other comment actions */
.comment-func-btn.bsi-report-btn {
    color: inherit;
}

.comment-func-btn.bsi-report-btn:hover {
    color: #0085e5;
}

.bsi-report-dialog--success .bsi-report-dialog__header {
    background: linear-gradient(135deg, #0067b2 0%, #0076d6 100%);
}

.bsi-report-dialog__success {
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
}

.bsi-report-dialog__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: #e8f4fd;
    color: #0076d6;
    font-size: 1.5rem;
}

.bsi-report-dialog__success-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #333;
}

.bsi-report-dialog__error {
    margin: 0 0 1rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #8b1a1a;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
}

.bsi-report-dialog__error:empty {
    display: none;
}

/* Antonio on Daily Fix pages when available */
#daily-fix-container .bsi-report-btn--primary,
#commentContainer .bsi-report-btn--primary {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Reported-item shield (own report or community auto-hide) */

.bsi-reportable.bsi-reported--community .bsi-reported-shield__badge {
    color: #b45309;
}

.bsi-reportable.bsi-reported--pending {
    position: relative;
}

.bsi-reportable.bsi-reported--pending:not(.bsi-reported--revealed) > *:not(.bsi-reported-shield) {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.bsi-reportable.bsi-reported--pending.bsi-reported--revealed > .bsi-reported-shield {
    display: none;
}

.bsi-reported-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 6px;
    background: linear-gradient(160deg, rgba(0, 118, 214, 0.12) 0%, rgba(240, 248, 255, 0.98) 45%, #fff 100%);
    border: 2px dashed #88c9ff;
    box-sizing: border-box;
    min-height: 5.5rem;
}

.bsi-reported-shield__inner {
    text-align: center;
    max-width: 16rem;
}

.bsi-reported-shield__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0076d6, #33a9ff);
    color: #fff;
    font-size: 1rem;
}

.bsi-reported-shield__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #002c4d;
}

.bsi-reported-shield__badge {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0076d6;
}

.bsi-reported-shield__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #555;
}

.bsi-reported-shield__reveal,
.bsi-reported-shield__hide {
    display: inline-block;
    margin: 0.15rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #0085e5 0%, #0076d6 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 118, 214, 0.3);
}

.bsi-reported-shield__hide {
    background: #fff;
    color: #0076d6;
    border: 2px solid #0076d6;
    box-shadow: none;
}

.bsi-reported-shield__reveal:hover,
.bsi-reported-shield__hide:hover {
    filter: brightness(1.05);
}

#commentContainer .comment.bsi-reported--pending:not(.bsi-reported--revealed) {
    min-height: 7rem;
}

#commentContainer .comment.reply-comment.bsi-reported--pending:not(.bsi-reported--revealed) {
    min-height: 6.5rem;
}
