/**
 * Page chrome for the [modpack_constructor] shortcode: the dark page
 * background and the "Build Your Modded Server" hero title.
 *
 * These are rendered by WordPress (outside the app's Shadow DOM), so the styles
 * are reproduced here from the Vue source's Tailwind classes. Values resolved
 * from the build: --text-display:128px, --spacing:.25rem (gap-55=13.75rem,
 * gap-60=15rem, -ml-30=-7.5rem, h-64=16rem), .title-gradient as below.
 */

/* font-black (900). The theme ships Gilroy 300–800 only, so add the Black cut. */
@font-face {
    font-family: "Gilroy";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../font/Gilroy-Black.woff") format("woff");
}

/* Body background only on pages carrying the shortcode (body class added in PHP). */
body.has-modpack-constructor {
    background: #0c0a20;
}

/* Breadcrumbs (ported from .minecraft-seeds-hero__breadcrumbs in
   css/new/minecraft-seeds.css, which isn't enqueued on this page). */
.mc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #fff;
}

.mc-breadcrumbs a {
    color: #8d8fac;
    text-decoration: none;
}

.mc-breadcrumbs a:hover {
    text-decoration: underline;
}

.mc-breadcrumbs li:not(:last-child)::after {
    content: " / ";
    margin-left: 2px;
}

/* header.relative.flex.flex-col.items-center */
.mc-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 16px 0;
}

/* h1.relative.text-center.text-display.font-black.leading-none.text-white */
.mc-title__heading {
    position: relative;
    margin: 0;
    text-align: center;
    font-family: "Gilroy", sans-serif;
    font-weight: 900;
    font-size: 128px; /* text-display */
    line-height: 1; /* leading-none */
    color: #fff; /* text-white */
}

/* span.title-gradient.flex.items-center.justify-center.gap-55 */
.mc-title__line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13.75rem; /* gap-55 */
    /* .title-gradient — white fading to #16142a, clipped to the text */
    color: #fff;
    background-image: linear-gradient(#fff, #fff 50%, #16142a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* second line: .-ml-30.gap-60 */
.mc-title__line--offset {
    gap: 15rem; /* gap-60 */
}

/* img.pointer-events-none.absolute.left-1/2.top-1/2.z-10.h-64.w-auto
   .-translate-x-1/2.-translate-y-1/2.select-none.drop-shadow-2xl */
.mc-title__joystick {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    height: 16rem; /* h-64 */
    width: auto;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); /* drop-shadow-2xl */
}

@media (max-width: 1024px) {
    .mc-title__heading {
        font-size: clamp(3rem, 11vw, 128px);
    }
    .mc-title__line {
        gap: 18vw;
    }
    .mc-title__line--offset {
        gap: 20vw;
        margin-left: -10vw;
    }
    .mc-title__joystick {
        height: clamp(8rem, 22vw, 16rem);
    }
}

@media (max-width: 600px) {
    .mc-title {
        padding-top: 40px;
    }
    .mc-title__heading {
        font-size: clamp(2.25rem, 13vw, 4.5rem);
    }
}
