/* ALANDYS · SIGNALER UN PROBLÈME (bêta, report.js) : un petit bouton discret en bas à gauche (hub, menu pause, écran
   de fin ; jamais en plein combat) et sa fenêtre : sorte de souci, description, capture de l'écran de jeu. */

.report-btn {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 90;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px 0 9px;
    border-radius: 17px;
    background: rgba(4, 16, 26, 0.72);
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    color: rgba(var(--gold-rgb), 0.9);
    font-family: inherit;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1;
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.report-btn:hover,
.report-btn:focus-visible {
    opacity: 1;
    border-color: rgba(var(--gold-rgb), 0.7);
    transform: scale(1.06);
}

.report-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-btn.hidden {
    display: none;
}

/* Au hub : dans le pied de la barre latérale, au bout de la ligne « en ligne » (avec le bouton de plein écran) */
.side-foot {
    position: relative;
}

.report-label {
    white-space: nowrap;
}

/* Au hub : le rond de la barre latérale (le libellé est dans les Réglages) */
.report-btn.in-hub {
    position: absolute;
    left: auto;
    right: 14px;
    bottom: 11px;
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.report-btn.in-hub .report-label {
    display: none;
}

.report-btn.in-hub svg {
    width: 16px;
    height: 16px;
}

/* Plein écran (shared/fullscreen.js) : même bouton rond, juste à gauche du signalement */
.fullscreen-btn {
    position: absolute;
    right: 50px;
    bottom: 11px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(4, 16, 26, 0.55);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    color: rgba(var(--gold-rgb), 0.75);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.fullscreen-btn:hover,
.fullscreen-btn:focus-visible {
    opacity: 1;
    border-color: rgba(var(--gold-rgb), 0.7);
    transform: scale(1.06);
}

.fullscreen-btn[hidden] {
    display: none;
}

.fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

/* L'icône du bouton de plein écran (hub, accueil) : entrer, ou sortir une fois en plein écran */
.fs-exit,
.is-full .fs-enter {
    display: none;
}

.is-full .fs-exit {
    display: inline;
}

/* Barre latérale en bandeau (mobile) : les boutons prennent leur place au bout de la rangée, « en ligne » reste au
   milieu */
@media (max-width: 900px), (orientation: landscape) and (max-height: 500px) {
    .report-btn.in-hub,
    .fullscreen-btn {
        position: static;
        flex: none;
    }

    .fullscreen-btn,
    .side-foot:has(.fullscreen-btn:not([hidden])) .hub-presence {
        margin-left: auto;
    }

    .fullscreen-btn + .report-btn.in-hub {
        margin-left: 8px;
    }
}

.report-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(1, 5, 10, 0.7);
}

.report-card {
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 18px;
    background: var(--glass-strong);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    display: grid;
    gap: 12px;
}

.report-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

.report-lead,
.report-note {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.report-note {
    font-size: 12px;
    opacity: 0.6;
}

.report-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.report-cats input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.report-cats span {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    font-size: 13px;
    cursor: pointer;
}

.report-cats input:checked + span {
    background: rgba(var(--gold-rgb), 0.16);
    border-color: rgba(var(--gold-rgb), 0.75);
    color: var(--gold);
}

.report-cats input:focus-visible + span {
    outline: 2px solid rgba(var(--gold-rgb), 0.6);
}

.report-card textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    color: inherit;
    font: inherit;
    font-size: 14px;
}

.report-card textarea:focus {
    outline: none;
    border-color: rgba(var(--gold-rgb), 0.6);
}

.report-shot {
    display: grid;
    grid-template-columns: auto 72px 1fr;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
}

.report-shot img {
    width: 72px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(var(--gold-rgb), 0.25);
}

.report-status {
    min-height: 1em;
    font-size: 13px;
    color: var(--gold);
}

.report-status:empty {
    display: none;
}

.report-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.report-buttons .btn-primary,
.report-buttons .btn-ghost {
    min-width: 0;
    padding: 10px 20px;
    font-size: 15px;
}
