@import "/UI/Core/Styles/Theme.scss";

ServerInfoPage {
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 32px;

    .server-info-card {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 24px 28px;
        min-width: 360px;
        max-width: 1440px;
        max-height: 86vh;
        background-color: rgba( 0, 0, 0, 0.4 );
    }

    .server-info-header {
        width: 100%;
        justify-content: center;
        align-items: center;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba( 255, 255, 255, 0.1 );
    }

    .server-info-heading,
    .server-info-subheading {
        @include menu-eyebrow( $color: rgba( 255, 255, 255, 0.92 ), $size: 13px, $tracking: 2.2px );
        text-align: center;
    }

    .server-info-sections {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        align-content: flex-start;
        gap: 10px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: scroll;
        padding-right: 6px;
    }

    .info-section {
        width: 49%;
        flex-grow: 0;
        flex-shrink: 0;
        flex-direction: column;
        gap: 8px;
        padding: 12px 12px 12px 14px;
        background-color: rgba( 255, 255, 255, 0.025 );
        border: 1px solid rgba( 255, 255, 255, 0.08 );
        border-left: 3px solid rgba( $counter-terror-color, 0.6 );
        border-radius: 4px;
    }

    // Per-section accent colors. Each section type gets a distinct hue on its
    // left-border stripe, section eyebrow, and a subtle background tint so
    // adjacent cards are easy to tell apart at a glance.
    .info-section--lobby {
        background-color: rgba( $counter-terror-color, 0.02 );
        border-left-color: rgba( $counter-terror-color, 0.7 );
        .section-eyebrow { color: rgba( $counter-terror-color, 0.85 ); }
    }

    .info-section--gameplay {
        background-color: rgba( 200, 200, 200, 0.04 );
        border-left-color: rgba( 200, 200, 200, 0.5 );
        .section-eyebrow { color: rgba( 230, 230, 230, 0.8 ); }
    }

    .info-section--time {
        background-color: rgba( 255, 120, 55, 0.02 );
        border-left-color: rgba( 255, 120, 55, 0.85 );
        .section-eyebrow { color: rgba( 255, 130, 65, 0.95 ); }
    }

    .info-section--roles {
        background-color: rgba( $traitor-red, 0.02 );
        border-left-color: rgba( $traitor-red, 0.7 );
        .section-eyebrow { color: rgba( $traitor-red, 0.85 ); }
    }

    .info-section--visuals {
        background-color: rgba( 180, 140, 220, 0.02 );
        border-left-color: rgba( 180, 140, 220, 0.75 );
        .section-eyebrow { color: rgba( 180, 140, 220, 0.9 ); }
    }

    .info-section--karma {
        background-color: rgba( 245, 225, 60, 0.02 );
        border-left-color: rgba( 245, 225, 60, 0.85 );
        .section-eyebrow { color: rgba( 245, 225, 60, 0.95 ); }
    }

    .info-section--forensics {
        background-color: rgba( 130, 200, 130, 0.02 );
        border-left-color: rgba( 130, 200, 130, 0.7 );
        .section-eyebrow { color: rgba( 130, 200, 130, 0.9 ); }
    }

    .info-section--movement {
        background-color: rgba( 120, 180, 230, 0.02 );
        border-left-color: rgba( 120, 180, 230, 0.75 );
        .section-eyebrow { color: rgba( 120, 180, 230, 0.9 ); }
    }

    .info-section--moderation {
        background-color: rgba( 230, 130, 180, 0.02 );
        border-left-color: rgba( 230, 130, 180, 0.7 );
        .section-eyebrow { color: rgba( 230, 130, 180, 0.9 ); }
    }

    .info-section--communication {
        background-color: rgba( 100, 200, 200, 0.02 );
        border-left-color: rgba( 100, 200, 200, 0.7 );
        .section-eyebrow { color: rgba( 100, 200, 200, 0.9 ); }
    }

    .info-section--spectator {
        background-color: rgba( 160, 160, 180, 0.02 );
        border-left-color: rgba( 160, 160, 180, 0.7 );
        .section-eyebrow { color: rgba( 200, 200, 220, 0.9 ); }
    }

    .info-section--map-vote {
        background-color: rgba( 220, 180, 100, 0.02 );
        border-left-color: rgba( 220, 180, 100, 0.75 );
        .section-eyebrow { color: rgba( 220, 180, 100, 0.9 ); }
    }

    .section-eyebrow {
        @include menu-eyebrow( $color: rgba( 255, 255, 255, 0.62 ), $size: 12px, $tracking: 1.8px );
        padding-bottom: 2px;
    }

    .info-row {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 8px 12px;
        background-color: rgba( 255, 255, 255, 0.03 );
        border: 1px solid rgba( 255, 255, 255, 0.02 );
        border-radius: 4px;
    }

    .info-label {
        @include menu-eyebrow( $color: rgba( 255, 255, 255, 0.8 ), $size: 12px, $tracking: 1.6px );
        flex-shrink: 0;
    }

    .info-value {
        @include menu-copy( $color: rgba( 255, 255, 255, 1.0 ), $size: 14px, $tracking: 0.3px );
        font-family: "Dinish-Regular", "Dinish";
        font-weight: 500;
        text-align: right;
        min-width: 0;
        flex-grow: 1;
    }

    .info-value.value-disabled {
        color: rgba( $warning-orange, 0.92 );
    }

    .info-empty {
        @include menu-copy( $color: rgba( 255, 255, 255, 0.92 ), $size: 14px, $tracking: 0.3px );
        padding: 8px 12px;
        background-color: rgba( 255, 255, 255, 0.03 );
        border: 1px solid rgba( 255, 255, 255, 0.06 );
        border-radius: 4px;
    }
}
