/* newPvp.css - 전체 코드 */

#new-pvp-modal .modal-content {
  max-width: 1600px;
  width: 98%;
  height: 95vh;
  background-color: var(--bg-color-dark);
  border: 2px solid var(--primal-color);
  box-shadow: 0 0 50px rgba(0, 230, 210, 0.3);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* 로비 스타일 */
#new-pvp-lobby {
    text-align: center;
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#new-pvp-my-rp { font-size: 3em; color: gold; font-weight: bold; margin: 20px 0; }

/* 아레나 (전투 화면) */
#new-pvp-arena {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.new-pvp-arena-container {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 20px;
    align-items: center;
    flex-grow: 0;
}

.new-pvp-player-panel {
    background: rgba(0,0,0,0.4);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative; 
}

.new-pvp-player-name {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}
.my-name { color: #34c759; }
.opponent-name { color: #ff3b30; }

/* 체력바 스타일 */
.new-pvp-resource-bar {
    height: 50px;
    background: #222;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    border: 3px solid #000;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 3; 
}
.new-pvp-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #ff4d4d, #ff0000);
    transition: width 0.2s ease;
}
.new-pvp-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.8em;
    color: white;
    text-shadow: 2px 2px 4px black;
}

/* 쉴드바 스타일 */
.new-pvp-resource-bar.shield-bar {
    display: none; 
    height: 30px;
    margin-top: -15px; 
    margin-bottom: 15px;
    background: #333;
    border: 2px solid #00a8ff;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    z-index: 2; 
}

.new-pvp-resource-bar.shield-bar .new-pvp-bar-inner {
    background: linear-gradient(90deg, #00a8ff, #0097e6);
    transition: width 0.3s ease;
}

.new-pvp-resource-bar.shield-bar .new-pvp-bar-text {
    font-size: 1.2em;
    color: #fff;
    text-shadow: 0 0 3px #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* VS 텍스트 */
.pvp-vs-text {
    align-self: center;
    text-align: center;
    font-size: 4em;
    font-weight: 900;
    color: #555;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* 전투 로그 (대화형 UI) */
#new-pvp-combat-log {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 12px;
    overflow-y: auto;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.pvp-log-entry {
    max-width: 85%;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.2em;
    line-height: 1.4;
    position: relative;
    word-break: keep-all;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(5px); }
}

/* === [왼쪽] 나의 행동 === */
.log-left {
    align-self: flex-start;
    background: rgba(41, 128, 185, 0.25);
    border: 1px solid rgba(52, 152, 219, 0.5);
    border-left: 5px solid #3498db;
    text-align: left;
    border-top-left-radius: 0;
    color: #d6eaf8;
}

/* === [오른쪽] 적의 행동 === */
.log-right {
    align-self: flex-end;
    background: rgba(192, 57, 43, 0.25);
    border: 1px solid rgba(231, 76, 60, 0.5);
    border-right: 5px solid #e74c3c;
    text-align: right;
    border-top-right-radius: 0;
    color: #fadbd8;
}

/* 텍스트 강조 */
.skill-name {
    display: block;
    font-weight: 900;
    font-size: 1.0em;
    margin-bottom: 4px;
    opacity: 1;
    color: #fff;
}

.highlight-good { color: #2ecc71; font-weight: bold; } 
.highlight-bad { color: #ff4d4d; font-weight: bold; }
.highlight-crit { color: #f1c40f; font-weight: 900; text-shadow: 0 0 5px #e67e22; }
.highlight-info { color: #bdc3c7; font-size: 0.9em; }
.highlight-special { color: #9b59b6; font-weight: bold; }
.highlight-danger { color: #ff0000; font-weight: bold; text-shadow: 0 0 3px #ff0000; }

/* 결과 화면 */
#new-pvp-result {
    text-align: center;
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#new-pvp-result-title { font-size: 5em; margin-bottom: 30px; font-weight: 900; }

/* 기타 숨김 처리 */
.pvp-gear-section,
.new-pvp-buff-display {
    display: none !important;
}

/* 모바일 대응 */
@media (max-width: 1024px) {
    .new-pvp-arena-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .pvp-vs-text { display: none; }
    #new-pvp-combat-log { font-size: 1.1em; }
}