/* ~/CSS/Pages/Info/RobloxBadges.css — /info/roblox-badges
 *
 * Ported from Roblox-Webserver-main/Website/wwwroot/CSS/Pages/Info/RobloxBadges.css. The
 * .badge-category / .BadgePadding rules from that copy are dropped: they belong to the
 * pre-MVC markup variant (data-ismvc="false"), and the view here renders the MVC one.
 */
.badge-container {
    max-width: 970px;
    margin: 10px auto 0;
}

@media(max-width:767px) {
    .badge-container {
        padding: 0 15px;
    }
}

.badge-container h1 {
    margin-top: 0;
}

/* StyleGuide.css carries .divider-bottom, but the site layout only pulls that sheet in on
   /catalog pages — restate the one rule this page needs rather than loading all of it. */
.badge-container .stack-row.divider-bottom {
    border-bottom: 1px solid #ccc;
}

.badge-container .badge-image {
    float: left;
    width: 75px;
    height: 75px;
    text-align: center;
}

.badge-container .badge-description {
    margin-left: 85px;
    min-height: 75px;
}

/* Upstream rendered every badge but Administrator as an <img> pointing at a hash-named PNG
   (/images/6c2a598114231066a386fa716ac099c4.png and friends). None of those files exist in
   this repo, so all 15 use the sprite instead — the same /images/Badges/roblox_badges.svg the
   profile's badge strip already renders from.

   The sprite is two 140px columns; Profile.css positions each badge in a 140px box. Here the
   box is 75px, so background-size and every offset are scaled by 75/140. All of Profile.css's
   offsets are multiples of 140, so the scaled values land on exact multiples of 75 — and
   Administrator's -75px -450px matches upstream's own rule for it byte for byte, confirming
   the two sprite files share a grid. */
.badge-container .badge-image .icon-inviter,
.badge-container .badge-image .icon-friendship,
.badge-container .badge-image .icon-welcome-to-the-club,
.badge-container .badge-image .icon-ambassador,
.badge-container .badge-image .icon-combat-initiation,
.badge-container .badge-image .icon-warrior,
.badge-container .badge-image .icon-bloxxer,
.badge-container .badge-image .icon-homestead,
.badge-container .badge-image .icon-bricksmith,
.badge-container .badge-image .icon-official-model-maker,
.badge-container .badge-image .icon-builders-club,
.badge-container .badge-image .icon-turbo-builders-club,
.badge-container .badge-image .icon-outrageous-builders-club,
.badge-container .badge-image .icon-administrator,
.badge-container .badge-image .icon-veteran {
    background-image: url(/images/Badges/roblox_badges.svg);
    background-repeat: no-repeat;
    background-size: 150px auto;
    width: 75px;
    height: 75px;
    display: inline-block;
    vertical-align: middle;
}

.badge-container .badge-image .icon-inviter {
    background-position: 0 0;
}

.badge-container .badge-image .icon-friendship {
    background-position: -75px 0;
}

.badge-container .badge-image .icon-welcome-to-the-club {
    background-position: 0 -75px;
}

.badge-container .badge-image .icon-ambassador {
    background-position: -75px -75px;
}

.badge-container .badge-image .icon-combat-initiation {
    background-position: 0 -150px;
}

.badge-container .badge-image .icon-warrior {
    background-position: -75px -150px;
}

.badge-container .badge-image .icon-bloxxer {
    background-position: 0 -225px;
}

.badge-container .badge-image .icon-homestead {
    background-position: -75px -225px;
}

.badge-container .badge-image .icon-bricksmith {
    background-position: 0 -300px;
}

.badge-container .badge-image .icon-official-model-maker {
    background-position: -75px -300px;
}

.badge-container .badge-image .icon-builders-club {
    background-position: 0 -375px;
}

.badge-container .badge-image .icon-turbo-builders-club {
    background-position: -75px -375px;
}

.badge-container .badge-image .icon-outrageous-builders-club {
    background-position: 0 -450px;
}

.badge-container .badge-image .icon-administrator {
    background-position: -75px -450px;
}

.badge-container .badge-image .icon-veteran {
    background-position: 0 -525px;
}

/* Artwork uploaded from the control panel (see .icon-site-badge in Profile.css): the same
   75px box as the sprite cells above, fitted rather than cropped. */
.badge-container .badge-image .icon-site-badge {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 75px;
    height: 75px;
    display: inline-block;
    vertical-align: middle;
}

/* The fade the deep-link highlight animates out of. Nothing removes .selectedFadeOut, so the
   row keeps the tint — same as upstream, where it marks which badge you followed a link to. */
.stack .stack-list .stack-row.selectedFadeOut {
    background-color: #99DAFF;
    transition: background-color 1.5s ease-in;
}
