/* Bug Report Button & Modal */

/* Top bar: flex row holding Menu (left) and Bug Report (right) */
.game-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

/* Bug report button — matches .back-to-menu-btn style */
.bug-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.bug-report-btn:hover,
.bug-report-btn:active {
    color: rgba(255, 255, 255, 1.0);
    background: rgba(0, 0, 0, 0.45);
}

.bug-report-btn svg {
    flex-shrink: 0;
}

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

/* Modal — follows leave-game-modal pattern */
.bug-report-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bug-report-modal.hidden {
    display: none;
}

.bug-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.bug-report-dialog {
    position: relative;
    background: var(--dark-brown);
    border: 4px solid var(--primary-orange);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.bug-report-dialog h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: white;
    margin: 0 0 0.5rem;
}

.bug-report-dialog p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.bug-report-dialog textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.75rem;
    resize: vertical;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.bug-report-dialog textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.bug-report-dialog textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.bug-report-actions {
    display: flex;
    gap: 0.75rem;
}

.bug-report-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}
