/**
 * Problem Report Styles
 *
 * FAB button, report modal additions, and inline report triggers.
 * The modal itself reuses .modal / .modal-content from modals.css
 * and .form-group from forms.css.
 */

/* =====================================================================
   FLOATING ACTION BUTTON (FAB)
   ===================================================================== */

.report-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.report-fab:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.08);
}

/* =====================================================================
   REPORT MODAL SPECIFICS
   ===================================================================== */

#report-modal .modal-content {
    max-width: 520px;
}

.report-context-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: monospace;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 15px;
}

.report-context-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.report-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.report-actions button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.report-btn-cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border) !important;
}

.report-btn-cancel:hover {
    color: var(--text);
    border-color: var(--text-muted) !important;
}

.report-btn-submit {
    background: var(--accent);
    color: #fff;
}

.report-btn-submit:hover {
    background: var(--accent-hover);
}

.report-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================================
   INLINE REPORT TRIGGER (contextual buttons inside features)
   ===================================================================== */

.report-inline-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.report-inline-btn:hover {
    opacity: 1;
    color: var(--accent);
}

/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 768px) {
    .report-fab {
        bottom: 80px; /* Above mobile nav */
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #report-modal .modal-content {
        max-width: 100%;
    }

    #report-modal .form-group input,
    #report-modal .form-group textarea,
    #report-modal .form-group select {
        font-size: 16px; /* Prevent iOS zoom */
    }
}
