/* ~/CSS/Pages/Users/Profile/ProfileSlideshows.css
 *
 * Transcribed from Extras/HtmlDumps/2017Profile Page/WithJoinGame/fetch2.css. This file
 * shipped empty in this repo; it holds the "Currently Wearing" accoutrement slider that
 * fills the right-hand half of the profile-avatar section.
 *
 * Layout maths worth knowing before changing anything: the slider shows 8 items as two rows
 * of four. Each item is an 85px image plus padding (5px desktop, 2px <=991px), so a row is
 * ~380px desktop / 356px tablet — which is why .accoutrement-items-container is capped at
 * 356px below 991px, and why .profile-accoutrements-slider is 220px tall (two rows).
 *
 * The .touch overrides are from the dump as-is: touch devices scroll the strip horizontally
 * instead of paginating, so the page dots are hidden there.
 */

.profile-accoutrements-container {
	overflow: hidden;
	height: 260px;
}

.profile-accoutrements-container:before,
.profile-accoutrements-container:after {
	content: " ";
	display: table;
}

.profile-accoutrements-container:after {
	clear: both;
}

@media(max-width:767px) {
	.profile-accoutrements-container {
		height: 145px;
		overflow-x: scroll;
		-webkit-overflow-scrolling: touch;
	}
}

.profile-accoutrements-container .profile-accoutrements-slider {
	-webkit-transition: margin-left 500ms ease;
	-o-transition: margin-left 500ms ease;
	transition: margin-left 500ms ease;
	margin: 12px 0 6px;
	height: 220px;
	overflow: hidden;
}

.profile-accoutrements-container .profile-accoutrements-slider:before,
.profile-accoutrements-container .profile-accoutrements-slider:after {
	content: " ";
	display: table;
}

.profile-accoutrements-container .profile-accoutrements-slider:after {
	clear: both;
}

@media(max-width:991px) {
	.profile-accoutrements-container .profile-accoutrements-slider {
		margin: 12px 0 30px;
		height: 180px;
	}
}

@media(max-width:767px) {
	.profile-accoutrements-container .profile-accoutrements-slider {
		margin: 12px 0 6px;
		height: 95px;
		width: 175%;
	}
}

@media(max-width:543px) {
	.profile-accoutrements-container .profile-accoutrements-slider {
		width: 250%;
	}
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container {
	float: left;
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container:before,
.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container:after {
	content: " ";
	display: table;
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container:after {
	clear: both;
}

@media(max-width:991px) {
	.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container {
		max-width: 356px;
		float: none;
		margin: 0 auto;
	}
}

@media(max-width:767px) {
	.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container {
		padding-bottom: 7px;
		display: inline-block;
		height: 95px;
		overflow: hidden;
		max-width: none;
	}
}

/* width:25% is reconstructed, not from the dump — in the original the Angular
   profileAccoutrementsController sized items at runtime from data-accoutrementsperpage, so no
   width survives in the stylesheet. Two things pin the value down: the max-width:767px rule
   below resets `width:auto`, so a width must exist above that breakpoint; and four-per-row is
   the only figure consistent with the rest of the file (356px container / 4 = 89px items at
   tablet, and a 220px slider = two ~110px rows at desktop).

   Without it the image's width:100% resolves against the whole 485px column and each item
   renders ~420px wide. */
.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item {
	float: left;
	width: 25%;
	padding: 5px;
	text-align: center;
	opacity: 1;
	position: relative;
}

@media(max-width:991px) {
	.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item {
		padding: 2px;
	}
}

@media(max-width:767px) {
	.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item {
		width: auto;
		padding: 5px;
	}
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item a {
	background-color: #fff;
	border-radius: 3px;
	display: inline-block;
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item .accoutrement-image {
	border-radius: 3px;
	width: 100%;
	height: auto;
	min-width: 85px;
	min-height: 85px;
}

@media(max-width:991px) {
	.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item .accoutrement-image {
		width: 85px;
		height: 85px;
	}
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item .asset-restriction-icon {
	position: absolute;
	bottom: 4px;
	left: 4px;
}

.profile-accoutrements-container .profile-accoutrements-slider .accoutrement-item .asset-restriction-icon .icon-label {
	display: block;
	border-bottom-left-radius: 3px;
}

.profile-accoutrements-container .profile-accoutrements-page-container {
	text-align: center;
}

.profile-accoutrements-container .profile-accoutrements-page-container .profile-accoutrements-page {
	background-color: transparent;
	border: 1px solid #fff;
	border-radius: 50%;
	display: inline-block;
	width: 18px;
	height: 18px;
	margin: 0 6px;
}

.profile-accoutrements-container .profile-accoutrements-page-container .profile-accoutrements-page:hover {
	cursor: pointer;
	background-color: #fff;
}

.profile-accoutrements-container .profile-accoutrements-page-container .page-active {
	background-color: #fff;
}

.touch .profile-accoutrements-container {
	overflow-x: auto;
}

@media(max-width:991px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider {
		margin: 12px 0 6px;
		height: 220px;
	}
}

@media(max-width:767px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider {
		max-width: none;
	}
}

.touch .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container {
	max-width: 440px;
}

@media(max-width:991px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container {
		float: left;
		margin: 0;
	}
}

@media(max-width:767px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container {
		max-width: none;
	}
}

@media(max-width:991px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container .accoutrement-item {
		padding: 5px;
	}
}

@media(max-width:991px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container .accoutrement-item .accoutrement-image {
		width: 100%;
		height: auto;
	}
}

@media(max-width:767px) {
	.touch .profile-accoutrements-container .profile-accoutrements-slider .accoutrement-items-container .accoutrement-item .accoutrement-image {
		height: 85px;
		width: 85px;
	}
}

.touch .profile-accoutrements-page-container {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Groups slideshow ("Slideshow View") and the view selector beside the header.
 *
 * Also transcribed from fetch2.css's ProfileSlideshows.css block. These rules were skipped on
 * the first pass because only the grid was rendered; they are the other half of the same
 * original file. Note they are NOT in this site's Base/CSS/StyleGuide.css — that copy predates
 * the switcher component — so the profile page is the only place they are defined.
 *
 * The whole thing is a crossfade, not a slider: every .switcher-item is stacked absolutely at
 * opacity 0 and .active fades one in, so the JS in _groups.ejs only ever moves a class.
 * .switcher-items has a fixed height because absolutely positioned children contribute none.
 * ------------------------------------------------------------------------- */

.container-buttons .profile-view-selector {
	padding: 1px 20px;
}

/* 20px renders of the 28px sprite icons: the sheet is two columns wide, so halving the
   background-size to 40px puts the "selected" (blue) column at -20px. */
.container-buttons .icon-grid,
.container-buttons .icon-slideshow {
	background-size: 40px auto;
	width: 20px;
	height: 20px;
}

.container-buttons .icon-grid {
	background-position: 0 -740px;
}

.container-buttons .icon-grid.selected {
	background-position: -20px -740px;
}

.container-buttons .icon-slideshow {
	background-position: 0 -760px;
}

.container-buttons .icon-slideshow.selected {
	background-position: -20px -760px;
}

.switcher {
	position: relative;
	box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
}

.switcher .switcher-items {
	position: relative;
	height: 300px;
	overflow: hidden;
}

@media(max-width:991px) {
	.switcher .switcher-items {
		height: 240px;
	}
}

@media(max-width:543px) {
	.switcher .switcher-items {
		height: 500px;
	}
}

.switcher .switcher-items .switcher-item {
	margin: 0 auto;
	position: absolute;
	width: 100%;
	opacity: 0;
	top: 0;
	z-index: 0;
}

.switcher .switcher-items .switcher-item .slide-item-emblem-container,
.switcher .switcher-items .switcher-item .slide-item-info {
	opacity: 0;
	z-index: 0;
}

.switcher .switcher-items .switcher-item.active {
	z-index: 1;
	opacity: 1;
}

.switcher .switcher-items .switcher-item.active .slide-item-emblem-container,
.switcher .switcher-items .switcher-item.active .slide-item-info {
	-webkit-transition: opacity ease-in-out 1s;
	-o-transition: opacity ease-in-out 1s;
	transition: opacity ease-in-out 1s;
	opacity: 1;
	z-index: 1;
}

.switcher:hover .carousel-control {
	display: block;
}

@media(max-width:543px) {
	.switcher .carousel-control {
		top: 20%;
		top: calc(25% - 24px);
	}
}

/* The dump gates this at max-width:991px, which leaves the slideshow flush against the next
   section on desktop: the groups panel has no .section-content (that is what carries the
   18px gap everywhere else), so the Roblox Badges header — and its floated blue "See More" —
   lands 3px under the group card and reads as a collision. Grid view escapes it because the
   wrapper swaps to .container-list, which has its own margin. Ungated on purpose. */
.section .switcher {
	margin: 0 0 15px;
}

.carousel-control {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-transition: all, 0.2s, ease-in-out;
	-o-transition: all, 0.2s, ease-in-out;
	transition: all, 0.2s, ease-in-out;
	background-color: #191919;
	background-color: rgba(25, 25, 25, 0.3);
	top: 40%;
	top: calc(50% - 24px);
	border: 2px solid #fff;
	border-radius: 50%;
	display: none;
	height: 48px;
	position: absolute;
	text-align: center;
	width: 48px;
	z-index: 1000;
}

.carousel-control:hover,
.carousel-control:focus {
	background-color: #191919;
	background-color: rgba(25, 25, 25, 0.75);
}

.carousel-control.left {
	left: 18px;
}

.carousel-control.right {
	right: 18px;
}

.carousel-control .icon-carousel-left,
.carousel-control .icon-carousel-right {
	margin: 8px auto;
}

.slide-switcher.groups {
	background-color: #0074BD;
}

.slide-switcher .slide-item-container .slide-item-container-right {
	background-color: #fff;
	padding: 20px 30px;
	height: 300px;
	float: right;
	width: 50%;
}

@media(max-width:991px) {
	.slide-switcher .slide-item-container .slide-item-container-right {
		height: 240px;
	}
}

@media(max-width:543px) {
	.slide-switcher .slide-item-container .slide-item-container-right {
		width: 100%;
		height: 250px;
	}
}

.slide-switcher .slide-item-container .slide-item-container-right h2 {
	border-bottom: 1px solid #fff;
}

.slide-switcher .slide-item-container .slide-item-container-right .slide-item-info {
	overflow: hidden;
}

.slide-switcher .slide-item-container .slide-item-container-right .slide-item-description {
	border-top: 1px solid #B8B8B8;
	padding: 5px 0 0;
	height: 100px;
	overflow-y: hidden;
	margin: 0;
	white-space: pre-wrap;
}

.slide-switcher .slide-item-container .slide-item-container-right .slide-item-stats {
	width: 90%;
	width: calc(100% - 60px);
	position: absolute;
	bottom: 36px;
}

@media(max-width:991px) {
	.slide-switcher .slide-item-container .slide-item-container-right .slide-item-stats {
		bottom: 12px;
	}

	.slide-switcher .slide-item-container .slide-item-container-right .slide-item-stats .slide-item-my-rank {
		font-size: 21px;
	}
}

.slide-switcher .slide-item-container .slide-item-container-right .slide-item-stats .list-item {
	float: left;
	width: 50%;
	text-align: left;
}

.slide-switcher .slide-item-container .slide-item-container-left {
	float: left;
	width: 50%;
	height: 300px;
}

@media(max-width:991px) {
	.slide-switcher .slide-item-container .slide-item-container-left {
		height: 240px;
	}
}

@media(max-width:543px) {
	.slide-switcher .slide-item-container .slide-item-container-left {
		width: 100%;
		height: 250px;
		display: block;
	}
}

.slide-switcher .slide-item-container .slide-item-container-left .slide-item-emblem-container {
	text-align: center;
	margin: 30px auto;
	width: 240px;
	height: 240px;
}

@media(max-width:991px) {
	.slide-switcher .slide-item-container .slide-item-container-left .slide-item-emblem-container {
		width: 180px;
		height: 180px;
	}
}

@media(max-width:543px) {
	.slide-switcher .slide-item-container .slide-item-container-left .slide-item-emblem-container {
		padding: 3% 0;
		width: 150px;
		height: 150px;
	}
}

.slide-switcher .slide-item-container .slide-item-container-left .slide-item-image {
	border-radius: 12px;
	box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.49);
	height: auto;
	width: 100%;
}

@media(max-width:991px) {
	.slide-switcher .slide-item-container .slide-item-container-left .slide-item-image {
		border-radius: 9px;
	}
}

@media(max-width:767px) {
	.slide-switcher .slide-item-container .slide-item-container-left .slide-item-image {
		border-radius: 6px;
	}
}

/* Not from the dump. The original toggled the two panes with angular's ng-show/ng-hide, which
   this page does not load; a local class keeps the toggle off bootstrap's .hidden (which is
   !important and would fight the .switcher-item opacity rules if it ever landed on a card). */
.profile-groups .groups-view-hidden {
	display: none;
}
