/* ============================================================================
   report.css — 통합 신고 모달(런닝구 폴리스) + 경광등 비콘
   전 페이지 공용. 라이트 기본 + html[data-theme="dark"] 오버라이드.
   ============================================================================ */

/* 경광등 비콘 (빨강↔파랑 교차 점멸) */
.ro-beacon { position: relative; width: 40px; height: 16px; display: inline-flex; gap: 3px; flex: 0 0 auto; }
.ro-beacon i { flex: 1; border-radius: 5px 5px 2px 2px; display: block; }
.ro-beacon i:first-child { background: #ef4444; animation: roBeaconR 0.9s steps(1) infinite; }
.ro-beacon i:last-child { background: #3b82f6; animation: roBeaconB 0.9s steps(1) infinite; }
@keyframes roBeaconR { 0% { opacity: 1; box-shadow: 0 0 12px 2px rgba(239,68,68,.9); } 50%, 100% { opacity: .22; box-shadow: none; } }
@keyframes roBeaconB { 0%, 50% { opacity: .22; box-shadow: none; } 51%, 100% { opacity: 1; box-shadow: 0 0 12px 2px rgba(59,130,246,.9); } }
@media (prefers-reduced-motion: reduce) { .ro-beacon i { animation: none !important; opacity: 1 !important; } }

/* 모달 */
.ro-report { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.ro-report[hidden] { display: none; }
@media (min-width: 620px) { .ro-report { align-items: center; } }
.ro-report__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 22, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: roRepFade .2s ease; }
@keyframes roRepFade { from { opacity: 0; } to { opacity: 1; } }
.ro-report__panel {
    position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
    background: #ffffff; color: #0f172a;
    border-radius: 22px 22px 0 0; box-shadow: 0 -10px 50px rgba(0,0,0,.4);
    animation: roRepUp .32s cubic-bezier(.16,1,.3,1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 620px) { .ro-report__panel { border-radius: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.45); } }
@keyframes roRepUp { from { transform: translateY(24px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }

/* 상단 바 (경찰 네이비) */
.ro-report__bar { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: linear-gradient(120deg, #0b1b3f, #16357a); color: #fff; border-radius: 22px 22px 0 0; position: sticky; top: 0; z-index: 1; }
@media (min-width: 620px) { .ro-report__bar { border-radius: 22px 22px 0 0; } }
.ro-report__emblem { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 8px; }
.ro-report__brand { display: flex; flex-direction: column; line-height: 1.15; flex: 1; min-width: 0; }
.ro-report__brand b { font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.ro-report__brand span { font-size: 11.5px; opacity: .8; }
.ro-report__x { flex: 0 0 auto; width: 32px; height: 32px; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; font-size: 20px; line-height: 1; cursor: pointer; }
.ro-report__x:hover { background: rgba(255,255,255,.26); }

/* 본문 */
.ro-report__body, .ro-report__done { padding: 18px 18px 20px; }
.ro-report__lead { font-size: 16px; font-weight: 800; margin: 0 0 3px; }
.ro-report__target { font-size: 12.5px; color: #64748b; margin: 0 0 14px; word-break: break-all; }
.ro-report__target:empty { display: none; margin: 0; }
.ro-report__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ro-report__cat { display: flex; align-items: center; gap: 7px; padding: 12px 12px; border: 1.5px solid #e6e9f0; border-radius: 13px; background: #f8fafc; color: #0f172a; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .12s, background .12s, transform .1s; text-align: left; }
.ro-report__cat:hover { border-color: #3b82f6; }
.ro-report__cat:active { transform: scale(.97); }
.ro-report__cat.is-sel { border-color: #ef4444; background: rgba(239,68,68,.08); color: #b91c1c; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.ro-report__cat-ic { font-size: 16px; }
.ro-report textarea { width: 100%; box-sizing: border-box; resize: none; border: 1.5px solid #e6e9f0; border-radius: 13px; padding: 11px 13px; font: inherit; font-size: 14px; line-height: 1.5; background: #f8fafc; color: #0f172a; margin-bottom: 14px; }
.ro-report textarea:focus { outline: none; border-color: #3b82f6; background: #fff; }
.ro-report__submit { width: 100%; border: 0; border-radius: 14px; padding: 13px; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 10px 24px -10px rgba(239,68,68,.7); transition: transform .1s, opacity .15s; }
.ro-report__submit:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ro-report__submit:not(:disabled):active { transform: scale(.98); }
.ro-report__note { font-size: 11.5px; color: #94a3b8; margin: 12px 2px 0; line-height: 1.5; }

/* 완료 */
.ro-report__done { text-align: center; }
.ro-report__done-ic { font-size: 46px; animation: roRepPop .5s cubic-bezier(.16,1,.3,1); }
.ro-report__done-emblem { width: 96px; height: 96px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.28)); animation: roRepPop .55s cubic-bezier(.16,1,.3,1); }
@keyframes roRepPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.ro-report__done h3 { font-size: 18px; font-weight: 900; margin: 8px 0 6px; }
.ro-report__done p { font-size: 13.5px; color: #64748b; margin: 0 0 18px; line-height: 1.6; }

/* 다크 모드 */
html[data-theme="dark"] .ro-report__panel { background: #12161d; color: #e7ebf0; }
html[data-theme="dark"] .ro-report__target { color: #94a3b8; }
html[data-theme="dark"] .ro-report__cat { background: #1b222b; border-color: #2a323d; color: #e7ebf0; }
html[data-theme="dark"] .ro-report__cat.is-sel { background: rgba(239,68,68,.16); color: #fca5a5; }
html[data-theme="dark"] .ro-report textarea { background: #1b222b; border-color: #2a323d; color: #e7ebf0; }
html[data-theme="dark"] .ro-report textarea:focus { background: #12161d; }
html[data-theme="dark"] .ro-report__done p { color: #94a3b8; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .ro-report__panel { background: #12161d; color: #e7ebf0; }
    html:not([data-theme="light"]) .ro-report__cat { background: #1b222b; border-color: #2a323d; color: #e7ebf0; }
    html:not([data-theme="light"]) .ro-report textarea { background: #1b222b; border-color: #2a323d; color: #e7ebf0; }
}
body:has(.ro-report:not([hidden])) { overflow: hidden; }
