/* ============================================================
   TrivalRO Server Center
   Shared presentation for Server Status and Server Info.
   ============================================================ */

.server-center-section {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	padding: 36px 0 84px;
	overflow: hidden;
	border-top: 1px solid rgba(126,185,220,.26);
	border-bottom: 1px solid rgba(126,185,220,.28);
}

.server-center-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(244,250,253,.72) 28%, rgba(238,248,253,.64) 72%, rgba(255,255,255,.94) 100%),
		url('../../assets/background-3.jpg') center top / cover no-repeat;
	pointer-events: none;
}

.server-center-inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.server-center-title {
	width: fit-content;
	margin: 0 auto 8px;
	padding: 13px 31px 11px;
	border-radius: 999px;
	background: linear-gradient(180deg, #70c5ff 0%, #5bb5f1 56%, #4b9fdf 100%);
	box-shadow:
		inset 0 2px 1px rgba(255,255,255,.56),
		inset 0 -5px 0 rgba(22,102,164,.62),
		0 8px 16px rgba(48,104,151,.22);
	color: #fff !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: 2.7px !important;
	line-height: 1.08 !important;
	text-align: center;
	text-shadow: 2px 2px 3px rgba(28,75,112,.55);
	text-transform: uppercase;
}

.server-center-lead {
	max-width: 760px;
	margin: 0 auto 22px;
	color: #627a8c;
	font-family: 'Informb', sans-serif;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .25px;
	text-align: center;
}

.server-overview-panel,
.server-status-panel,
.server-class-panel {
	margin: 14px auto 0;
	border: 1px solid rgba(105,171,213,.34);
	border-bottom: 4px solid rgba(63,143,196,.56);
	border-radius: 17px;
	background: rgba(255,255,255,.93);
	box-shadow:
		0 10px 25px rgba(49,105,145,.10),
		inset 0 1px 0 rgba(255,255,255,.98);
	overflow: hidden;
}

.server-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 49px;
	padding: 11px 16px 9px;
	border-bottom: 1px solid rgba(92,160,205,.22);
	background: linear-gradient(180deg, #f2fbff 0%, #e4f4fd 100%);
}

.server-panel-head h3 {
	margin: 0 !important;
	border: 0 !important;
	color: #376985 !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: .7px !important;
	line-height: 1.15 !important;
	text-transform: uppercase;
}

.server-panel-dots {
	display: flex;
	gap: 5px;
}

.server-panel-dots i {
	display: block;
	width: 7px;
	height: 7px;
	border: 1px solid rgba(74,152,202,.38);
	border-radius: 50%;
	background: #f9fdff;
}

.server-panel-body {
	padding: 16px;
}

/* Server info totals */
.server-info-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0,1fr));
	gap: 11px;
}

.server-info-card {
	position: relative;
	min-width: 0;
	min-height: 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 10px 13px;
	border: 1px solid rgba(105,171,213,.27);
	border-bottom: 3px solid rgba(70,147,194,.48);
	border-radius: 13px;
	background: linear-gradient(180deg, #fff 0%, #f2faff 100%);
	box-shadow: 0 7px 16px rgba(52,108,147,.07), inset 0 1px 0 #fff;
	text-align: center;
}

.server-info-card::before {
	content: '';
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 2px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, transparent, rgba(67,176,236,.48), transparent);
}

.server-info-card span {
	order: 2;
	margin-top: 5px;
	color: #748c9d;
	font-family: 'Informb', sans-serif;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: .85px;
	line-height: 1.2;
	text-transform: uppercase;
}

.server-info-card strong {
	order: 1;
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #2d86bc;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.server-info-card--zeny strong {
	font-size: 16px;
	color: #b18425;
}

/* Class distribution */
.server-class-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 9px;
}

.server-class-row {
	min-width: 0;
	padding: 10px 11px 9px;
	border: 1px solid rgba(109,172,212,.23);
	border-radius: 11px;
	background: linear-gradient(180deg, #fbfdff, #f3f9fd);
}

.server-class-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
}

.server-class-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #4b7189;
	font-family: 'Informb', sans-serif;
	font-size: 10px;
	font-weight: 700;
}

.server-class-count {
	flex: 0 0 auto;
	color: #2d85b9;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 10px;
}

.server-class-meter {
	height: 6px;
	overflow: hidden;
	border: 1px solid rgba(105,169,209,.20);
	border-radius: 999px;
	background: #e8f3f9;
	box-shadow: inset 0 1px 2px rgba(52,98,126,.08);
}

.server-class-meter span {
	display: block;
	height: 100%;
	min-width: 2px;
	border-radius: inherit;
	background: linear-gradient(90deg, #66c8f6 0%, #2798d8 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.36);
}

/* Status */
.server-status-groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.server-status-grid-new {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
	justify-content: center;
	align-items: start;
	gap: 16px;
}

.server-world-card {
	overflow: hidden;
	border: 1px solid rgba(104,171,213,.30);
	border-bottom: 4px solid rgba(62,143,195,.56);
	border-radius: 14px;
	background: linear-gradient(180deg, #fff, #f4fbff);
	box-shadow: 0 7px 18px rgba(50,105,145,.08), inset 0 1px 0 #fff;
}

.server-world-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 13px 10px;
	border-bottom: 1px solid rgba(56,143,197,.24);
	background: linear-gradient(180deg, #5ec2f3 0%, #309fdc 100%);
}

.server-world-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #fff;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 11px;
	text-shadow: 0 1px 2px rgba(0,55,90,.52);
}

.server-player-pill {
	flex: 0 0 auto;
	padding: 5px 8px 4px;
	border: 1px solid rgba(255,255,255,.38);
	border-radius: 999px;
	background: rgba(17,81,120,.30);
	color: #fff;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 7px;
	letter-spacing: .2px;
	text-shadow: 0 1px 1px rgba(0,45,75,.42);
}

.server-node-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
	padding: 11px;
}

.server-node {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 45px;
	padding: 8px 9px;
	border: 1px solid rgba(108,171,212,.20);
	border-radius: 10px;
	background: #f5fbfe;
}

.server-node-copy {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.server-node-icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e7f5fc;
	box-shadow: inset 0 0 0 1px rgba(105,170,211,.28);
}

.server-node-icon::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transform: translate(-50%,-50%);
}

.server-node.is-online .server-node-icon::before {
	background: #36b76c;
	box-shadow: 0 0 0 4px rgba(54,183,108,.12);
}

.server-node.is-offline .server-node-icon::before {
	background: #d86262;
	box-shadow: 0 0 0 4px rgba(216,98,98,.12);
}

.server-node-label {
	color: #52758b;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 9px;
	letter-spacing: .2px;
}

.server-state {
	flex: 0 0 auto;
	padding: 5px 8px 4px;
	border-radius: 999px;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 7px;
	letter-spacing: .35px;
	text-transform: uppercase;
}

.server-state.is-online {
	border: 1px solid rgba(58,172,107,.30);
	background: #eaf9f1;
	color: #32875a;
}

.server-state.is-offline {
	border: 1px solid rgba(205,92,92,.30);
	background: #fff0f0;
	color: #b64e4e;
}

.server-world-footer {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 7px;
	padding: 0 11px 11px;
}

.server-world-stat {
	padding: 9px 8px 8px;
	border: 1px solid rgba(107,170,211,.22);
	border-radius: 9px;
	background: #eef8fd;
	text-align: center;
}

.server-world-stat span {
	display: block;
	margin-bottom: 2px;
	color: #8297a5;
	font-family: 'Informb', sans-serif;
	font-size: 6.5px;
	font-weight: 700;
	letter-spacing: .55px;
	text-transform: uppercase;
}

.server-world-stat strong {
	color: #317fa8;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 10px;
	font-weight: 400;
}

.server-status-empty {
	padding: 34px 20px;
	border: 1px dashed rgba(106,169,210,.48);
	border-radius: 14px;
	background: rgba(255,255,255,.74);
	color: #708696;
	font-family: 'Informb', sans-serif;
	font-size: 11px;
	text-align: center;
}

@media (max-width: 950px) {
	.server-info-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.server-class-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.server-status-grid-new {
		grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
		justify-content: center;
	}
}

@media (max-width: 650px) {
	.server-center-section { padding: 28px 0 58px; }
	.server-center-inner { width: min(100% - 24px, 1180px); }
	.server-center-title { font-size: 17px !important; letter-spacing: 2px !important; padding: 11px 20px 9px; }
	.server-info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.server-class-grid,
	.server-status-grid-new { grid-template-columns: 1fr; }
	.server-panel-head { align-items: flex-start; }
}
