/*
    In-content app promo card (_AppPromoCard.cshtml), used on team and match
    pages.

    Its own stylesheet rather than inline styles in the partial, per the house
    rule that CSS belongs in a view-specific file. Referenced with
    asp-append-version so a change busts the Cloudflare cache - an unversioned
    link keeps the same URL and stays stuck behind a 30 day max-age.

    Mobile first: this is served to every device, and most Diski Zone traffic is
    a phone, so the stacked layout is the base case and the side-by-side split is
    the enhancement.
*/

.dz-app-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 18px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007105 0%, #0cae13 70%, #4eca51 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dz-app-promo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dz-app-promo-title {
    font-size: 17px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.dz-app-promo-sub {
    font-size: 13.5px;
    opacity: 0.92;
    line-height: 1.35;
}

/*  The badge is a fixed 300x90 raster. Height-driven with width:auto so it can
    never distort, and max-width:100% so it cannot push the card wider than the
    page on a 320px screen. */
.dz-app-promo-badge {
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
    transition: transform 0.2s, filter 0.2s;
}

.dz-app-promo-badge:hover,
.dz-app-promo-badge:focus {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.dz-app-promo-badge img {
    height: 52px;
    width: auto;
    max-width: 100%;
    display: block;
}

/*  From tablet up there is room to put the pitch and the badge side by side,
    which keeps the card to a single compact strip instead of a tall block
    interrupting the page. */
@media (min-width: 576px) {
    .dz-app-promo {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 20px;
        padding: 16px 24px;
    }

    .dz-app-promo-title {
        font-size: 19px;
    }
}

@media (min-width: 992px) {
    .dz-app-promo-badge img {
        height: 58px;
    }
}

/*  Respect a user who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
    .dz-app-promo-badge {
        transition: none;
    }

    .dz-app-promo-badge:hover,
    .dz-app-promo-badge:focus {
        transform: none;
    }
}
