/* Character Page specific styles */
.characters-page { overflow: hidden; height: 100vh; }
.char-container { display: flex; height: 100vh; padding-top: 80px; }

/* Sidebar */
.char-sidebar {
    width: 350px; background: rgba(7, 7, 9, 0.95); border-right: 1px solid rgba(212, 175, 55, 0.15);
    overflow-y: auto; padding: 2rem 0 5rem; z-index: 10; backdrop-filter: blur(10px);
}
.char-sidebar::-webkit-scrollbar { width: 4px; }
.char-sidebar::-webkit-scrollbar-thumb { background: var(--color-gold-dim); }

.faction-group { margin-bottom: 2.5rem; }
.faction-title {
    font-size: 0.85rem; color: var(--color-gold); letter-spacing: 3px;
    padding: 0 2rem; margin-bottom: 1.5rem; border-left: 2px solid var(--color-gold);
    text-transform: uppercase; font-family: var(--font-display);
}
.char-list { list-style: none; }
.char-list li {
    padding: 1rem 2rem 1rem 3.5rem; color: #888; font-size: 1.1rem;
    cursor: pointer; transition: all 0.3s; position: relative;
    font-weight: 300; letter-spacing: 1px;
}
.char-list li::before {
    content: ''; position: absolute; left: 2rem; top: 50%; transform: translateY(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: transparent; transition: all 0.3s;
}
.char-list li:hover { color: #fff; background: rgba(255,255,255,0.03); }
.char-list li.active { color: #fff; background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent); font-weight: 700; }
.char-list li.active::before { background: var(--color-gold); box-shadow: 0 0 10px var(--color-gold); }

/* Main Content */
.char-main { flex: 1; position: relative; overflow: hidden; background: #000; }
.char-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center top;
    filter: blur(20px) brightness(0.2) saturate(1.2); transform: scale(1.1);
    transition: background-image 0.8s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1;
}
.char-bg::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at right, transparent 0%, #000 100%);
}

.char-content {
    position: relative; z-index: 2; height: 100%; display: flex;
    align-items: center; padding: 0 4rem; justify-content: space-between;
}

.char-info { 
    flex: 0 1 500px; opacity: 1; transition: all 0.5s ease;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 3rem; border-radius: 20px;
}
.char-info.fade { opacity: 0; transform: translateX(-30px); }

.char-faction { color: var(--color-gold); font-family: var(--font-display); letter-spacing: 4px; font-size: 1rem; margin-bottom: 1rem; opacity: 0.8; }
.char-name { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 0.5rem; color: #fff; text-shadow: 0 5px 20px rgba(0,0,0,0.8); }
.char-subtitle { font-size: 1.2rem; color: #aaa; margin-bottom: 3rem; letter-spacing: 2px; }
.char-desc { font-size: 1.05rem; line-height: 1.9; color: #ddd; border-left: 2px solid var(--color-gold); padding-left: 1.5rem; }
.char-desc p { margin-bottom: 1.2rem; }
.char-desc p:last-child { margin-bottom: 0; }

.char-visual { 
    flex: 1; height: 90%; display: flex; justify-content: flex-end; align-items: flex-end;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); padding-right: 5rem;
}
.char-visual.fade { opacity: 0; transform: translateX(50px) scale(0.95); filter: blur(10px); }

.char-visual img { 
    max-height: 100%; max-width: 100%; object-fit: contain; 
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.8)); 
    mask-image: linear-gradient(to top, transparent 0%, black 15%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
}

@media (max-width: 1024px) {
    .char-container { flex-direction: column; overflow-y: auto; }
    .char-sidebar { width: 100%; height: auto; padding: 1rem; border-right: none; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
    .char-content { flex-direction: column-reverse; justify-content: flex-end; padding: 2rem; overflow-y: auto; }
    .char-visual { height: 50vh; justify-content: center; padding-right: 0; }
    .char-info { background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); }
}
