/* 레이아웃 및 디자인 (그누보드 기본 요소 숨김 및 전체 배경) */
#hd, #aside, .hd_wrapper, #tnb, #gnb, #container_title, .btn_top { display: none !important; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; margin: 0; padding: 0; background: #f1f5f9; }
#wrapper, #container { width: 100%; padding: 0; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }

/* 상단 경고 바 애니메이션 */
.top-warning-bar {
    width: 100%; background: #fee2e2; border-bottom: 1px solid #fecaca; color: #dc2626; padding: 14px 20px;
    text-align: center; font-weight: 800; font-size: 17px; letter-spacing: -0.5px; animation: bar-pulse 2s infinite;
}
@keyframes bar-pulse { 0% { background-color: #fee2e2; } 50% { background-color: #ffe4e6; } 100% { background-color: #fee2e2; } }

/* 메인 레이아웃 카드 */
.rd-main-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0; }
.app-card { width: 100%; max-width: 1200px; background: #fff; border-radius: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.08); overflow: hidden; }

/* 히어로 섹션 (왼쪽 설명, 오른쪽 업로드) */
.jeonse-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; width: 100%; }
.story-section { padding: 35px 5% 50px 5%; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); }
.logo-box { margin-bottom: 20px; }
.logo-box-content { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 24px; background: #3b82f6; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 26px !important; font-weight: 900; color: #0f172a; letter-spacing: -1px; }
.big-title { font-size: 2.8rem !important; font-weight: 900; line-height: 1.2; margin-bottom: 25px; color: #0f172a; word-break: keep-all; }
.big-title .highlight { color: #2563eb; }
.story-text { font-size: 20px !important; color: #475569; line-height: 1.8; margin-bottom: 30px; }
.story-text strong { color: #dc2626; font-weight: 800; }

/* 위험 알림 박스 */
.danger-box { background: #fff; border: 2px solid #fecaca; border-radius: 16px; padding: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.danger-title { font-size: 19px !important; font-weight: 900; color: #dc2626; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.danger-list { list-style: none; padding: 0; }
.danger-list li { padding: 6px 0 6px 30px; position: relative; color: #475569; font-size: 16px !important; }
.danger-list li::before { content: '⚠️'; position: absolute; left: 0; }

/* 업로드 및 주소 입력 섹션 */
.upload-section { padding: 50px 6%; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.stats-row { display: flex; gap: 10px; margin-bottom: 30px; }
.stat-item { flex: 1; background: #eff6ff; border: 1px solid #bfdbfe; padding: 12px 5px; border-radius: 12px; text-align: center; }
.stat-value { font-size: 20px !important; font-weight: 900; color: #2563eb; }
.stat-label { font-size: 11px !important; color: #64748b; font-weight: 700; }

.address-input {
    width: 100%;
    /* 폰트 크기를 기존보다 대폭 키움 (16px~18px 권장) */
    font-size: 18px !important; 
    font-weight: 700 !important;
    color: #1e293b;
    
    /* 터치하기 편하게 높이와 안쪽 여백을 늘림 */
    padding: 18px 20px !important;
    height: auto !important;
    
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background-color: #f8fafc;
    
    /* 가독성을 위해 자간 살짝 조절 */
    letter-spacing: -0.03em;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.address-input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.address-input::placeholder {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
}
.btn-search { width: 100%; height: 55px; margin-top: 10px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border: none; border-radius: 12px; font-size: 17px; font-weight: 800; cursor: pointer; }

.drop-zone { border: 3px dashed #d1e5ff; border-radius: 24px; padding: 40px 20px; background: #f0f7ff; text-align: center; cursor: pointer; transition: 0.3s; }
.drop-zone:hover { background: #e0efff; border-color: #3b82f6; }
.btn-main { display: block; width: 100%; max-width: 400px; margin: 15px auto; padding: 20px; border: none; border-radius: 15px; font-size: 19px !important; font-weight: 900; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; cursor: pointer; }

/* 리스크 그리드 카드 */
.risk-grid-container { width: 100%; max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.risk-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.risk-item-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 15px; padding: 15px; text-align: left; }
.risk-item-card h4 { font-size: 18px !important; font-weight: 800; color: #333; margin: 10px 0; }
.risk-item-card p { font-size: 14px !important; color: #666; line-height: 1.5; }

.section-divider { border: 0; height: 1.5px; background-color: #d1d5db !important; margin: 30px auto; max-width: 1200px; display: block !important; clear: both; }

/* 실시간 분석 현황 섹션 */
.live-section { background: #f8fafc; padding: 60px 20px; border-top: 1px solid #e2e8f0; width: 100%; display: flex; justify-content: center; }
.live-container { width: 100%; max-width: 1200px; } 
.live-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; border-bottom: 2px solid #0f172a; padding-bottom: 15px; }
.live-title { font-size: 24px !important; font-weight: 900; color: #0f172a; margin: 0; }
.live-badge { color: #ef4444; font-size: 14px; margin-left: 5px; vertical-align: middle; animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.live-subtitle { font-size: 14px; color: #64748b; font-weight: 600; }
.live-list { display: flex; flex-direction: column; gap: 8px; }
.live-item { background: #fff; padding: 20px 25px; border-radius: 12px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.live-subject-row { display: flex; align-items: center; gap: 12px; }
.live-subject { font-size: 16px !important; font-weight: 700; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-status-tag { flex-shrink: 0; background: #ecfdf5; color: #10b981; padding: 3px 10px; border-radius: 6px; font-size: 12px !important; font-weight: 800; border: 1px solid #a7f3d0; }
.live-time { font-size: 14px; color: #94a3b8; font-weight: 600; flex-shrink: 0; margin-left: 20px; }

/* 반응형 모바일 설정 */
@media (max-width: 768px) {
    .jeonse-hero { grid-template-columns: 1fr !important; }
    .risk-grid-inner { grid-template-columns: 1fr !important; }
    .live-subject { max-width: 180px; }
}