/* Entrada de estilos exclusiva da aba Mercado. */
@import url("../app/mercado.css");

.mercado-screen {
    min-width: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--club-primary, #0f9f6e) 72%, #000000) 0%,
        color-mix(in srgb, var(--club-primary, #0f9f6e) 42%, #000000) 24%,
        color-mix(in srgb, var(--club-primary, #0f9f6e) 18%, #000000) 68%,
        color-mix(in srgb, var(--club-primary, #0f9f6e) 6%, #000000) 100%);
}

.mercado-screen [aria-busy="true"] {
    min-height: 6rem;
}

.mercado-search-button {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    align-self: end;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 800;
    border: 1px solid #0d6efd;
    background: #0d6efd !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: none;
    mix-blend-mode: normal;
}

.mercado-filtros,
.mercado-filtros > *,
.mercado-filtros label,
.mercado-filtros select,
.mercado-filtros input,
.mercado-filtros .mercado-search-button {
    opacity: 1 !important;
}

.mercado-search-button:hover:not(:disabled),
.mercado-search-button:focus-visible {
    background: #0b5ed7 !important;
    color: #fff !important;
    filter: brightness(1.08);
}

.mercado-search-button:disabled {
    cursor: wait;
    background: #0d6efd !important;
    color: #fff !important;
    opacity: 1 !important;
    filter: none;
}

.mercado-search-button i,
.mercado-search-button span {
    color: inherit !important;
    opacity: 1 !important;
}

body[data-theme] .mercado-filtros .mercado-search-button,
body[data-theme] .mercado-filtros .mercado-search-button:disabled {
    border-color: #0d6efd !important;
    background: #0d6efd !important;
    background-color: #0d6efd !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1 !important;
}

.mercado-paginacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .25rem;
}

.mercado-pag-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.25rem;
    padding: .5rem .9rem;
    border-radius: .5rem;
    border: 1px solid rgb(63 63 70);
    background: rgb(24 24 27 / .7);
    color: rgb(228 228 231);
    font-size: .8rem;
    font-weight: 700;
}

.mercado-pag-btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.mercado-pag-info {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: rgb(161 161 170);
}

.player-sheet--market [data-aplicar-olheiro].player-sheet-training-btn {
    border-color: rgba(192, 132, 252, 0.48);
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.player-sheet--market [data-aplicar-olheiro].player-sheet-training-btn:hover {
    border-color: rgba(216, 180, 254, 0.72);
    background: rgba(147, 51, 234, 0.32);
    color: #f3e8ff;
}

.mercado-tecnico-detail {
    gap: 1rem;
}

.mercado-tecnico-hero {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1rem;
    border: 1px solid rgba(16, 185, 129, .28);
    border-radius: .875rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(24, 24, 27, .94) 62%);
}

.mercado-tecnico-hero__icon {
    display: grid;
    width: 3.75rem;
    height: 3.75rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, .4);
    border-radius: .875rem;
    background: rgba(5, 150, 105, .2);
    color: rgb(110 231 183);
    font-size: 1.55rem;
    box-shadow: inset 0 0 20px rgba(16, 185, 129, .12);
}

.mercado-tecnico-hero__identity {
    min-width: 0;
}

.mercado-tecnico-hero__identity > span,
.mercado-tecnico-section-title {
    color: rgb(110 231 183);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mercado-tecnico-hero__identity h3 {
    overflow: hidden;
    margin: .1rem 0;
    color: rgb(250 250 250);
    font-size: 1.2rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mercado-tecnico-hero__identity p {
    color: rgb(161 161 170);
    font-size: .76rem;
}

.mercado-tecnico-costs {
    display: grid;
    gap: .5rem;
}

.mercado-tecnico-costs > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: .7rem .8rem;
    border: 1px solid rgb(39 39 42);
    border-radius: .65rem;
    background: rgba(24, 24, 27, .78);
}

.mercado-tecnico-costs span {
    color: rgb(161 161 170);
    font-size: .78rem;
    font-weight: 700;
}

.mercado-tecnico-costs strong {
    color: rgb(250 204 21);
    font-size: .86rem;
    text-align: right;
}

.mercado-tecnico-section-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
}

.mercado-tecnico-attrs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.mercado-tecnico-attr {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .65rem;
    border: 1px solid rgb(63 63 70);
    border-radius: .65rem;
    background: rgb(24 24 27);
}

.mercado-tecnico-attr > i {
    color: rgb(161 161 170);
    text-align: center;
}

.mercado-tecnico-attr > span {
    overflow: hidden;
    color: rgb(212 212 216);
    font-size: .73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mercado-tecnico-attr > strong {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    font-size: 1.1rem;
}

.mercado-tecnico-attr > strong small {
    color: rgb(161 161 170);
    font-size: .62rem;
}

.mercado-tecnico-attr--a > strong { color: rgb(74 222 128); }
.mercado-tecnico-attr--b > strong { color: rgb(125 211 252); }
.mercado-tecnico-attr--c > strong { color: rgb(250 204 21); }
.mercado-tecnico-attr--d > strong { color: rgb(251 146 60); }
.mercado-tecnico-attr--e > strong { color: rgb(248 113 113); }
.mercado-tecnico-attr--f > strong { color: rgb(161 161 170); }

.mercado-tecnico-scout {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid rgba(168, 85, 247, .42);
    border-radius: .7rem;
    background: rgba(126, 34, 206, .2);
    color: rgb(233 213 255);
    text-align: left;
    transition: border-color .2s ease, background-color .2s ease;
}

.mercado-tecnico-scout:hover {
    border-color: rgba(192, 132, 252, .68);
    background: rgba(147, 51, 234, .3);
}

.mercado-tecnico-scout > i {
    font-size: 1.1rem;
}

.mercado-tecnico-scout span,
.mercado-tecnico-scout small {
    display: block;
}

.mercado-tecnico-scout small {
    margin-top: .1rem;
    color: rgb(216 180 254);
    font-size: .67rem;
}

@media (max-width: 420px) {
    .mercado-tecnico-attrs {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .player-sheet--market .player-sheet-card {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
    }

    .player-sheet--market .jogador-card-stage--sheet {
        flex: none;
        height: auto;
    }

    .player-sheet--market .player-sheet-info {
        position: relative;
        z-index: 1;
    }
}
