/* features.php: the "Game Features" hub (hero, database, classes, equipment lab, regions by level, server systems). */

.ft {
    position: relative;
    background: #0b0906;
}

.ft-kicker {
    display: inline-block;
    color: var(--mf-gold);
    font-size: .78rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    opacity: .9;
}

.ft-h2 {
    margin: 8px 0 12px;
    color: #f7efdd;
    font-family: var(--mf-head);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: .04em;
}

.ft-lead {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--mf-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.ft-head {
    margin: 0 auto 26px;
    max-width: 720px;
    text-align: center;
}

.ft-head .ft-lead {
    margin-inline: auto;
}

.ft-head .ft-h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--mf-gold), transparent);
    box-shadow: 0 0 16px rgba(214, 176, 106, .45);
}

.ft-center {
    margin-top: 24px;
    text-align: center;
}

/* ---- buttons ---- */
.ft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    color: #f1e1bd;
    font-weight: 700;
    text-decoration: none;
    background: rgba(16, 12, 8, .72);
    border: 1px solid rgba(214, 176, 106, .38);
    border-radius: 3px;
    backdrop-filter: blur(6px);
    transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}

.ft-btn:hover {
    color: #fff3d1;
    background: rgba(214, 176, 106, .12);
    border-color: rgba(214, 176, 106, .7);
    transform: translateY(-2px);
}

.ft-btn--gold {
    color: #1a1206;
    background: linear-gradient(180deg, #f1d79a, #c99a4a);
    border-color: #f1d79a;
    box-shadow: 0 10px 26px rgba(201, 154, 74, .25);
}

.ft-btn--gold:hover {
    color: #1a1206;
    background: linear-gradient(180deg, #f7e2ad, #d6a656);
    box-shadow: 0 14px 30px rgba(201, 154, 74, .35);
}

.ft-arrow {
    display: inline-flex;
}

.ft-flip svg {
    transform: scaleX(-1);
}

/* ---- hero ---- */
.ft-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 70px;
    min-height: 560px;
}

.ft-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 9, 6, .92) 0%, rgba(11, 9, 6, .62) 45%, rgba(11, 9, 6, .2) 100%),
        linear-gradient(180deg, rgba(11, 9, 6, .3) 0%, transparent 40%, #0b0906 100%),
        #0b0906 url("../../img/features/hero.jpg") center / cover no-repeat;
}

[dir="rtl"] .ft-hero__bg {
    background:
        linear-gradient(270deg, rgba(11, 9, 6, .92) 0%, rgba(11, 9, 6, .62) 45%, rgba(11, 9, 6, .2) 100%),
        linear-gradient(180deg, rgba(11, 9, 6, .3) 0%, transparent 40%, #0b0906 100%),
        #0b0906 url("../../img/features/hero.jpg") center / cover no-repeat;
}

.ft-hero__inner {
    position: relative;
    z-index: 1;
}

.ft-hero__title {
    margin: 12px 0 16px;
    color: #f7efdd;
    font-family: var(--mf-head);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: .05em;
    text-transform: uppercase;
    text-shadow: 0 10px 36px rgba(0, 0, 0, .7);
}

.ft-hero__text {
    max-width: 600px;
    margin: 0 0 28px;
    color: #e6d8b8;
    font-size: 1.08rem;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.ft-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 150px));
    gap: 12px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.ft-stats li {
    padding: 14px 16px;
    background: rgba(16, 12, 8, .66);
    border: 1px solid rgba(214, 176, 106, .2);
    border-top-color: rgba(214, 176, 106, .45);
    border-radius: 3px;
    backdrop-filter: blur(8px);
}

.ft-stats b {
    display: block;
    color: #f1d79a;
    font-family: var(--mf-head);
    font-size: 1.7rem;
    line-height: 1.1;
}

.ft-stats span {
    display: block;
    margin-top: 4px;
    color: #b9a985;
    font-size: .82rem;
    line-height: 1.35;
}

/* ---- page body ---- */
.ft-page {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    padding-top: 64px;
    padding-bottom: 30px;
}

.ft-section {
    margin: 0 0 70px;
}

/* framed panels with a picture behind (database, equipment lab) */
.ft-panel {
    position: relative;
    overflow: hidden;
    margin: 0 0 70px;
    background: rgba(16, 12, 8, .92);
    border: 1px solid rgba(214, 176, 106, .16);
    border-top-color: rgba(214, 176, 106, .38);
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.ft-panel__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: .38;
}

.ft-panel__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 12, 8, .96) 0%, rgba(16, 12, 8, .82) 50%, rgba(16, 12, 8, .35) 100%);
}

[dir="rtl"] .ft-panel__bg::after {
    background: linear-gradient(270deg, rgba(16, 12, 8, .96) 0%, rgba(16, 12, 8, .82) 50%, rgba(16, 12, 8, .35) 100%);
}

.ft-panel__body {
    position: relative;
    z-index: 1;
    padding: 42px 44px;
}

.ft-panel--lab .ft-panel__body {
    max-width: 640px;
}

.ft-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 860px;
    margin: 0 0 26px;
}

.ft-cat {
    padding: 8px 14px;
    color: #d9c9a4;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(214, 176, 106, .2);
    border-radius: 3px;
    transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.ft-cat:hover {
    color: #fff3d1;
    background: rgba(214, 176, 106, .12);
    border-color: rgba(214, 176, 106, .55);
    transform: translateY(-2px);
}

/* ---- classes ---- */
.ft-classes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.ft-class {
    flex: 0 0 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 12px 18px;
    color: #e6d8b8;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent 55%), rgba(16, 12, 8, .9);
    border: 1px solid rgba(214, 176, 106, .14);
    border-top-color: rgba(214, 176, 106, .32);
    border-radius: 4px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.ft-class:hover {
    color: #fff3d1;
    transform: translateY(-4px);
    border-color: rgba(214, 176, 106, .45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 22px rgba(214, 176, 106, .12);
}

.ft-class__icon {
    width: 64px;
    height: 64px;
    background: url("../../img/landing/classes-icons.png") no-repeat;
    background-size: 704px 64px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .55));
}

.ft-class__icon--1 { background-position: 0 0; }
.ft-class__icon--2 { background-position: -64px 0; }
.ft-class__icon--3 { background-position: -128px 0; }
.ft-class__icon--4 { background-position: -192px 0; }
.ft-class__icon--5 { background-position: -256px 0; }
.ft-class__icon--6 { background-position: -320px 0; }
.ft-class__icon--7 { background-position: -384px 0; }
.ft-class__icon--8 { background-position: -448px 0; }
.ft-class__icon--9 { background-position: -512px 0; }
.ft-class__icon--10 { background-position: -576px 0; }

.ft-class__icon--11 {
    background: url("../../img/landing/class-duelist.png") center / contain no-repeat;
    filter: brightness(1.8) contrast(1.05) drop-shadow(0 6px 12px rgba(0, 0, 0, .55));
}

.ft-class__name {
    font-weight: 700;
    letter-spacing: .02em;
}

/* ---- regions ---- */
.ft-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 30px;
    margin: 0 0 30px;
}

.ft-split .ft-lead {
    margin: 0 0 10px;
}

.ft-split .ft-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ft-big {
    margin: 12px 0 0;
    color: #efe3c8;
    font-family: var(--mf-head);
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ft-tabs {
    display: none;
    grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 28px;
    padding: 6px;
    background: rgba(9, 8, 14, .72);
    border: 1px solid rgba(214, 176, 106, .14);
    border-radius: 2px;
}

.js .ft-tabs {
    display: grid;
}

.ft-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
    color: #9d907a;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}

.ft-tab__label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ft-tab:hover {
    color: #e6d6b4;
    background: rgba(214, 176, 106, .05);
}

.ft-tab.is-active {
    color: #f1e1bd;
    background: linear-gradient(180deg, rgba(214, 176, 106, .12), rgba(214, 176, 106, .04));
    border-color: rgba(214, 176, 106, .45);
}

.ft-tab__n {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #8f8471;
    font-size: .72rem;
    letter-spacing: 0;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.ft-tab.is-active .ft-tab__n {
    color: #1a1206;
    background: linear-gradient(145deg, #ecd08e, #b68a42);
}

.ft-regions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ft-region {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, .03), transparent 48%), rgba(16, 12, 8, .9);
    border: 1px solid rgba(214, 176, 106, .12);
    border-top-color: rgba(214, 176, 106, .3);
    border-radius: 4px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.ft-region[hidden] {
    display: none;
}

.ft-region:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 176, 106, .34);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 26px rgba(214, 176, 106, .12);
}

.ft-region__img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #17120c;
}

.ft-region__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.ft-region:hover .ft-region__img img {
    transform: scale(1.05);
}

.ft-region__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11, 9, 6, .7) 100%);
}

.ft-region__wait {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: rgba(214, 176, 106, .5);
    font-family: var(--mf-head);
    font-size: 1.1rem;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    background: radial-gradient(circle at 50% 40%, rgba(214, 176, 106, .08), transparent 60%), linear-gradient(160deg, #17120c, #0c0a08);
}

.ft-region__no {
    position: absolute;
    z-index: 1;
    top: 12px;
    inset-inline-end: 12px;
    padding: 5px 8px;
    color: #d8ccb4;
    font-size: .74rem;
    line-height: 1;
    letter-spacing: .04em;
    background: rgba(18, 16, 20, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 2px;
}

.ft-region__lv {
    margin: 16px 0 0;
    padding-top: 12px;
    color: #c4ad7f;
    font-size: .86rem;
    font-weight: 600;
    border-top: 1px solid rgba(214, 176, 106, .12);
}

.ft-region__only {
    position: absolute;
    z-index: 1;
    top: 14px;
    inset-inline-end: 14px;
    padding: 4px 10px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    background: linear-gradient(145deg, #9b7bff, #5a3fc4);
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.ft-region__body {
    padding: 18px 20px 22px;
}

.ft-region__name {
    margin: 0 0 10px;
    color: #f5ead2;
    font-family: var(--mf-head);
    font-size: 1.22rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ft-region__text {
    margin: 0;
    color: var(--mf-muted);
    font-size: .94rem;
    line-height: 1.6;
}

.ft-region--mf {
    border-color: rgba(155, 123, 255, .3);
    border-top-color: rgba(155, 123, 255, .6);
}

/* ---- server systems ---- */
.ft-mf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ft-mfcard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: radial-gradient(circle at 0 0, rgba(155, 123, 255, .1), transparent 50%), rgba(16, 12, 8, .9);
    border: 1px solid rgba(214, 176, 106, .12);
    border-top-color: rgba(214, 176, 106, .3);
    border-radius: 4px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

a.ft-mfcard:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 176, 106, .34);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 26px rgba(214, 176, 106, .12);
}

.ft-mfcard__img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0b16;
}

.ft-mfcard__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ft-mfcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 22px;
}

.ft-mfcard__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #1b140a;
    background: linear-gradient(145deg, #ecd08e, #a97f3a);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.ft-mfcard__title {
    color: #f5ead2;
    font-family: var(--mf-head);
    font-size: 1.2rem;
}

.ft-mfcard__text {
    color: var(--mf-muted);
    font-size: .94rem;
    line-height: 1.6;
}

.ft-mfcard__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--mf-gold);
    font-weight: 700;
    font-size: .9rem;
}

.ft-mfcard--icon .ft-mfcard__body {
    padding-top: 26px;
}

/* ---- call to action ---- */
.ft-cta {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    text-align: center;
}

.ft-cta__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #0b0906 0%, rgba(11, 9, 6, .55) 35%, rgba(11, 9, 6, .55) 65%, #0b0906 100%),
        #0b0906 url("../../img/features/bg-cta.jpg") center / cover no-repeat;
}

.ft-cta__inner {
    position: relative;
    z-index: 1;
}

.ft-cta .ft-lead {
    margin-inline: auto;
    color: #e6d8b8;
}

.ft-cta .ft-actions {
    justify-content: center;
}

/* ---- smaller screens ---- */
@media (max-width: 1000px) {
    .ft-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .js .ft-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ft-regions,
    .ft-mf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .js .ft-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-hero {
        padding: 96px 0 48px;
        min-height: 0;
    }

    .ft-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-regions,
    .ft-mf {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-panel__body {
        padding: 30px 22px;
    }

    .ft-classes {
        gap: 10px;
    }

    .ft-class {
        flex-basis: calc(33.333% - 7px);
        padding: 16px 8px 14px;
    }
}
