﻿@import "/UI/Core/Styles/Theme.scss";

MapPage {
    width: 100%;
    min-height: 0;
    color: rgba( white, 0.88 );
    @include menu-font-body();

    .map-page {
        width: 100%;
        min-height: 0;
    }

    .map-page-shell {
        width: 100%;
        min-height: 0;
        flex-grow: 1;
        flex-direction: column;
        gap: 10px;
    }

    .map-page-topbar {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .map-page-top-left,
    .map-page-top-right {
        flex-grow: 1;
        min-width: 0;
    }

    .map-page-top-left {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .map-page-top-center {
        justify-content: center;
        align-items: center;
        padding-top: 4px;
    }

    .map-page-top-right {
        justify-content: flex-end;
        align-items: flex-start;
    }

    .map-page-title {
        font-size: 18px;
        letter-spacing: 2.1px;
        text-transform: uppercase;
        color: rgba( white, 0.92 );
        text-shadow: none;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
    }

    .map-page-search {
        width: 100%;
        max-width: 360px;
        min-width: 240px;
        flex-direction: column;
        gap: 4px;
    }

    .map-page-field-label {
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        color: rgba( white, 0.74 );
        text-shadow: none;
    }

    .map-page-search-input {
        width: 100%;

        .ui-text-entry {
            min-width: 0px;
            width: 100%;
            font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
            font-weight: 500;
            text-shadow: none;
            caret-color:red;

        }

        .content-label,
        .prefix-label,
        .suffix-label {
            color: rgba( white, 0.9 );
            font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
            font-weight: 500;
            text-shadow: none;
            padding-top: 2px;
            padding-bottom: 2px;
        }

        .placeholder {
            color: rgba( white, 0.68 );
            padding-top: 2px;
            padding-bottom: 2px;
            font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
            font-size: 13px;
            font-weight: 400;
            text-shadow: none;
        }

        .ui-text-entry:hover {
            background-color: rgba( 80, 80, 80, 0.6 );
        }
    }

    .map-page-tab-row {
        width: 100%;
        gap: 8px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .map-page-filter-group {
        gap: 8px;
        padding: 10px;
        flex-wrap: wrap;
    }

    .map-page-filter-spacer {
        flex-grow: 1;
    }

    .map-page-description {
        width: 100%;
        border-radius: 6px;
        border: 1px solid rgba( 255, 255, 255, 0.14 );
        background-color: rgba( 0, 0, 0, 0.22 );
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .map-page-description-text {
        flex-grow: 1;
        min-width: 0;
        color: rgba( 255, 255, 255, 0.86 );
        text-shadow: none;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.6px;
    }

    .map-page-size-description {
        margin-top: 0;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
        color: rgba( 255, 255, 255, 0.90 );
        text-shadow: none;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.4px;
    }

    UIButton .ui-button.map-page-close-button {
        min-width: 128px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        text-transform: uppercase;
        letter-spacing: 1.4px;
        text-shadow: none;
    }

    UIButton .ui-button.map-page-close-button > label {
        color: rgba( white, 0.92 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        text-shadow: none;
    }

    UIButton .ui-button.map-filter-button {
        min-width: 108px;
        justify-content: center;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        text-shadow: none;
        border: 1px solid rgba( 255, 255, 255, 0.2 );
        background-color: rgba( 0, 0, 0, 0.14 );
    }

    UIButton .ui-button.map-filter-button > label {
        color: rgba( white, 0.9 );
        text-shadow: none;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
    }

    UIButton .ui-button.map-filter-button:hover:not(.disabled) {
        background-color: rgba( white, 0.1 );
    }

    UIButton .ui-button.map-filter-button.selected,
    UIButton .ui-button.map-filter-button.active {
        border-color: rgba( $traitor-red, 0.6 );
        background-color: rgba( $traitor-red, 0.18 );
    }

    .map-page-loading {
        height: 120px;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: rgba( white, 0.8 );
        text-shadow: none;
    }

}
