@import url("../../AllanStyle-SUBSILVER/theme/stylesheet.css");

/* Castaway Custom Banner Styles */
.site-banner {
	text-align: center;
	padding: 20px 0;
	background: #f5f5f5;
	border-bottom: 2px solid #ddd;
}

.banner-content {
	max-width: 1200px;
	margin: 0 auto;
}

.banner-image {
	margin-bottom: 15px;
}

.forum-banner {
	max-width: 100%;
	height: auto;
	max-height: 200px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-buttons {
	display: inline-flex;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
	margin-top: 0;
	text-align: center;
	background-color: #ececec;
	border: 1px solid #a9b8c2;
	border-top: none;
	padding: 8px;
}

.banner-button {
	flex: 0 0 auto;
	width: 100px;
	display: block;
	padding: 6px 8px;
	font-size: 13px;
	font-weight: 600;
	font-family: "Open Sans", "Droid Sans", Verdana, Arial, Helvetica;
	text-decoration: none;
	border: 1px solid #C7C3BF;
	border-radius: 0;
	background-color: #E9E9E9;
	background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #E9E9E9 100%);
	background-image: linear-gradient(to bottom, #FFFFFF 0%,#E9E9E9 100%);
	box-shadow: 0 0 0 1px #FFFFFF inset;
	-webkit-box-shadow: 0 0 0 1px #FFFFFF inset;
	color: #2a6496 !important;
	text-shadow: none;
	margin: 0;
	border-right: none;
}

.banner-button:last-child {
	border-right: 1px solid #C7C3BF;
}

.banner-button:hover,
.banner-button:focus {
	border-color: #0A8ED0;
	background-color: #FFFFFF;
	background-image: -webkit-linear-gradient(top, #E9E9E9 0%, #FFFFFF 100%);
	background-image: linear-gradient(to bottom, #E9E9E9 0%,#FFFFFF 100%);
	color: #D31141 !important;
	text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
	.banner-buttons {
		flex-direction: column;
		align-items: center;
	}
	
	.banner-button {
		width: 200px;
		justify-content: center;
	}
	
	.forum-banner {
		max-height: 120px;
	}
}

/* Hide the original site description elements */
#site-description {
	display: none;
}

/* Left-sided post layout styles */
.leftsided .postprofile {
	float: left;
	border-width: 0 1px 0 0;
	border-right: 1px solid #d5dbe0;
	border-left: none;
	margin-right: 10px;
	margin-left: 0;
	text-align: center;
}

.leftsided .postbody {
	float: right;
	margin-left: 0;
	margin-right: 0;
}

.leftsided .postprofile dd, 
.leftsided .postprofile dt {
	margin-left: 8px;
	margin-right: 8px;
	text-align: center;
}

/* Fix topic header centering for left-sided layout */
.leftsided.postprofile.subsilver-topic-author {
	text-align: center;
}

.leftsided.subsilver-topic-title {
	text-align: center;
}

/* Adjust post buttons for left-sided layout */
.leftsided .has-profile .postbody h3 {
	margin-left: 180px;
	margin-right: 0;
}

/* Center avatar using text-align approach with higher specificity */
div.leftsided dl.postprofile div.avatar-container {
	display: inline-block;
	float: none;
}

div.leftsided dl.postprofile .avatar {
	float: none;
	display: inline-block;
}

/* Debug: Force center everything in postprofile visually */
div.leftsided dl.postprofile dt {
	text-align: center;
}

/* Move online indicator from entire post to postprofile for left-sided layout */
div.post.leftsided.online {
	background-image: none;  /* Remove from entire post */
}

/* Use pseudo-element to create banner layer that can appear above avatar */
div.post.leftsided.online .postprofile {
	position: relative;
}

div.post.leftsided.online .postprofile::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-image: url("../../AllanStyle-SUBSILVER/theme/en/icon_user_online.gif");
	background-position: 100% 0;
	background-repeat: no-repeat;
	z-index: 2;
	pointer-events: none;
}

/* Responsive adjustments for left-sided layout */
@media (max-width: 768px) {
	.leftsided .postprofile,
	.leftsided .postbody {
		float: none;
		width: 100%;
		margin: 0;
	}

	.leftsided .postprofile {
		border-width: 0 0 1px 0;
		border-bottom: 1px solid #d5dbe0;
		margin-bottom: 10px;
	}

	.leftsided .has-profile .postbody h3 {
		margin-left: 0;
	}
}

/* Avatar size clamping */
/* Post avatars: 130x130 */
.avatar-container {
	max-height: 130px;
}

/* Profile page avatars: 200x200 */
.profile-avatar {
	max-width: 200px;
	max-height: 200px;
	overflow: hidden;
	display: inline-block;
}

.profile-avatar img {
	max-height: 200px;
	width: auto !important;
	height: auto !important;
}