@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);

body, html {
	font-size: 100%;
	padding: 0;
	margin: 0;
	height: 100%;
	scroll-behavior: smooth;
}

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	font-family: 'Lato', Calibri, Arial, sans-serif;
	color: #f2ede3;
	background: #333;
	font-size: 0.9em;
	font-weight: 300;
	background-image: url("../images/f8.jpg");

	-webkit-tap-highlight-color: transparent;
	tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}

/* Keep global anchor style (used by navbar/footer on logged-in views) */
a {
	color: #f0f0f0;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 2px;
	padding: 0 5px;
	text-transform: uppercase;
	font-size: 80%;
}
a:hover { color: #fff; }

@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* =========================================================
   INDEX PAGE (profiles grid)
   - mobile-first
   - each card uses the collapsed ABOUT tile markup
   ========================================================= */

.profiles-wrap {
	position: relative;
	min-height: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0;
	border: 3px double grey;
	opacity: 0;
	animation: fadeIn 0.6s ease-out forwards;
	background: transparent;
}

.profiles-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(0, calc(50vh - 12px));
	gap: 12px;
	padding: 12px;
	box-sizing: border-box;
	width: 100%;
}

@media (min-width: 768px) {
	.profiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The whole card is a link on index.
   Reset global <a> styles so they DON'T affect inner text. */
.profile-card-link {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0 !important;

	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: inherit !important;
	font-size: inherit !important;

	color: inherit;
	text-decoration: none;
}
.profile-card-link * {
	text-transform: none;
	letter-spacing: normal;
}

/* Generic tile box (kept minimal for index cards) */
.bl-box {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 1;

	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-moz-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}

.bl-box h2 {
	text-align: center;
	margin: 0;
	padding: 20px;
	width: 100%;
	font-size: 1.8em;
	letter-spacing: 1px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
}

/* Collapsed ABOUT tile visuals on every profile card */
.profile-card.bl-box {
	text-align: center;
	padding: 1rem 1rem 0;
	color: #fff;

	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0));
	mask-image: linear-gradient(to bottom, #000 95%, transparent);

	text-shadow:
		0 1px 2px rgba(0,0,0,.85),
		0 2px 6px rgba(0,0,0,.70),
		0 0 10px rgba(0,0,0,.55);

	background-color: #F06060 !important;
}

/* Avatar block (collapsed) */
.about-avatar {
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
}
.about-avatar img{
	width: 160px;
	height: 160px;
	object-fit: cover;
	display: block;
	border: 8px solid rgba(0,0,0,0.2);
	box-shadow: 0 3px 4px rgba(0,0,0,.37);
}

/* Online status */
.status.online  { color: #22c55e; }
.status.offline { color: #ef4444; }
.status.online,
.status.offline {
	font-weight: 700;
	font-size: 1.1rem;
	text-shadow:0 1px 2px rgba(0,0,0,.95), 0 3px 8px rgba(0,0,0,.75), 0 -1px 2px rgba(255,255,255,.55);
}

/* Bio block */
.profile-header {
	margin-top: 5%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	color: #fff;
	max-width: 1000px;
	text-shadow:
		0 1px 2px rgba(0,0,0,.85),
		0 2px 6px rgba(0,0,0,.70),
		0 0 10px rgba(0,0,0,.55);
}

/* Sticky load more bar */
.load-more-btn[disabled] { opacity: 0.6; cursor: default; }

/* Slightly smaller text on small screens (matches original responsive intent) */
@media screen and (max-width: 46.5em) {
	.bl-box { font-size: 75%; }
}

