/* ==========================================
   CASTLE SIEGE - MODULO GENERAL
   ========================================== */

.castle-siege-block .castle-owner-panel {
	background: #000 url('../img/castle_owner_bg.jpg') no-repeat;
	background-size: cover;
	color: #ffffff;
	border-radius: 10px;
	border: 1px solid #333;
	box-shadow: 0 0 10px #555;
	padding: 20px;
	text-shadow: 1px 1px 1px #000;
	transition: 0.3s;
}

.castle-siege-block .castle-owner-panel:hover {
	filter: brightness(120%);
}

.castle-siege-block .castle-owner-panel a {
	color: #cccccc;
}

.castle-siege-block .castle-owner-panel a:hover,
.castle-siege-block .castle-owner-panel a:active {
	color: #ffffff;
}

.castle-siege-block .castle-owner-panel .panel-body .castle-owner-name,
.castle-siege-block .castle-owner-panel .panel-body .castle-owner-name a {
	color: #ffffff;
	display: block;
	padding: 5px;
	font-size: 24px;
	font-weight: bold;
}

.castle-siege-block .castle-owner-panel .panel-body .castle-owner-ally-title {
	margin-top: 20px;
}

.castle-siege-block .castle-owner-panel .panel-body .castle-owner-ally {
	padding: 5px 0;
}

.castle-siege-block .castle-owner-panel .panel-body h4 {
	color: #ffcc00 !important;
}

.castle-siege-block #siegeTimer {
	font-size: 48px;
	font-weight: bold;
}

.castle-siege-block #siegeTimer span {
	color: #aaaaaa;
	font-size: 26px;
}


/* ==========================================
   CASTLE SIEGE V4 - PROFESSIONAL
   ========================================== */

.castle-featured {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	overflow: hidden;

	background:
		radial-gradient(
			ellipse at 68% 38%,
			rgba(63, 180, 230, 0.10),
			transparent 38%
		),
		linear-gradient(
			135deg,
			rgba(5, 11, 17, 0.98) 0%,
			rgba(7, 17, 27, 0.96) 45%,
			rgba(5, 10, 16, 0.98) 100%
		),
		url('../img/castle_owner_bg.jpg') center center no-repeat;

	background-size: cover;

	border: 1px solid rgba(73, 170, 220, 0.18);
	border-top: 1px solid rgba(105, 220, 255, 0.50);
	border-bottom: 1px solid rgba(73, 170, 220, 0.20);

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.02),
		inset 0 0 45px rgba(0, 0, 0, 0.82),
		0 10px 28px rgba(0, 0, 0, 0.34);

	color: #eff7fb;
	text-shadow: 1px 1px 2px #000;

	transition:
		border-color .25s ease,
		box-shadow .25s ease,
		filter .25s ease;
}

.castle-featured:before {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	top: 0;
	height: 2px;

	background: linear-gradient(
		90deg,
		transparent,
		rgba(112, 223, 255, 0.95),
		transparent
	);

	box-shadow:
		0 0 10px rgba(112, 223, 255, 0.28),
		0 0 20px rgba(30, 145, 205, 0.12);

	pointer-events: none;
}


/* ==========================================
   HEADER
   ========================================== */

.castle-featured-header {
	position: relative;
	padding: 14px 26px 12px;
	text-align: center;

	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0),
		rgba(6, 18, 28, 0.46),
		rgba(0, 0, 0, 0)
	);

	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.castle-featured-title {
	font-size: 22px;
	line-height: 24px;
	font-weight: 800;
	color: #eef8ff;
	letter-spacing: 3px;
	text-transform: uppercase;

	text-shadow:
		0 0 6px rgba(82, 201, 245, 0.30),
		0 1px 1px #000;
}

.castle-featured-title:before,
.castle-featured-title:after {
	content: "";
	display: inline-block;
	width: 34px;
	height: 1px;
	margin: 0 12px 6px;
	vertical-align: middle;

	background: linear-gradient(
		90deg,
		transparent,
		rgba(100, 215, 250, 0.85),
		transparent
	);
}

.castle-featured-subtitle {
	margin-top: 4px;
	font-size: 9px;
	line-height: 11px;
	font-weight: 700;
	color: #8ca4b5;
	letter-spacing: 2px;
	text-transform: uppercase;
}


/* ==========================================
   CONTENT
   ========================================== */

.castle-featured-content {
	padding: 20px 24px 22px;
	box-sizing: border-box;
}

.castle-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
	gap: 20px;
	align-items: stretch;
}

.castle-featured-panel {
	position: relative;
	min-width: 0;
	box-sizing: border-box;

	padding: 22px 22px 20px;

	background: linear-gradient(
		180deg,
		rgba(12, 22, 33, 0.72) 0%,
		rgba(7, 14, 22, 0.82) 100%
	);

	border: 1px solid rgba(90, 190, 235, 0.12);
	border-radius: 12px;

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.03),
		inset 0 0 25px rgba(0, 0, 0, 0.28);
}

.castle-featured-panel:before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 1px;

	background: linear-gradient(
		90deg,
		transparent,
		rgba(96, 212, 247, 0.45),
		transparent
	);
}


/* ==========================================
   PANEL IZQUIERDO
   ========================================== */

.castle-featured-status-head {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 132px;
}

.castle-featured-logo {
	position: relative;
	width: 96px;
	min-width: 96px;

	display: flex;
	align-items: center;
	justify-content: center;
}

.castle-featured-logo:before {
	content: "";
	position: absolute;
	width: 74px;
	height: 74px;
	border-radius: 50%;

	background:
		radial-gradient(
			circle,
			rgba(70, 208, 255, 0.10),
			rgba(9, 20, 29, 0.60) 55%,
			rgba(0, 0, 0, 0.82)
		);

	border: 1px solid rgba(91, 206, 244, 0.20);

	box-shadow:
		inset 0 0 15px rgba(0, 0, 0, 0.82),
		0 0 15px rgba(50, 175, 225, 0.08);
}

.castle-featured-logo img {
	position: relative;
	z-index: 2;
	max-width: 58px;
	max-height: 58px;
	height: auto;

	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.castle-featured-status-main {
	flex: 1;
	min-width: 0;
}

.castle-featured-label {
	margin-bottom: 7px;
	font-size: 10px;
	line-height: 12px;
	font-weight: 700;
	color: #8fa6b6;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.castle-featured-guild {
	font-size: 22px;
	line-height: 24px;
	font-weight: 800;
	color: #ffffff;

	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;

	text-shadow:
		0 1px 2px #000,
		0 0 5px rgba(255, 255, 255, 0.03);
}

.castle-featured-master {
	margin-top: 7px;
	font-size: 13px;
	line-height: 17px;
	color: #a9bac7;
}

.castle-featured-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.castle-featured-pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;

	padding: 7px 12px;

	background: rgba(34, 152, 205, 0.10);
	border: 1px solid rgba(72, 189, 240, 0.18);
	border-radius: 999px;

	box-shadow:
		inset 0 0 10px rgba(0, 0, 0, 0.18),
		0 0 8px rgba(45, 160, 215, 0.03);
}

.castle-featured-pill-label {
	display: inline-block;
	padding: 3px 7px;

	background: rgba(104, 220, 255, 0.14);
	border: 1px solid rgba(104, 220, 255, 0.14);
	border-radius: 999px;

	font-size: 8px;
	line-height: 10px;
	font-weight: 800;
	color: #73dcff;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.castle-featured-pill-value {
	font-size: 11px;
	line-height: 13px;
	font-weight: 700;
	color: #e0f6ff;
}


/* ==========================================
   PANEL DERECHO
   ========================================== */

.castle-featured-panel-event {
	display: flex;
	align-items: center;
	justify-content: center;
}

.castle-featured-event {
	width: 100%;
	text-align: center;
}

.castle-featured-event-label {
	color: #b9cedb;
}

.castle-featured-next-stage {
	margin: 0 auto 8px;
	padding: 0 8px;

	font-size: 16px;
	line-height: 20px;
	font-weight: 800;
	color: #f6fbff;
	letter-spacing: 0.8px;
	text-transform: uppercase;

	text-shadow:
		0 1px 2px #000,
		0 0 8px rgba(55, 180, 225, 0.10);
}

.castle-featured-countdown {
	margin-top: 4px;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;

	font-size: clamp(30px, 3.2vw, 42px);
	line-height: 1.08;
	font-weight: 900;

	color: #78dcff;
	letter-spacing: -0.8px;

	text-align: center;
	white-space: normal;

	text-shadow:
		0 0 10px rgba(75, 205, 255, 0.32),
		0 0 22px rgba(28, 126, 188, 0.10),
		0 1px 2px #000;
}

.castle-featured-event-meta {
	margin-top: 8px;
	font-size: 11px;
	line-height: 13px;
	font-weight: 700;
	color: #8ea7b8;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}


/* ==========================================
   PROXIMA ETAPA = BATALLA
   ========================================== */

.castle-featured-next-battle .castle-featured-event-label {
	color: #e7c46a;
}


/* ==========================================
   MENOS DE 24 HORAS
   ========================================== */

.castle-featured-near {
	border-top-color: rgba(255, 167, 82, 0.58);
	border-bottom-color: rgba(255, 167, 82, 0.22);
}

.castle-featured-near:before {
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 166, 76, 0.95),
		transparent
	);

	box-shadow:
		0 0 10px rgba(255, 166, 76, 0.22),
		0 0 20px rgba(255, 166, 76, 0.10);
}

.castle-featured-countdown-warning {
	color: #ffab57;

	text-shadow:
		0 0 9px rgba(255, 171, 87, 0.32),
		0 0 20px rgba(255, 120, 40, 0.10),
		0 1px 2px #000;

	animation: castleCountdownPulse 1.6s ease-in-out infinite;
}

@keyframes castleCountdownPulse {

	0% {
		text-shadow:
			0 0 7px rgba(255, 171, 87, 0.18),
			0 1px 2px #000;
	}

	50% {
		text-shadow:
			0 0 18px rgba(255, 171, 87, 0.48),
			0 1px 2px #000;
	}

	100% {
		text-shadow:
			0 0 7px rgba(255, 171, 87, 0.18),
			0 1px 2px #000;
	}
}


/* ==========================================
   BATALLA EN CURSO
   ========================================== */

.castle-featured-live {
	background:
		radial-gradient(
			ellipse at 68% 38%,
			rgba(255, 95, 76, 0.12),
			transparent 38%
		),
		linear-gradient(
			135deg,
			rgba(10, 8, 10, 0.98) 0%,
			rgba(18, 11, 14, 0.96) 45%,
			rgba(10, 8, 10, 0.98) 100%
		),
		url('../img/castle_owner_bg.jpg') center center no-repeat;

	background-size: cover;

	border-color: rgba(255, 96, 78, 0.18);
	border-top-color: rgba(255, 96, 78, 0.70);
	border-bottom-color: rgba(255, 96, 78, 0.26);

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.02),
		inset 0 0 45px rgba(0, 0, 0, 0.84),
		0 10px 30px rgba(0, 0, 0, 0.36);
}

.castle-featured-live:before {
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 96, 78, 0.95),
		transparent
	);

	box-shadow:
		0 0 10px rgba(255, 96, 78, 0.24),
		0 0 22px rgba(255, 96, 78, 0.10);
}

.castle-featured-live .castle-featured-title {
	color: #ffe0db;

	text-shadow:
		0 0 8px rgba(255, 110, 85, 0.30),
		0 1px 1px #000;
}

.castle-featured-live .castle-featured-guild {
	color: #ff826f;
}

.castle-featured-live .castle-featured-panel {
	border-color: rgba(255, 96, 78, 0.12);
}

.castle-featured-live .castle-featured-panel:before {
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 96, 78, 0.34),
		transparent
	);
}

.castle-featured-live-text {
	margin-top: 4px;
	font-size: 40px;
	line-height: 42px;
	font-weight: 900;
	color: #ff644e;
	letter-spacing: 1px;

	text-shadow:
		0 0 10px rgba(255, 100, 78, 0.34),
		0 1px 2px #000;

	animation: castleLivePulse 1.25s ease-in-out infinite;
}

@keyframes castleLivePulse {

	0% {
		opacity: 0.84;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.84;
	}
}


/* ==========================================
   HOVER
   ========================================== */

.castle-featured:hover {
	filter: brightness(1.03);

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.02),
		inset 0 0 45px rgba(0, 0, 0, 0.82),
		0 12px 32px rgba(0, 0, 0, 0.38);
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 980px) {

	.castle-featured-content {
		padding: 18px 18px 20px;
	}

	.castle-featured-grid {
		grid-template-columns: 1fr;
	}

	.castle-featured-status-head {
		min-height: 0;
	}

	.castle-featured-panel-event {
		min-height: 0;
	}

	.castle-featured-countdown {
		font-size: 38px;
		line-height: 42px;
	}

}

@media (max-width: 700px) {

	.castle-featured-header {
		padding: 12px 14px 11px;
	}

	.castle-featured-title {
		font-size: 19px;
		line-height: 21px;
		letter-spacing: 2px;
	}

	.castle-featured-title:before,
	.castle-featured-title:after {
		width: 16px;
		margin-left: 7px;
		margin-right: 7px;
	}

	.castle-featured-subtitle {
		font-size: 8px;
		letter-spacing: 1.4px;
	}

	.castle-featured-content {
		padding: 14px 12px 16px;
	}

	.castle-featured-grid {
		gap: 14px;
	}

	.castle-featured-panel {
		padding: 16px 14px;
	}

	.castle-featured-status-head {
		display: block;
		text-align: center;
	}

	.castle-featured-logo {
		width: 100%;
		min-width: 0;
		margin-bottom: 12px;
	}

	.castle-featured-guild {
		font-size: 20px;
		line-height: 22px;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}

	.castle-featured-master {
		font-size: 12px;
		line-height: 16px;
	}

	.castle-featured-tags {
		justify-content: center;
	}

	.castle-featured-next-stage {
		font-size: 13px;
		line-height: 17px;
	}

	.castle-featured-countdown {
		font-size: 32px;
		line-height: 36px;
		white-space: normal;
	}

	.castle-featured-live-text {
		font-size: 30px;
		line-height: 32px;
	}

	.castle-featured-event-meta {
		font-size: 10px;
		line-height: 12px;
	}

}

@media (max-width: 480px) {

	.castle-featured-pill {
		padding: 6px 10px;
	}

	.castle-featured-pill-label {
		font-size: 7px;
	}

	.castle-featured-pill-value {
		font-size: 10px;
	}

}