/**
 * ad-report-modal.css — Styles for the Ad Report Modal
 * Matches btn-main-report from main-feed.css and btn-ad-report from ads_display.css
 * Include after ads_display.css
 */

/* === AD REPORT MODAL OVERLAY === */
.ad-report-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ad-report-modal[aria-hidden="false"] {
    display: flex;
}

.ad-report-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* === MODAL CONTENT BOX === */
.ad-report-modal-content {
    position: relative;
    background: var(--surface-2, #1e2a3a);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* === HEADER === */
.ad-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.12), transparent);
}

.ad-report-modal-header h2 {
    margin: 0;
    font-size: 1.15em;
    color: #e74c3c !important;
    font-weight: 600;
}

.ad-report-close {
    background: transparent;
    border: none;
    color: var(--muted, #888);
    font-size: 1.6em;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ad-report-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* === FORM === */
.ad-report-form {
    padding: 20px;
}

.ad-report-section {
    margin-bottom: 16px;
}

/* ✅ FIX 3: Force white text for all labels and text in the modal */
.ad-report-label {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    color: #e0e0e0 !important;
    margin-bottom: 10px;
}

/* === RADIO BUTTON REASONS === */
.ad-report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-report-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e0e0e0 !important;
}

.ad-report-reason:hover {
    background: rgba(231, 76, 60, 0.06);
    border-color: rgba(231, 76, 60, 0.3);
}

.ad-report-reason input[type="radio"] {
    accent-color: #e74c3c;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ad-report-reason .reason-text {
    font-size: 0.95em;
    color: #e0e0e0 !important;
}

/* === COMMENT TEXTAREA (shown for "Comment" option) === */
.ad-report-textarea {
    width: 100%;
    height: 100px;
    padding: 10px 12px;
    background-color: #2a3847 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    color: #e0e0e0 !important;
    resize: vertical;
    font-family: inherit;
}

.ad-report-textarea::placeholder {
    color: #888 !important;
}

.ad-report-textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
    background-color: #2a3847 !important;
    color: #e0e0e0 !important;
}

.ad-report-char-count {
    text-align: right;
    font-size: 0.8em;
    color: #999 !important;
    margin-top: 4px;
}

.ad-report-char-count span {
    color: #999 !important;
}

/* === ACTION BUTTONS === */
.ad-report-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ad-report-btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border, rgba(255,255,255,0.15));
    color: #e0e0e0 !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-report-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0 !important;
}

.ad-report-btn-submit {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-report-btn-submit:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c !important;
}

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

/* === REPORTED AD STATE === */
.ad-container.reported {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.ad-container.reported::after {
    content: 'Reported';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.85);
    color: white !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 10;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .ad-report-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .ad-report-form {
        padding: 14px;
    }

    .ad-report-actions {
        flex-direction: column;
    }
}
