@charset "utf-8";

/* ===================================================
   신고 플러그인 CSS (report.css)
   - 모달 / 폼 / 관리자 / 배지 / 블라인드
   =================================================== */

/* ===== 공통 변수 ===== */
:root {
    --rp-red: #ef4444;
    --rp-red-hover: #dc2626;
    --rp-red-light: #fef2f2;
    --rp-gray-50: #f9fafb;
    --rp-gray-100: #f3f4f6;
    --rp-gray-200: #e5e7eb;
    --rp-gray-300: #d1d5db;
    --rp-gray-400: #9ca3af;
    --rp-gray-500: #6b7280;
    --rp-gray-600: #4b5563;
    --rp-gray-700: #374151;
    --rp-gray-800: #1f2937;
    --rp-radius: 10px;
    --rp-radius-sm: 6px;
}


/* ===== 신고 모달 ===== */
.report-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: none;
}
.report-modal.show { display: block; }

.report-modal-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.report-modal-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--rp-radius);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.report-modal-box::-webkit-scrollbar { width: 4px; }
.report-modal-box::-webkit-scrollbar-thumb { background: var(--rp-gray-300); border-radius: 2px; }

@media (max-width: 480px) {
    .report-modal-box { width: 94%; padding: 20px 16px; }
}


/* ===== 폼 영역 ===== */
#report_form_wrap { font-size: 14px; color: var(--rp-gray-800); }

.report-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rp-gray-200);
}
.report-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--rp-red-light);
    border-radius: 8px;
    color: var(--rp-red);
    flex-shrink: 0;
}
#report_form_wrap h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--rp-gray-800);
    letter-spacing: -0.02em;
}


/* ===== 사유 라벨 ===== */
.report-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rp-gray-700);
}


/* ===== 신고 사유 아이콘 그리드 ===== */
.report-reason-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.report-reason-icons li { display: block; }

.report-reason-icons label {
    display: block;
    cursor: pointer;
}
.report-reason-icons input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}

/* 아이콘 카드 */
.icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid var(--rp-gray-200);
    border-radius: 8px;
    padding: 14px 6px;
    min-height: 72px;
    text-align: center;
    background: #fff;
    color: var(--rp-gray-600);
    transition: all 0.15s ease;
    user-select: none;
}
.icon-wrap:hover {
    border-color: var(--rp-gray-300);
    background: var(--rp-gray-50);
}

/* SVG 아이콘 */
.icon-wrap .icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    color: var(--rp-gray-400);
    transition: color 0.15s ease;
}
.icon-wrap .icon-svg svg {
    width: 24px; height: 24px;
}

/* 라벨 텍스트 */
.icon-wrap .icon-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--rp-gray-600);
    transition: color 0.15s ease;
}

/* 이모지 아이콘 (하위 호환) */
.icon-wrap .emoji-icon {
    font-size: 22px;
    line-height: 1;
}
.icon-wrap i {
    font-size: 20px;
    color: var(--rp-gray-400);
    transition: color 0.15s ease;
}

/* ===== 선택 상태 ===== */
.report-reason-icons input[type="radio"]:checked + .icon-wrap {
    background: var(--rp-red);
    border-color: var(--rp-red);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.report-reason-icons input[type="radio"]:checked + .icon-wrap .icon-svg,
.report-reason-icons input[type="radio"]:checked + .icon-wrap i {
    color: #fff;
}
.report-reason-icons input[type="radio"]:checked + .icon-wrap .icon-label {
    color: #fff;
}
.report-reason-icons input[type="radio"]:checked + .icon-wrap .emoji-icon {
    filter: grayscale(1) brightness(10);
}

/* 키보드 포커스 */
.report-reason-icons input[type="radio"]:focus-visible + .icon-wrap {
    outline: 2px solid var(--rp-red);
    outline-offset: 2px;
}


/* ===== 기타 설명 textarea ===== */
.reason-etc-box { margin-top: 16px; }
.reason-etc-box textarea {
    width: 100%;
    border: 1.5px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-sm);
    padding: 10px 12px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rp-gray-800);
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}
.reason-etc-box textarea:focus {
    outline: none;
    border-color: var(--rp-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.reason-etc-box textarea::placeholder { color: var(--rp-gray-400); }


/* ===== 버튼 영역 ===== */
.report-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.report_btn_submit {
    padding: 10px 24px;
    background: var(--rp-red);
    color: #fff;
    border: none;
    border-radius: var(--rp-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.report_btn_submit:hover { background: var(--rp-red-hover); }
.report_btn_submit:active { transform: scale(0.97); }

.report_btn_cancel {
    padding: 10px 24px;
    background: var(--rp-gray-100);
    color: var(--rp-gray-700);
    border: none;
    border-radius: var(--rp-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}
.report_btn_cancel:hover { background: var(--rp-gray-200); }


/* ===== 안내문 ===== */
.report-notice {
    margin-top: 14px;
    padding: 10px 12px;
    background: var(--rp-gray-50);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-gray-500);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* ===== 신고 불가 가드 ===== */
.report-guard {
    text-align: center;
    padding: 10px 0;
}
.report-guard h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--rp-gray-800);
}
.report-guard p {
    color: var(--rp-gray-500);
    font-size: 14px;
}


/* ===== 게시글 신고 배지 ===== */
.report-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.report-count-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: var(--rp-red);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 0 2px #fff;
    z-index: 1;
}
.report-count-badge:empty,
.report-count-badge[data-count="0"] { display: none; }


/* ===== 댓글 신고 버튼/배지 ===== */
.cmt-report-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding-right: 1px;
    font-size: 13px;
    color: #666;
}
.cmt-report-badge {
    position: absolute;
    top: -6px; right: -15px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 9999px;
    background: var(--rp-red);
    color: #fff;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 0 2px #fff;
}
.cmt-report-badge:empty,
.cmt-report-badge[data-count="0"] { display: none; }

@media (max-width: 480px) {
    .report-count-badge { top: -8px; right: -8px; }
}


/* ===== 블라인드 처리 ===== */
.report-post-hidden-note {
    padding: 16px;
    background: var(--rp-gray-50);
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-gray-500);
    font-size: 14px;
    text-align: center;
}
.cmt-report-hidden-note {
    display: block;
    padding: 10px 12px;
    background: var(--rp-gray-50);
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-gray-500);
    font-size: 13px;
}


/* ===== 관리자 잠금 배너 ===== */
.report-admin-lock-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 12px 0 16px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 14px;
}
.report-admin-lock-banner .report-admin-badge {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rp-red);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}


/* ===== 환경설정 ===== */
.report-config .desc { color: var(--rp-gray-500); font-size: 12.5px; margin-top: 6px; }
.report-config .field { margin: 14px 0; }
.report-config .grid { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: center; }
.report-config .inline { display: flex; gap: 14px; align-items: center; }
.report-config textarea { width: 100%; height: 120px; }
.report-config .note { font-size: 12.5px; color: var(--rp-gray-700); background: var(--rp-gray-50); padding: 10px; border-radius: var(--rp-radius-sm); }


/* ===== 관리자 목록 ===== */
.report-admin .sch { margin: 0 0 15px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.report-admin .sch .sch-item { display: flex; flex-direction: column; gap: 4px; }
.report-admin .sch .grow { min-width: 220px; flex: 1; }
.report-admin .sch .period-range { display: flex; align-items: center; gap: 6px; }
.report-admin .sch .dash { color: var(--rp-gray-400); }
.report-admin .sch .period { flex-direction: row; align-items: center; }
.report-admin .sch .period .lab { margin-right: 8px; color: var(--rp-gray-700); }
.report-admin .sch .period .dash { margin: 0 6px; color: var(--rp-gray-400); }
.report-admin .sch .sch-date {
    height: 32px; padding: 0 8px;
    border: 1px solid var(--rp-gray-300); border-radius: 4px;
    min-width: 160px;
}
.report-admin .sch .frm_input,
.report-admin .sch select { height: 32px; line-height: 32px; }

.report-admin table { width: 100%; border-collapse: collapse; }
.report-admin th,
.report-admin td { border: 1px solid var(--rp-gray-200); padding: 8px 10px; font-size: 13px; vertical-align: middle; }
.report-admin th { background: var(--rp-gray-50); font-size: 11px; font-weight: 600; }

.report-admin .badge { display: inline-block; padding: 2px 6px; border-radius: 9999px; font-size: 11px; font-weight: 500; }
.badge.red { background: var(--rp-red); color: #fff; }
.badge.gray { background: var(--rp-gray-400); color: #fff; }
.badge.green { background: #10b981; color: #fff; }

/* 검색 버튼 */
.report-admin .btn.btn-search {
    height: 34px; padding: 0 14px;
    border: 1px solid #10b981; background: #10b981; color: #fff;
    border-radius: var(--rp-radius-sm); font-weight: 600;
    line-height: 34px; cursor: pointer;
}
.report-admin .btn.btn-search:hover { filter: brightness(0.95); }

/* 액션 바 */
.report-admin .report-admin-actions {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 0 8px; flex-wrap: wrap;
}
.report-admin .report-admin-actions .report-admin-total { font-size: 13px; color: var(--rp-gray-700); }
.report-admin .report-admin-actions-btns { display: flex; align-items: center; gap: 6px; }
.report-admin .report-admin-actions-btns .btn {
    height: 30px; padding: 0 10px;
    border: 1px solid var(--rp-gray-300); border-radius: var(--rp-radius-sm);
    background: #fff; cursor: pointer; font-size: 12px;
}
.report-admin .report-admin-actions-btns .btn:hover { background: var(--rp-gray-100); }

/* 잠금 셀 */
.report-admin td.actions { white-space: nowrap; text-align: center; }
.report-admin td.actions .lock-wrap { display: inline-flex; align-items: center; gap: 8px; }
.report-admin td.actions .badge { min-width: 36px; text-align: center; }
.report-admin td.actions button {
    height: 28px; padding: 0 10px;
    border: 1px solid var(--rp-gray-300); border-radius: var(--rp-radius-sm);
    background: #fff; cursor: pointer; font-size: 12px;
}
.report-admin td.actions button:hover { background: var(--rp-gray-100); }

/* 페이징 */
.report-admin .report-admin-footer { display: flex; justify-content: center; margin-top: 8px; }
.report-admin .report-admin-center { text-align: center; }
.report-admin .report-admin-center .pg_wrap { margin: 0 !important; }