/* =========================================================
   MARKTHYR – MYTHIC+ AFFIX WIDGET
   ========================================================= */

.mk-frontpage-affixes {
    padding: 24px;
    box-sizing: border-box;

    background: rgba(28, 28, 28, .15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    text-decoration: none;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* =========================================================
   HEADER
   ========================================================= */

.mk-affixes-header {
    margin-bottom: 22px;
}

.mk-affixes-title {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.mk-affixes-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 9px;
    background: var(--mk-orange);
    border-radius: 2px;
}


/* =========================================================
   AFFIX LISTE
   ========================================================= */

.mk-affixes-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}


/* =========================================================
   EINZELNES AFFIX
   ========================================================= */

.mk-affix {
    position: relative;
    min-width: 0;
}

.mk-affix-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: visible;
}

.mk-affix-image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border-radius: 9px;

    border: 1px solid #3b3b3b;

    background: #111;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        filter .2s ease;
}

.mk-affix:hover .mk-affix-image img {
    transform: translateY(-2px);
    filter: brightness(1.12);
}


/* =========================================================
   AFFIX LEVEL BADGE
   ========================================================= */

.mk-affix-level {
    position: absolute;
    top: -5px;
    left: -5px;

    z-index: 2;

    min-width: 34px;
    height: 22px;

    padding: 0 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    color: #ffffff;

    background: #222;

    border: 1px solid currentColor;

    box-shadow:
        0 2px 6px rgba(0,0,0,.45);
}


/* =========================================================
   FARBEN DER AFFIX-STUFEN
   ========================================================= */

/* +2 / +4 */
.mk-affix-level.green {
    color: #55ff6c;
    background: #016912;
}

/* +7 */
.mk-affix-level.orange {
    color: var(--mk-orange);
    background: var(--mk-orange);
}

/* +10 */
.mk-affix-level.red {
    color: #ff3d72;
    background: #7e0101;
}

/* +12 */
.mk-affix-level.purple {
    color: #b34cff;
    background: #4a0483;
}


/* =========================================================
   BESCHREIBUNG
   ========================================================= */

.mk-affix-description {
    background: #272727;
    border: 1px solid #373737;
    border-radius: 9px;

    padding: 14px;
}

.mk-affix-description-title {
    display: flex;
    align-items: baseline;
    gap: 7px;

    margin-bottom: 7px;
}

.mk-affix-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.mk-affix-level-text {
    color: #858585;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.mk-affix-description-text {
    margin: 0;

    color: #b9b9b9;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.65;
}


/* =========================================================
   BUTTON
   ========================================================= */

.mk-affixes-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 38px;

    box-sizing: border-box;

    background: #272727;
    border: 1px solid #383838;
    border-radius: 7px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.mk-affixes-button:hover {
    background: #303030;
    border-color: #00cfff;
    color: #00cfff;
    transform: translateY(-1px);
}

.mk-affixes-button-icon {
    color: #00cfff;
    font-size: 14px;
}

.mk-affixes-button-arrow {
    color: #00cfff;
    font-size: 17px;
    line-height: 1;

    transition: transform .2s ease;
}

.mk-affixes-button:hover .mk-affixes-button-arrow {
    transform: translateX(3px);
}


/* =========================================================
   LEER / FEHLER
   ========================================================= */

.mk-affixes-empty {
    padding: 18px;

    background: #272727;
    border: 1px solid #373737;
    border-radius: 9px;

    color: #888;
    text-align: center;

    font-size: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .mk-frontpage-affixes {
        padding: 20px;
    }

    .mk-affixes-list {
        gap: 8px;
    }

    .mk-affix-level {
        min-width: 30px;
        height: 20px;
        padding: 0 6px;
        font-size: 10px;
    }

    .mk-affix-description {
        padding: 13px;
    }

}

/* =========================================================
   AFFIX ICON
   ========================================================= */

.mk-frontpage-affixes .mk-affix {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.mk-frontpage-affixes .mk-affix-image {
    position: relative;

    width: 100%;
    height: 64px;

    display: block;

    overflow: visible;

    background: #303035;
    border: 1px solid #3d3d43;
    border-radius: 0;

    box-sizing: border-box;
}

.mk-frontpage-affixes .mk-affix-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    opacity: 1 !important;
    visibility: visible !important;

    border: 0 !important;
    border-radius: 7px !important;

    background: transparent !important;

    position: relative !important;
    z-index: 1 !important;
}

.mk-frontpage-affixes .mk-affix-level {
    position: absolute;

    top: -5px;
    left: 8px;

    z-index: 5;

    min-width: 34px;
    height: 21px;

    padding: 0 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    color: #fff;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, .5);
}
