/* =========================================================
   گزارش آگهی | report.css
   ========================================================= */

.ad-report-box {
    width: 100%;
}

.report-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.report-btn:hover {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, .4);
    background: rgba(231, 76, 60, .08);
}

/* ============ مودال ============ */
.report-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.report-modal.open {
    opacity: 1;
    visibility: visible;
}

.report-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
}

.report-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    transform: scale(.95);
    transition: transform .25s ease;
    overflow: hidden;
}

.report-modal.open .report-modal-content {
    transform: scale(1);
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.report-modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

.report-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}

.report-modal-close:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.report-form {
    padding: 20px 24px 24px;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.report-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
    color: var(--text-soft);
}

.report-radio:hover {
    border-color: var(--border-light);
    background: var(--bg-card);
}

.report-radio input {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.report-radio:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 700;
}

.report-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    outline: none;
}

.report-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.report-textarea::placeholder {
    color: var(--text-faint);
}

.report-actions {
    display: flex;
    gap: 10px;
}

.report-cancel,
.report-submit {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}

.report-cancel {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-soft);
}

.report-cancel:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.report-submit {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(231, 76, 60, .3);
}

.report-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(231, 76, 60, .4);
}

.report-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.report-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.report-message.success {
    display: block;
    background: rgba(76, 175, 80, .1);
    border: 1px solid rgba(76, 175, 80, .35);
    color: #4caf50;
}

.report-message.error {
    display: block;
    background: rgba(231, 76, 60, .1);
    border: 1px solid rgba(231, 76, 60, .35);
    color: #e74c3c;
}

@media (max-width: 500px) {
    .report-modal-content { margin: 10px; border-radius: 16px; }
    .report-modal-header { padding: 16px 20px; }
    .report-form { padding: 16px 20px 20px; }
}