﻿@import "/ui/Hud/Style.scss";

CharacterMenu {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: $fullscreen-bg;
    backdrop-filter: $fullscreen-blur;
    pointer-events: all;
    transition: opacity 0.5s ease-in-out;
    font-family: 'Geneva', sans-serif;

    &:intro {
        opacity: 0;
    }

    .top {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url('/ui/hud/background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.85;
        z-index: -10;

        

        .top2 {
            position: absolute;
            top: 5%;
            left: 12.5%;
            width: 20.5%;
            height: 85%;
            background-image: url('/ui/hud/background3.gif');
            opacity: 0.6;
            z-index: -5;
            border-radius: 12px;
           
            backdrop-filter: blur(3px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .top3 {
            position: absolute;
            top: 5%;
            left: 35%;
            width: 41.5%;
            height: 85%;
            background-image: url('/ui/hud/background2.gif');
            opacity: 0.6;
            z-index: -5;
            border-radius: 12px;
        
            backdrop-filter: blur(3px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
    }

    .section {
        position: absolute;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 10;

        

        .char {
            position: absolute;
            top: 7%;
            left: 50%;
            width: 25%;
            height: 55%;
            background-color: rgba(0, 0, 0, 0.6);
            border-radius: 15px;
            overflow: hidden;
          
            border: 1px solid rgba(0, 157, 255, 0.3);

            
        }

        
    }

    .header2 {
        top: 3.2%;
        left: 35.9%;
        gap: 15px;
        position: absolute;
        height: 5%;
        width: 25%;
        z-index: 500;
        color: rgb(255, 255, 255);
        flex-direction: row;

        .head,
        .sidestats,
        .resist {
            position: relative;
            height: 50%;
            font-size: 16px;
            top: -20%;
            gap: 5px;
            padding: 10px 15px;
            background: linear-gradient(to bottom,
                    rgba(60, 60, 90, 0.7) 0%,
                    rgba(20, 20, 40, 0.5) 100%);
            border-radius: 10px 10px 0 0;
            color: rgb(255, 255, 255);
            border: 1px solid rgba(255, 255, 255, 0.15);
           
            font-weight: 600;
            transition: all 0.2s ease;
          
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(2px);

            &:hover {
                color: rgb(255, 255, 255);
                background: linear-gradient(to bottom,
                        rgba(80, 80, 150, 0.7) 0%,
                        rgba(40, 40, 100, 0.5) 100%);
                transform: translateY(-3px);
             
                text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
            }
        }
    }

    .stats,
    .statsone,
    .statstwo {
        position: absolute;
        flex-direction: column;
        height: 70%;
        width: 13%;
        z-index: 1;
        left: 35.5%;
        top: 6%;
        gap: 15px;
        transition: opacity 0.3s ease;

        &:intro {
            opacity: 0;
        }

        .stats2,
        .stats3,
        .stats4 {
            position: relative;
            align-items: center;
            justify-content: space-between;
            font-size: 16px;
            padding: 12px;
            background: linear-gradient(to right,
                    rgba(20, 20, 30, 0.7) 0%,
                    rgba(40, 40, 60, 0.7) 50%,
                    rgba(8, 0, 0, 0.7) 100%);
            border-radius: 10px;
            color: rgb(255, 254, 254);
            border: 1px solid rgba(143, 143, 143, 0.2);
            transition: all 0.2s ease;
          
            backdrop-filter: blur(4px);

            &:hover {
                transform: translateX(5px);
                
                border: 1px solid rgba(200, 200, 255, 0.3);
                background: linear-gradient(to right,
                        rgba(30, 30, 50, 0.8) 0%,
                        rgba(50, 50, 80, 0.8) 50%,
                        rgba(20, 0, 0, 0.8) 100%);
            }

            .n {
                position: relative;
                color: rgb(255, 255, 255);
                font-size: 20px;
                font-weight: 700;
                text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
            }

            li {
                display: flex;
                align-items: center;
                gap: 8px;
            }
        }

        .tooltip-text {
            opacity: 0;
            position: absolute;
            justify-content: center;
            align-items: center;
            z-index: 100;
            left: 110%;
            width: 160%;
            gap: 10px;
            color: rgb(255, 255, 255);
            font-size: 13px;
            background: linear-gradient(135deg,
                    rgba(60, 60, 90, 0.95) 0%,
                    rgba(30, 30, 60, 0.95) 100%);
            border-radius: 10px;
            padding: 15px;
           
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            transform: translateX(-10px);
            pointer-events: none;

            .header {
                font-size: 20px;
                color: rgb(180, 210, 255);
                font-weight: 700;
                margin-bottom: 10px;
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
                text-align: center;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                padding-bottom: 8px;
            }

            p {
                margin: 5px 0;
                color: rgba(255, 255, 255, 0.9);
                text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
            }
        }

        .stats2:hover .tooltip-text,
        .stats3:hover .tooltip-text,
        .stats4:hover .tooltip-text {
            opacity: 1;
            transform: translateX(0);
            z-index: 100;
            flex-direction: column;
        }
    }

    .section2 {
        position: relative;
        height: 85%;
        left: 13%;
        width: 19%;
        top: 6%;
        z-index: 10;

        .items {
            background-color: rgba(222, 218, 211, 0);
            flex-direction: column;
            z-index: 10;

            .playerst {
                width: 100%;
                height: 98%;
                z-index: 10;
                gap: 15px;
                font-family: Geneva;
                flex-direction: column;
                font-size: 15px;
                justify-content: center;

                .playe1,
                .playe4,
                .playe3,
                .playe2 {
                    z-index: 10;
                    flex-direction: column;
                    width: 100%;
                    gap: 8px;
                    padding: 15px;
                    background: linear-gradient(to right,
                            rgba(0, 0, 0, 0.6) 0%,
                            rgba(15, 21, 75, 0.5) 50%,
                            rgba(0, 0, 0, 0.6) 100%);
                    border-radius: 12px;
                    color: rgb(255, 254, 254);
                    border: 1px solid rgba(100, 100, 255, 0.2);
                    justify-content: center;
                    
                    backdrop-filter: blur(3px);
                    transition: all 0.2s ease;

                    &:hover {
                        transform: translateY(-3px);
                       
                        background: linear-gradient(to right,
                                rgba(0, 0, 0, 0.7) 0%,
                                rgba(25, 35, 100, 0.6) 50%,
                                rgba(0, 0, 0, 0.7) 100%);
                    }

                    .li {
                        width: 100%;
                        font-size: 20px;
                        color: rgb(200, 220, 255);
                        font-weight: bold;
                        justify-content: center;
                        font-style: italic;
                        text-align: center;
                        
                        text-transform: uppercase;
                        text-shadow: 0 2px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(100, 150, 255, 0.5);
                        letter-spacing: 1px;
                        padding: 5px 0;
                        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                        margin-bottom: 5px;
                    }

                    .nu {
                        width: 100%;
                        font-size: 18px;
                        color: rgb(255, 200, 50);
                        font-weight: 700;
                        justify-content: center;
                        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
                        text-align: center;
                    }

                    .Vyndn {
                        width: 100%;
                        font-size: 24px;
                        color: rgb(0, 180, 220);
                        justify-content: center;
                        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 180, 220, 0.5);
                        text-align: center;
                        padding: 5px;
                    }
                }
            }
        }
    }
}

@keyframes blink {
    0% {
        color: rgb(255, 255, 255);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }

    50% {
        color: rgb(0, 255, 100);
        text-shadow: 0 0 20px rgba(0, 255, 100, 0.6), 0 0 30px rgba(0, 255, 100, 0.4);
    }

    100% {
        color: rgb(255, 255, 255);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

// Zusätzliche Animationen für Hover-Effekte
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.n:hover {
    animation: pulse 1s infinite ease-in-out;
}