/* ============================================
   REPUTATION BADGES & REPORT MODAL
   Shared between index.html and seller.html
   ============================================ */

/* ---- Reputation badge (inline chip) ---- */
.reputation-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---- Report Button ---- */
.report-btn {
    background: none;
    border: 1px solid #fca5a5;
    color: #ef4444;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.report-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

/* ---- Report Modal ---- */
.report-modal-content {
    max-width: 390px;
    width: 94%;
}

.report-target-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    width: 100%;
}

.report-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.report-reason-btn {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.report-reason-btn.selected,
.report-reason-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.report-textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fafafa;
}

.report-textarea:focus {
    border-color: #ef4444;
    background: white;
}

.report-error {
    font-size: 12px;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
    display: none;
}

.report-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    margin-top: 12px;
}

.report-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.report-submit-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* Dark mode */
body.dark-mode .report-reason-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

body.dark-mode .report-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .report-target-chip {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}