@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 );
    }

	.map-change-reminder {
		padding: 10px 24px;
		align-items: center;
		justify-content: center;
		gap: 12px;
		background-color: rgba( $traitor-red, 0.22 );
		border-bottom: 1px solid rgba( $traitor-red, 0.5 );

		.map-change-reminder-label {
			font-size: 13px;
			font-weight: 800;
			letter-spacing: 1.5px;
			text-transform: uppercase;
			color: rgba( white, 0.95 );
		}

		.map-change-reminder-map {
			font-size: 16px;
			font-weight: 700;
			color: rgba( white, 0.92 );
		}
	}

    .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;
        min-height: 240px;
        max-height: 430px;
        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;
            }
        }
    }

    .summary-tabs {
        flex-direction: row;
        background-color: rgba( 30, 30, 30, 0.8 );
        border-bottom: 1px solid rgba( 255, 255, 255, 0.06 );
        pointer-events: all;

        .summary-tab {
            flex-grow: 1;
            justify-content: center;
            align-items: center;
            padding: 10px 16px;
            cursor: pointer;
            transition: background-color 0.15s;

            label {
                font-size: 13px;
                font-weight: 700;
                letter-spacing: 1.5px;
                text-transform: uppercase;
                color: rgba( 255, 255, 255, 0.55 );
            }

            &:hover {
                background-color: rgba( 255, 255, 255, 0.04 );
            }

            &.active {
                background-color: rgba( 15, 15, 15, 0.6 );
                border-bottom: 2px solid rgba( 250, 210, 55, 0.85 );

                label {
                    color: rgba( 255, 255, 255, 0.95 );
                }
            }
        }
    }

    .highlights-section {
        flex-direction: column;
        padding: 14px 20px 18px 20px;
        background-color: rgba( 15, 15, 15, 0.55 );
        min-height: 240px;
    }

    .highlights-empty {
        font-size: 13px;
        color: rgba( 255, 255, 255, 0.4 );
        text-align: center;
        font-style: italic;
        margin: 24px 0;
    }

    .highlights-grid {
        flex-direction: column;
        align-items: stretch;
        justify-content: space-evenly;
        width: 100%;
        flex-grow: 1;
    }

    .highlight-card {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .highlight-title {
        flex-basis: 36%;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba( 255, 255, 255, 0.55 );
        text-align: left;
    }

    .highlight-subtitle {
        flex-grow: 1;
        font-size: 12px;
        font-weight: 500;
        color: rgba( 255, 255, 255, 0.7 );
        text-align: center;
    }

    .highlight-player {
        flex-basis: 30%;
        font-size: 13px;
        font-weight: 700;
        color: rgba( 255, 255, 255, 0.55 );
        text-align: right;
    }

    // Tiered sizing + title/player grey→white ramp. Subtitle stays constant.
    .highlight-card.tier-common {
        .highlight-title {
            font-size: 9px;
            color: rgba( 255, 255, 255, 0.45 );
        }
        .highlight-player {
            font-size: 11px;
            color: rgba( 255, 255, 255, 0.45 );
        }
    }

    .highlight-card.tier-rare {
        .highlight-title {
            font-size: 13px;
            color: rgba( 255, 255, 255, 0.65 );
        }
        .highlight-player {
            font-size: 13px;
            color: rgba( 255, 255, 255, 0.65 );
        }
    }

    .highlight-card.tier-epic {
        .highlight-title {
            font-size: 16px;
            letter-spacing: 1.6px;
            color: rgba( 255, 255, 255, 0.85 );
        }
        .highlight-player {
            font-size: 17px;
            color: rgba( 255, 255, 255, 0.85 );
        }
    }

    .highlight-card.tier-legendary {
        .highlight-title {
            font-size: 20px;
            letter-spacing: 2.4px;
            color: rgba( 255, 255, 255, 1 );
        }
        .highlight-player {
            font-size: 22px;
            font-weight: 800;
            color: rgba( 255, 255, 255, 1 );
        }
    }

    .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 );
        }
    }
}
