@import "/UI/Core/Styles/Theme.scss";

RoundSummary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 500;

    root {
        justify-content: center;
        align-items: center;
        transform: scale( 0.92 );
        transition: opacity 0.6s ease, transform 0.5s ease;
    }

    root.visible {
        transform: scale( 1 );
    }

    .summary-panel {
        width: 700px;
        max-width: 80%;
        flex-direction: column;
        background-color: rgba( 20, 20, 20, 0.92 );
        backdrop-filter: blur( 40px );
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 4 20px 60px rgba( 0, 0, 0, 0.7 );
        border: 1px solid rgba( 255, 255, 255, 0.08 );
    }

    .banner {
        padding: 24px 32px;
        justify-content: center;
        align-items: center;

        .banner-text {
            font-size: 42px;
            font-weight: 800;
            color: white;
            letter-spacing: 3px;
            text-transform: uppercase;
            text-shadow: 2 2px 4px rgba( 0, 0, 0, 0.5 );
            text-stroke-width: 4px;
            text-stroke-color: rgba( 0, 0, 0, 0.25 );
        }
    }

    .banner.team-innocent {
        background-color: $innocent-green;
    }

    .banner.team-traitor {
        background-color: $traitor-red;
    }

    .banner.team-detective {
        background-color: rgba( 47, 79, 115, 1 );
    }

    .banner.team-generic {
        background-color: rgba( 80, 80, 80, 0.9 );
    }

    .info-line {
        padding: 10px 24px;
        justify-content: space-between;
        align-items: center;
        background-color: rgba( 40, 40, 40, 0.8 );
        border-bottom: 1px solid rgba( 255, 255, 255, 0.06 );

        label {
            font-size: 15px;
            font-weight: 500;
            color: rgba( 255, 255, 255, 0.6 );
        }

    }

    .events-list {
        flex-direction: column;
        padding: 8px 0;
        max-height: 300px;
        overflow-y: scroll;
        pointer-events: all;

        .event-entry {
            padding: 8px 24px;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            white-space: nowrap;
            overflow: hidden;

            &:hover {
                background-color: rgba( 255, 255, 255, 0.03 );
            }

            &.teamkill {
                background-color: rgba( $red, 0.08 );
            }

            .player {
                font-size: 16px;
                font-weight: 700;
                color: rgba( 255, 255, 255, 0.9 );
            }

            .method {
                font-size: 14px;
                font-weight: 400;
                color: rgba( 255, 255, 255, 0.5 );
                flex-shrink: 0;
            }

            .headshot-tag {
                font-size: 12px;
                font-weight: 700;
                color: $red;
                padding: 1px 5px;
                border: 1px solid $red;
                border-radius: 4px;
            }
        }
    }

    .footer {
        padding: 6px 24px;
        justify-content: center;
        align-items: center;
        background-color: rgba( 40, 40, 40, 0.8 );
        border-top: 1px solid rgba( 255, 255, 255, 0.06 );

        .dismiss-hint {
            font-size: 11px;
            color: rgba( 255, 255, 255, 0.6 );
        }
    }
}
