/* =========================================================
   MELARK MAPS PAGE
   ========================================================= */

.maps-hero {
    position: relative;

    min-height: 560px;
    padding: 115px 0 95px;

    overflow: hidden;

    border-bottom:
        1px solid rgba(84, 233, 255, 0.1);

    background:
        radial-gradient(
            circle at 10% 40%,
            rgba(84, 233, 255, 0.09),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 45%,
            rgba(141, 108, 255, 0.12),
            transparent 30rem
        ),
        linear-gradient(
            135deg,
            rgba(3, 8, 18, 0.88),
            rgba(5, 17, 31, 0.74)
        );
}

.maps-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(84, 233, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(84, 233, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95),
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95),
            transparent
        );
}

.maps-hero::after {
    content: "";

    position: absolute;
    top: 70px;
    right: -120px;

    width: 500px;
    height: 500px;

    border:
        1px solid rgba(84, 233, 255, 0.1);

    border-radius: 50%;

    box-shadow:
        0 0 120px rgba(84, 233, 255, 0.08);

    animation:
        mapsHeroRotate 20s linear infinite;
}

@keyframes mapsHeroRotate {
    to {
        transform: rotate(360deg);
    }
}

.maps-hero-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
}

.maps-page-title {
    max-width: 900px;

    margin: 24px 0 22px;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size:
        clamp(3.2rem, 7vw, 6.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.maps-page-title span {
    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px var(--cyan);

    text-shadow:
        0 0 35px rgba(84, 233, 255, 0.2);
}

.maps-page-description {
    max-width: 850px;
    margin: 0;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.85;
}

.maps-summary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    max-width: 790px;
    margin-top: 40px;
}

.maps-summary-item {
    position: relative;

    min-height: 112px;
    padding: 21px 23px;

    overflow: hidden;

    background:
        linear-gradient(
            155deg,
            rgba(13, 33, 53, 0.82),
            rgba(5, 16, 29, 0.75)
        );

    border:
        1px solid rgba(84, 233, 255, 0.14);

    border-radius: 18px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.maps-summary-item::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 80px;
    height: 80px;

    background:
        radial-gradient(
            circle at top right,
            rgba(84, 233, 255, 0.12),
            transparent 70%
        );
}

.maps-summary-item strong {
    position: relative;
    z-index: 2;

    display: block;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.maps-summary-item span {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================================================
   MAP LIST
   ========================================================= */

.maps-list-section {
    position: relative;

    padding: 110px 0 125px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(84, 233, 255, 0.06),
            transparent 36rem
        );
}

.maps-list-section .section-heading {
    margin-bottom: 55px;
}

/* =========================================================
   MAP CARD
   ========================================================= */

.map-card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background:
        linear-gradient(
            155deg,
            rgba(11, 29, 48, 0.94),
            rgba(4, 14, 26, 0.9)
        );

    border:
        1px solid rgba(84, 233, 255, 0.13);

    border-radius: 24px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.map-card:hover {
    transform: translateY(-10px);

    border-color:
        rgba(84, 233, 255, 0.42);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.48),
        0 0 45px rgba(84, 233, 255, 0.08);
}

/* =========================================================
   MAP COVER
   ========================================================= */

.map-card-cover {
    position: relative;

    height: 220px;

    overflow: hidden;

    background-position: center;
    background-size: cover;
}

.map-card-cover::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.55;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 24px 24px;
}

.map-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(5, 15, 27, 0.98),
            rgba(5, 15, 27, 0.2) 70%
        );
}

.map-cover-ti {
    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(104, 255, 186, 0.45),
            transparent 17rem
        ),
        linear-gradient(
            145deg,
            #184837,
            #0b2530 54%,
            #102b43
        );
}

.map-cover-fj {
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(193, 232, 255, 0.52),
            transparent 18rem
        ),
        linear-gradient(
            145deg,
            #35657f,
            #142d47 55%,
            #0b1a2e
        );
}

.map-cover-rg {
    background:
        radial-gradient(
            circle at 75% 18%,
            rgba(255, 179, 86, 0.47),
            transparent 18rem
        ),
        linear-gradient(
            145deg,
            #613d22,
            #26304a 58%,
            #0d192b
        );
}

.map-cover-ab {
    background:
        radial-gradient(
            circle at 30% 35%,
            rgba(182, 93, 255, 0.5),
            transparent 18rem
        ),
        linear-gradient(
            145deg,
            #39205f,
            #172b48 58%,
            #091728
        );
}

.map-card-code {
    position: absolute;
    bottom: 15px;
    left: 21px;
    z-index: 3;

    color: rgba(255, 255, 255, 0.96);

    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;

    text-shadow:
        0 7px 30px rgba(0, 0, 0, 0.55);
}

.map-card-status {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 3;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border-radius: 999px;

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.map-card-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.map-card-status.online {
    color: var(--green);

    background:
        rgba(104, 255, 186, 0.09);

    border:
        1px solid rgba(104, 255, 186, 0.26);
}

.map-card-status.online span {
    background: var(--green);

    box-shadow:
        0 0 13px rgba(104, 255, 186, 0.75);
}

.map-card-status.maintenance {
    color: var(--yellow);

    background:
        rgba(255, 211, 106, 0.09);

    border:
        1px solid rgba(255, 211, 106, 0.27);
}

.map-card-status.maintenance span {
    background: var(--yellow);

    box-shadow:
        0 0 13px rgba(255, 211, 106, 0.65);
}

.map-card-status.offline {
    color: var(--red);

    background:
        rgba(255, 113, 137, 0.09);

    border:
        1px solid rgba(255, 113, 137, 0.27);
}

.map-card-status.offline span {
    background: var(--red);

    box-shadow:
        0 0 13px rgba(255, 113, 137, 0.65);
}

/* =========================================================
   MAP BODY
   ========================================================= */

.map-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 25px;
}

.map-card-label {
    display: block;

    margin-bottom: 7px;

    color: var(--cyan);

    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.map-card-heading h3 {
    margin: 0;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.map-card-description {
    min-height: 82px;
    margin: 17px 0 23px;

    color: var(--text-soft);

    font-size: 0.84rem;
    line-height: 1.72;
}

/* =========================================================
   PLAYER INFORMATION
   ========================================================= */

.map-player-information {
    padding: 16px;

    background:
        rgba(3, 12, 23, 0.58);

    border:
        1px solid rgba(84, 233, 255, 0.09);

    border-radius: 14px;
}

.map-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    color: var(--text-muted);

    font-size: 0.76rem;
}

.map-player-row strong {
    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.map-player-progress {
    height: 6px;
    margin-top: 11px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 999px;
}

.map-player-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--cyan)
        );

    box-shadow:
        0 0 17px rgba(84, 233, 255, 0.48);
}

/* =========================================================
   SERVER ADDRESS
   ========================================================= */

.map-server-address {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 15px;
    padding: 14px 15px;

    background:
        rgba(3, 12, 23, 0.62);

    border:
        1px solid rgba(84, 233, 255, 0.09);

    border-radius: 14px;
}

.map-server-address span {
    display: block;

    color: var(--text-muted);

    font-size: 0.65rem;
    font-weight: 700;
}

.map-server-address strong {
    display: block;

    margin-top: 3px;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 0.74rem;
}

.map-copy-button {
    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 39px;
    height: 39px;

    color: var(--cyan);

    background:
        rgba(84, 233, 255, 0.06);

    border:
        1px solid rgba(84, 233, 255, 0.18);

    border-radius: 11px;

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

.map-copy-button:hover {
    color: #03131d;

    background: var(--cyan);

    border-color: var(--cyan);

    transform: translateY(-2px);
}

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

.map-join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;
    margin-top: 17px;
    padding: 12px 17px;

    color: #03131d;

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--cyan)
        );

    border: 0;
    border-radius: 13px;

    box-shadow:
        0 14px 35px rgba(84, 233, 255, 0.17);

    font-size: 0.82rem;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.map-join-button:hover {
    color: #03131d;

    transform: translateY(-3px);

    box-shadow:
        0 20px 45px rgba(84, 233, 255, 0.3);
}

.map-join-button.unavailable {
    color: #62798b;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    box-shadow: none;

    cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .maps-hero {
        min-height: auto;
        padding-top: 105px;
        padding-bottom: 80px;
    }

    .maps-page-title {
        font-size:
            clamp(3.2rem, 10vw, 5.2rem);
    }

    .maps-list-section {
        padding-top: 90px;
        padding-bottom: 100px;
    }
}

@media (max-width: 767.98px) {
    .maps-summary {
        grid-template-columns: 1fr;
    }

    .maps-summary-item {
        min-height: auto;
    }

    .map-card-description {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .maps-hero {
        padding-top: 82px;
        padding-bottom: 70px;
    }

    .maps-page-title {
        margin-top: 20px;

        font-size: 3rem;
    }

    .maps-page-description {
        font-size: 0.92rem;
    }

    .maps-list-section {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .map-card-cover {
        height: 205px;
    }

    .map-card-body {
        padding: 21px;
    }

    .map-card-code {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maps-hero::after {
        animation: none;
    }
}