/*
 * KirSRV homepage server cards.
 * Only the homepage Java/Bedrock block is affected.
 */

.home-server-entry-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;

    width: 100% !important;
    max-width: 100% !important;

    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.home-server-entry-card {
    appearance: none;

    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 104px;

    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;

    padding: 16px 18px;

    border: 1px solid rgba(139, 220, 61, .25);
    border-radius: 16px;

    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(139, 220, 61, .075),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(16, 32, 17, .96),
            rgba(9, 21, 11, .96)
        );

    color: #eef5eb;

    font: inherit;
    text-align: left;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        0 12px 32px rgba(0, 0, 0, .16);

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.home-server-entry-card:hover {
    transform: translateY(-2px);

    border-color: rgba(151, 230, 66, .5);

    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(139, 220, 61, .13),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(18, 37, 19, .98),
            rgba(10, 23, 12, .98)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 14px 38px rgba(0, 0, 0, .21),
        0 0 26px rgba(126, 211, 51, .055);
}

.home-server-entry-card:active {
    transform: scale(.985);
}

.home-server-entry-card:focus-visible {
    outline: 2px solid rgba(153, 228, 71, .82);
    outline-offset: 3px;
}

.home-server-entry-card.is-copied {
    border-color: rgba(157, 231, 74, .78);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 0 0 1px rgba(157, 231, 74, .12),
        0 14px 40px rgba(107, 199, 38, .13);
}

/* Pixel icon container */

.home-server-entry-card__icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(145, 222, 62, .13);
    border-radius: 13px;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(144, 226, 56, .13),
            rgba(39, 78, 24, .08)
        );

    box-shadow:
        inset 0 0 18px rgba(139, 220, 61, .04);

    overflow: hidden;
}

.home-server-entry-card__icon svg {
    display: block;

    width: 37px;
    height: 37px;

    shape-rendering: crispEdges;

    filter:
        drop-shadow(0 0 6px rgba(150, 238, 56, .19));
}

/* Text */

.home-server-entry-card__copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.home-server-entry-card__title {
    display: block;

    color: #f0f5ee;

    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 850;
    line-height: 1.15;

    letter-spacing: -.025em;

    overflow-wrap: anywhere;
}

.home-server-entry-card__subtitle {
    display: block;

    color: rgba(221, 232, 218, .62);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;

    transition: color .16s ease;

    overflow-wrap: anywhere;
}

.home-server-entry-card.is-copied
.home-server-entry-card__subtitle {
    color: #a7e85c;
}

/* Arrow */

.home-server-entry-card__arrow {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    color: #99df3c;

    font-size: 27px;
    font-weight: 500;
    line-height: 1;

    transition:
        transform .16s ease,
        color .16s ease;
}

.home-server-entry-card:hover
.home-server-entry-card__arrow {
    transform: translateX(3px);
    color: #b2f45c;
}


/* Tablet */

@media (max-width: 820px) {
    .home-server-entry-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .home-server-entry-card {
        min-height: 92px;

        grid-template-columns: 52px minmax(0, 1fr) auto;

        gap: 13px;

        padding: 14px 15px;
    }

    .home-server-entry-card__icon {
        width: 52px;
        height: 52px;
    }

    .home-server-entry-card__icon svg {
        width: 33px;
        height: 33px;
    }
}


/* Phones */

@media (max-width: 430px) {
    .home-server-entry-card {
        min-height: 86px;

        grid-template-columns: 48px minmax(0, 1fr) 28px;

        gap: 11px;

        padding: 12px 13px;

        border-radius: 14px;
    }

    .home-server-entry-card__icon {
        width: 48px;
        height: 48px;

        border-radius: 11px;
    }

    .home-server-entry-card__icon svg {
        width: 30px;
        height: 30px;
    }

    .home-server-entry-card__title {
        font-size: 15px;
    }

    .home-server-entry-card__subtitle {
        font-size: 10px;
    }

    .home-server-entry-card__arrow {
        width: 28px;
        height: 28px;

        font-size: 23px;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .home-server-entry-card,
    .home-server-entry-card__arrow {
        transition: none;
    }
}
