﻿
:root {
    --bg-dark: #1e2230;
    --bg-panel: #292e42;
    --accent: #8ecdf2;
    --accent-glow: rgba(142, 205, 242, 0.5);
    --text-main: #ffffff;
    --text-muted: #b0b8d4;
    --border-color: #3b4361;
}

::-webkit-scrollbar {
    width: 0.2vw;
    height: 0.8vh;
    opacity: 50%;
    background-color: #1e2230;
}
::-webkit-scrollbar-track {
}
::-webkit-scrollbar-thumb {
    background: #8ecdf2;
    border-radius: 1vw;
    max-height: 2vh;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(142, 205, 242, 0.5);
    transition-duration: 0.3s;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #151824 100%);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

.header {
    background-color: rgba(41, 46, 66, 0.95);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.tg-btn {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #000;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tg-btn:hover {
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.7);
    transform: translateY(-1px);
}

.layout-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 120px;
    background-color: rgba(30, 34, 48, 0.8);
    border-right: 1px solid var(--border-color);
    padding: 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar h3 {
    display: none;
}

.icons-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.char-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    background-color: #1a1d29;
}

.char-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.char-item:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.char-item.active {
    border-color: #fff;
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-glow), 0 0 5px #fff;
    transform: scale(1.15);
}

.details-panel {
    flex: 1;
    padding: 0;
    background-color: var(--bg-panel);
    background-image:
            radial-gradient(circle at 80% 50%, rgba(142, 205, 242, 0.08) 0%, transparent 50%),
            radial-gradient(circle at bottom left, rgba(62, 70, 100, 0.3) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.guide-content {
    display: none;
    height: 100%;
    width: 100%;
    animation: fadeInSide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.guide-content.active-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes fadeInSide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.guide-info {
    flex: 1;
    padding: 60px;
    z-index: 2;
    max-width: 600px;
}

.hero-name {
    font-size: 4rem;
    margin: 0;
    line-height: 1;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(142, 205, 242, 0.3));
}

.meta-tag {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.last-edited {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.guide-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}
.guide-description ul {
    margin-top: 10px;
    color: #b0b8d4;
}

.guide-visual {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.char-full-img {
    height: 85%;
    margin-top: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;

    filter: drop-shadow(0 0 20px rgba(142, 205, 242, 0.2));

    transition: transform 0.4s ease;
}

.char-full-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(142, 205, 242, 0.4));
}

@media (max-width: 900px) {
    .guide-content.active-content {
        flex-direction: column-reverse;
        overflow-y: auto;
    }

    .guide-visual {
        width: 100%;
        height: 400px;
        align-items: center;
    }

    .char-full-img {
        height: 100%;
    }

    .guide-info {
        padding: 30px;
        text-align: center;
    }

    .hero-name {
        font-size: 2.5rem;
    }
}


hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 30px 0;
    opacity: 0.5;
}


.credits {
    margin-top: 40px;
    background: rgba(30, 34, 48, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.credits h4 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-weight: 600;
}

.credits a {
    color: var(--accent);
    font-weight: bold;
    position: relative;
}

.credits a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent);
}

.read-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: transparent;
    color: var(--accent);
    padding: 10px 30px;
    border: 2px solid var(--accent);
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.read-btn:hover {
    background-color: var(--accent);
    color: #1e2230;
    box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        background-color: var(--bg-dark);
    }

    .icons-grid {
        flex-direction: row;
        width: auto;
    }

    .char-item {
        flex-shrink: 0;
    }

    .details-panel {
        padding: 20px;
    }

    .guide-header {
        flex-direction: column;
        text-align: center;
    }

    .guide-header h2 {
        font-size: 2rem;
    }
}