@import "/UI/Core/Styles/Theme.scss";
@import "/UI/Core/Kit/Styles/UITokens.scss";

ExtrasPage {
    width: 100%;
    min-height: 0;
    color: rgba( white, 0.88 );
    @include menu-font-body();

    .extras-page {
        width: 100%;
        min-height: 0;
        flex-grow: 1;
        justify-content: center;
        align-items: flex-start;
    }

    .extras-page-shell {
        @include menu-surface();
        width: 100%;
        max-width: 980px;
        max-height: 100%;
        min-height: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 12px;
        flex-direction: column;
        gap: 14px;
        overflow: hidden;
    }

    .extras-page-topbar {
        position: relative;
        width: 100%;
        flex-direction: row;
        align-items: center;
        flex-grow: 0;
        flex-shrink: 0;
    }

    .extras-page-top-left,
    .extras-page-top-right {
        z-index: 1;
        min-width: 0;
    }

    .extras-page-top-left {
        justify-content: flex-start;
    }

    .extras-page-top-right {
        flex-grow: 1;
    }

    .extras-page-top-center {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        justify-content: center;
        align-items: center;
        pointer-events: none;
    }

    .extras-page-title {
        font-size: 30px;
        font-weight: 700;
        letter-spacing: 2.6px;
        text-transform: uppercase;
        color: rgba( 240, 232, 225, 0.94 );
        text-shadow:
            1px 0px 0px rgba( $traitor-red, 0.10 ),
            -1px 0px 0px rgba( 80, 160, 200, 0.18 ),
            0px 0px 20px rgba( $traitor-red, 0.12 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
    }

    UIButton .ui-button.extras-page-back-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.extras-page-back-button > label {
        color: rgba( white, 0.92 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        text-shadow: none;
    }

    .extras-page-content {
        width: 100%;
        min-height: 0;
        flex-direction: column;
        gap: 18px;
        flex-grow: 1;
        overflow-y: scroll;
    }

    .extras-section {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        flex-grow: 0;
        flex-shrink: 0;
    }

    .extras-section-heading {
        width: 100%;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid rgba( 255, 255, 255, 0.14 );
        padding-bottom: 8px;
    }

    .extras-section-title {
        color: rgba( 255, 255, 255, 0.94 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        text-shadow: none;
    }

    .extras-section-note {
        color: rgba( 255, 255, 255, 0.62 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: none;
    }

    .extras-social-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    UIButton .ui-button.extras-social-button {
        min-width: 178px;
        min-height: 44px;
        justify-content: center;
        border-radius: 5px;
        border-color: rgba( 255, 255, 255, 0.18 );
        background-color: rgba( 0, 0, 0, 0.16 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        text-transform: uppercase;
        letter-spacing: 1.2px;
        text-shadow: none;
    }

    UIButton .ui-button.extras-social-button > label {
        color: rgba( white, 0.9 );
        text-shadow: none;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
    }

    UIButton .ui-button.extras-social-button:hover:not(.disabled) {
        background-color: rgba( $blurple, 0.12 );
        border-color: rgba( $blurple, 0.42 );
    }

    UIButton .ui-button.extras-copy-button.copied,
    UIButton .ui-button.extras-copy-button.copied:hover:not(.disabled) {
        background-color: rgba( $innocent-green, 0.12 );
        border-color: rgba( $green, 0.52 );
    }

    .extras-loading {
        width: 100%;
        min-height: 96px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba( 255, 255, 255, 0.12 );
        border-radius: 6px;
        background-color: rgba( 0, 0, 0, 0.16 );
    }

    .extras-loading > label {
        color: rgba( 255, 255, 255, 0.68 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: none;
    }

    .extras-game-grid {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .extras-game-card {
        @include menu-surface-alt();
        width: 300px;
        height: 226px;
        padding: 0;
        flex-direction: column;
        flex-grow: 0;
        flex-shrink: 0;
        overflow: hidden;
        border-color: rgba( 255, 255, 255, 0.18 );
        cursor: pointer;
        transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
    }

    .extras-game-card:hover {
        transform: translateY( -1px );
        border-color: rgba( 255, 255, 255, 0.28 );
        background-color: rgba( 255, 255, 255, 0.06 );
    }

    .extras-game-card:active {
        transform: scale( 0.985 );
    }

    .extras-game-thumb {
        width: 100%;
        height: 168px;
        background-color: rgba( 255, 255, 255, 0.04 );
        background-size: cover;
        background-position: center;
        border-bottom: 1px solid rgba( 255, 255, 255, 0.16 );
        padding: 8px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .extras-game-type {
        color: rgba( 255, 255, 255, 0.92 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        text-shadow: none;
        border-radius: 999px;
        border: 1px solid rgba( 255, 255, 255, 0.24 );
        background-color: rgba( 0, 0, 0, 0.58 );
        padding: 2px 8px;
        max-width: 120px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .extras-game-body {
        width: 100%;
        height: 58px;
        padding: 10px 12px;
        flex-direction: column;
        gap: 2px;
        overflow: hidden;
    }

    .extras-game-title {
        color: rgba( 255, 255, 255, 0.94 );
        text-shadow: none;
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .extras-game-org {
        color: rgba( 255, 255, 255, 0.72 );
        font-family: "Dinish", "Dinish-Regular", "Dinish-Bold";
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.4px;
        text-shadow: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
