/* ============================================================
   report-modal.css
   Dark, professional report modal styles.
   Add to your @push('styles') or import in feed-styles.css
   ============================================================ */

/* ── Dialog sizing ─────────────────────────────────────────── */
.report-modal-dialog {
    max-width: 460px;
}

/* ── Modal shell ───────────────────────────────────────────── */
.report-modal-content {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 0 0 1px #1f1f1f,
                0 24px 60px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(249, 115, 22, 0.06);
    overflow: hidden;
    color: #e5e5e5;
}

/* ── Header ────────────────────────────────────────────────── */
.report-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #1e1e1e;
    position: relative;
}

.report-flag-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.report-flag-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke: #fff;
}

.report-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white) !important;
    margin: 0;
    letter-spacing: -0.01em;
}

.report-modal-subtitle {
    font-size: 0.75rem;
    color: #6b6b6b;
    margin: 2px 0 0;
}

.report-close-btn {
    margin-left: auto;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.report-close-btn:hover {
    background: #2a2a2a;
    color: #fff;
    border-color: #3d3d3d;
}

/* ── Body ──────────────────────────────────────────────────── */
.report-modal-body {
    padding: 18px 22px 12px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e transparent;
}

.report-modal-body::-webkit-scrollbar { width: 4px; }
.report-modal-body::-webkit-scrollbar-track { background: transparent; }
.report-modal-body::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 4px; }

.report-instruction {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 14px;
}

/* ── Reason list ───────────────────────────────────────────── */
.report-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Each reason row ───────────────────────────────────────── */
.report-reason-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1e1e1e;
    background: #111;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
    position: relative;
}

.report-reason-item:hover {
    background: #181818;
    border-color: #2e2e2e;
}

/* Hide native checkbox */
.report-reason-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.reason-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.reason-text {
    font-size: 0.84rem;
    color: #d1d1d1;
    flex: 1;
    line-height: 1.3;
}

/* Custom checkmark — hidden by default */
.reason-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.75rem;
    color: transparent;
}

/* Checked state — driven by the hidden checkbox via JS class OR CSS :has() */
.report-reason-item:has(input:checked) {
    background: #1a1008;
    border-color: #f97316;
}

.report-reason-item:has(input:checked) .reason-text {
    color: #f97316;
    font-weight: 600;
}

.report-reason-item:has(input:checked) .reason-check {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* ── Footer ────────────────────────────────────────────────── */
.report-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 18px;
    border-top: 1px solid #1a1a1a;
    gap: 10px;
}

.report-selected-count {
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

/* Turns orange when something is selected */
#reportSelectedCount:not(:empty) {
    color: #f97316;
}

.report-footer-actions {
    display: flex;
    gap: 8px;
}

.report-btn-cancel {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    color: #888;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.report-btn-cancel:hover {
    background: #222;
    color: #ccc;
}

.report-btn-submit {
    background: linear-gradient(135deg, #f97316, #dc2626);
    border: none;
    color: #fff;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.report-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.report-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner inside submit button ──────────────────────────── */
.report-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: report-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes report-spin {
    to { transform: rotate(360deg); }
}

/* ── Modal backdrop darker ─────────────────────────────────── */
#reportModal.modal .modal-backdrop,
.modal-backdrop {
    --bs-backdrop-opacity: 0.75;
}
