/* 팝업 전광판 카드 디자인 */
.issue-card {
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 45px 25px 25px; /* 상단 여백을 늘려 닫기 버튼과 제목 겹침 방지 */
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid #20b2aa;
    box-shadow: 0 0 25px rgba(32, 178, 170, 0.5), inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
}

.close-btn-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 44px;
    text-align: center;
    transition: transform 0.1s, color 0.2s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}
.close-btn-modal:hover { color: #ff4444; }
.close-btn-modal:active { transform: scale(0.9); }

.date-badge { color: #20b2aa; font-weight: bold; font-size: 0.95rem; margin-bottom: 10px; }
.issue-card h2 { font-size: 1.4rem; margin-bottom: 20px; line-height: 1.4; word-break: keep-all; }
.img-wrapper img { width: 100%; border-radius: 8px; margin-bottom: 20px; border: 1px solid #333; }

/* [FIX] 이슈 본문은 복사 가능하도록 user-select 예외 처리 */
.issue-text {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    word-break: keep-all;
    text-align: left;
    white-space: pre-wrap;
    user-select: text;
}

/* 상단 툴팁 가이드 */
.header-btn-wrap { position: relative; display: flex; }
.issue-guide-tooltip {
    position: absolute;
    top: 55px; left: 50%;
    background: #20b2aa; color: #fff;
    padding: 8px 12px; border-radius: 8px;
    font-size: 0.85rem; font-weight: bold;
    white-space: nowrap; pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 100;
    animation: bounceGuide 1s infinite;
}
.issue-guide-tooltip::before {
    content: ''; position: absolute;
    top: -5px; left: 50%; margin-left: -5px;
    border-width: 0 5px 5px 5px; border-style: solid;
    border-color: transparent transparent #20b2aa transparent;
}
@keyframes bounceGuide {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

/* 투표 UI */
.vote-section { background: #1a1a1a; padding: 20px; border-radius: 12px; border: 1px solid #333; }
.vote-section h3 { text-align: center; margin-bottom: 15px; font-size: 1.1rem; }
.vote-buttons { display: flex; gap: 10px; margin-bottom: 15px; }
.vote-btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; color: white; font-size: 1rem; transition: transform 0.1s; }
.vote-btn:active { transform: scale(0.95); }
.vote-btn.agree { background: #2196F3; box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3); }
.vote-btn.disagree { background: #F44336; box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3); }
.vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.vote-result { margin-top: 10px; }
.progress-bar { width: 100%; height: 12px; background: #444; border-radius: 6px; display: flex; overflow: hidden; margin-bottom: 8px; }
.bar.agree-bar { background: #2196F3; transition: width 0.5s; }
.bar.disagree-bar { background: #F44336; transition: width 0.5s; }
.vote-counts { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: bold; }
#agreeCount { color: #2196F3; }
#disagreeCount { color: #F44336; }

/* 토스트 알림 — style.css에서 중복 제거 후 이곳이 단일 정의 */
.toast {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(32, 178, 170, 0.95); /* 기본: 틸 색상 */
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    z-index: 50;
    text-align: center;
    font-weight: bold;
    animation: fadeInOut 3s forwards;
}
/* 도배 방지 토스트: 주황-빨강 */
#spamToast { background: rgba(255, 87, 34, 0.95); }
/* 서버 연결 끊김 토스트: 진한 빨강 */
#reconnectToast { background: rgba(244, 67, 54, 0.95); }

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translate(-50%, -10px); }
    10%  { opacity: 1; transform: translate(-50%, 0); }
    90%  { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -10px); }
}