/*!
 =========================================================
 * modern.css - Rediseño y responsive para WebEngine CMS
 * Se carga al final para poder sobreescribir con seguridad
 * el resto del template sin tocar los archivos originales.
 =========================================================
*/

/* -------------------------------------------------- */
/* 1. BASE / LAYOUT FLUIDO                             */
/* -------------------------------------------------- */
html {
	min-width: 0 !important;
}

* {
	box-sizing: border-box;
}

body {
	background-attachment: fixed;
	background-size: cover;
}

#container {
	width: 100% !important;
	max-width: 1400px;
	padding: 24px 0px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.footer,
.global-top-bar .global-top-bar-content,
.header-info-container {
	width: 100% !important;
	max-width: 1400px;
}

#content {
	padding: 10px 24px 0px 24px;
}

/* -------------------------------------------------- */
/* 2. HEADER / LOGO                                    */
/* -------------------------------------------------- */
#header {
	padding: 50px 20px 30px 20px;
}

.webengine-mu-logo {
	max-width: 320px;
	height: auto;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.header-info-container .header-info {
	border-radius: 12px;
	background: rgba(10, 10, 10, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------- */
/* 3. NAVBAR                                           */
/* -------------------------------------------------- */
#navbar {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(10, 10, 10, 0.75);
}

#navbar ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#navbar ul li a {
	position: relative;
	padding: 18px 22px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

#navbar ul li a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 10px;
	width: 0%;
	height: 2px;
	background: var(--ColorTemplate);
	transition: all 0.25s ease;
	transform: translateX(-50%);
}

#navbar ul li a:hover::after,
#navbar ul li a:focus::after {
	width: 60%;
}

/* -------------------------------------------------- */
/* 4. TARJETAS / PANELES                               */
/* -------------------------------------------------- */
.panel-sidebar,
.panel-general,
.panel-addstats,
.panel-downloads,
.card {
	border-radius: 10px !important;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-sidebar:hover,
.card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card-header,
.panel-sidebar > .panel-heading {
	font-weight: 600;
	letter-spacing: 0.3px;
}

.sidebar-banner img {
	transition: transform 0.25s ease, filter 0.25s ease;
	border-radius: 8px;
}

.sidebar-banner img:hover {
	transform: translateY(-3px);
	filter: brightness(1.08);
}

/* -------------------------------------------------- */
/* 5. BOTONES                                          */
/* -------------------------------------------------- */
.btn-primary,
.btn-outline-primary:hover {
	background-image: linear-gradient(135deg, var(--ColorTemplate), var(--ColorTemplate));
	border: none;
	box-shadow: 0 4px 14px var(--ColorTemplateAlpha);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px var(--ColorTemplateAlpha);
}

.btn,
.btn-sm {
	border-radius: 6px !important;
}

/* -------------------------------------------------- */
/* 6. ONLINE BAR / RANKINGS                            */
/* -------------------------------------------------- */
.webengine-online-bar {
	border-radius: 6px;
}

.rankings-table {
	border-radius: 10px;
	overflow: hidden;
}

/* -------------------------------------------------- */
/* 7. SIDEBAR IZQUIERDA (Top Level / Reset / Guild)    */
/* -------------------------------------------------- */
.col-lg-3 .table {
	font-size: 12px;
}
.col-lg-3 .rankings-class-image-sidebar {
	width: 22px;
}
.col-lg-3 .card-header {
	font-size: 14px;
}

/* -------------------------------------------------- */
/* 7b. CASTLE SIEGE - WIDGET CON IMAGEN DE FONDO       */
/* -------------------------------------------------- */
.castle-siege-hero {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
	min-height: 380px;
	background: #000 url('../img/castle_owner_bg.jpg') no-repeat center center;
	background-size: cover;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
}

.castle-siege-hero:hover {
	transform: translateY(-3px);
}

.castle-siege-hero-overlay {
	position: relative;
	z-index: 2;
	height: 100%;
	padding: 22px 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: #fff;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
	background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.85) 100%);
}

.castle-siege-hero-title {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	font-size: 15px;
	color: var(--ColorTemplate);
	margin-bottom: 14px;
}

.castle-siege-hero-owner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 10px 16px;
	margin-bottom: 16px;
}

.castle-siege-hero-owner-info {
	text-align: left;
}

.castle-siege-hero-guild {
	font-size: 18px;
	font-weight: 700;
	color: #ffcc00;
	line-height: 1.2;
}

.castle-siege-hero-master {
	font-size: 12px;
	color: #dddddd;
}

.castle-siege-hero-stage {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #cccccc;
	margin-top: auto;
}

.castle-siege-hero-timer {
	font-size: 40px;
	font-weight: 800;
	color: #fff;
	margin: 6px 0 16px 0;
	letter-spacing: 1px;
}

.castle-siege-hero-timer span {
	color: var(--ColorTemplate);
	font-size: 22px;
	margin-left: 3px;
}

.castle-siege-hero-footer {
	margin-top: auto;
}

/* -------------------------------------------------- */
/* 8. SIDEBAR - ICONOS SOCIALES (Facebook/TikTok/YouTube) */
/* -------------------------------------------------- */
.sidebar-social-icons {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 20px 0px;
}

.sidebar-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 20px;
	color: #fff !important;
	border: 2px solid var(--ColorTemplate);
	background: rgba(0, 0, 0, 0.35);
	transition: all 0.25s ease;
}

.sidebar-social-icon:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px var(--ColorTemplateAlpha);
}

.sidebar-social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.sidebar-social-tiktok:hover { background: #000000; border-color: #ffffff; }
.sidebar-social-youtube:hover { background: #ff0000; border-color: #ff0000; }

/* -------------------------------------------------- */
/* 9. FONDO OSCURO DE TABLAS/MODULOS (Top Level, Server Info, etc.) */
/* -------------------------------------------------- */
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th,
.myaccount-table tr td {
	background-color: #171522 !important;
	border: 1px solid #2c2645 !important;
	color: #e8e6f0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
	background-color: #1d1b2e !important;
}

.table thead.table-dark th {
	background: linear-gradient(135deg, var(--ColorTemplate), #1a1626) !important;
	color: #fff !important;
	border-color: #2c2645 !important;
}

.table-hover > tbody > tr:hover > * {
	background-color: #262038 !important;
}



/* Tablets */
@media only screen and (max-width: 992px) {
	#container {
		border-radius: 0px;
	}
	.header-info-container,
	.global-top-bar .global-top-bar-content {
		padding: 0 12px;
	}
	#content {
		padding: 10px 16px 0px 16px;
	}
	[class*="col-lg-"] {
		width: 100%;
	}
}

/* Moviles grandes */
@media only screen and (max-width: 768px) {
	#header {
		padding: 30px 15px 20px 15px;
	}
	.webengine-mu-logo {
		max-width: 220px;
	}
	.page-title {
		font-size: 24px;
	}
	#navbar ul li a {
		padding: 12px 14px;
		font-size: 14px;
	}
	.header-info-container .header-info ul li a {
		padding: 1px 12px;
	}
}

/* Moviles chicos */
@media only screen and (max-width: 576px) {
	.global-top-bar-content .row > div {
		text-align: center !important;
		padding: 4px 0;
	}
	.header-info-container {
		text-align: center;
	}
	#content {
		padding: 10px 10px 0px 10px;
	}
	.footer {
		margin-bottom: 30px !important;
	}
	.myaccount-character-block img {
		width: 80px;
	}
}
