/* ============ Minecraft Server Status — built on the main site theme ============ */

.mc-wrap {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 90px 20px 60px;
}

.back-link {
	position: fixed;
	top: 24px;
	left: 24px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease;
	z-index: 50;
}

.back-link:hover {
	color: var(--accent);
	transform: translateX(-3px);
}

.mc-card {
	width: min(560px, 100%);
	padding: 26px 30px 28px;
	box-shadow: 0 0 90px -24px var(--glow);
}

.mc-section-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--accent);
	margin-bottom: 18px;
	opacity: 0.85;
}

/* ---- Status header ---- */
.mc-status-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 20px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	margin: 0 0 22px;
	transition: border-color 0.4s ease, background 0.4s ease;
}

.mc-status-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #eab308;
	box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5);
	animation: mc-pulse 1.6s ease-in-out infinite;
}

.mc-status-text {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--text);
}

/* online */
.mc-wrap.is-online .mc-status-head {
	border-color: rgba(34, 197, 94, 0.4);
	background: rgba(34, 197, 94, 0.08);
}
.mc-wrap.is-online .mc-status-dot {
	background: #22c55e;
	animation: mc-pulse-green 2.2s ease-in-out infinite;
}
.mc-wrap.is-online #statusValue { color: #22c55e; }

/* offline */
.mc-wrap.is-offline .mc-status-head {
	border-color: rgba(239, 68, 68, 0.4);
	background: rgba(239, 68, 68, 0.08);
}
.mc-wrap.is-offline .mc-status-dot {
	background: #ef4444;
	animation: none;
	box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}
.mc-wrap.is-offline #statusValue { color: #ef4444; }

@keyframes mc-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5); }
	50%      { box-shadow: 0 0 0 7px rgba(234, 179, 8, 0); }
}
@keyframes mc-pulse-green {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
	50%      { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ---- Server head ---- */
.mc-server-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.mc-icon {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.12));
	border: 1px solid var(--border);
	color: var(--accent);
	overflow: hidden;
}

.mc-icon svg { width: 30px; height: 30px; }
.mc-icon img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

.mc-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.mc-motd {
	margin-top: 5px;
	font-size: 12.5px;
	color: var(--text-dim);
	line-height: 1.5;
}

/* ---- Info grid ---- */
.mc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 22px;
}

.mc-tile {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 16px 16px;
	border-radius: 13px;
	background: var(--surface);
	border: 1px solid var(--border);
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.mc-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--text-dim);
}

.mc-value {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	word-break: break-all;
}

.mc-ip-tile {
	cursor: pointer;
	position: relative;
}

.mc-ip-tile:hover {
	border-color: rgba(139, 92, 246, 0.45);
	background: var(--surface-hover);
	transform: translateY(-2px);
}

.mc-copy-hint {
	font-size: 10.5px;
	color: var(--accent);
	opacity: 0.75;
}

.mc-ip-tile.copied .mc-copy-hint { color: #22c55e; opacity: 1; }

/* ---- Refresh ---- */
.mc-refresh {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(6, 182, 212, 0.8));
	border: none;
	border-radius: 13px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.mc-refresh svg { width: 17px; height: 17px; transition: transform 0.5s ease; }
.mc-refresh:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--glow); }
.mc-refresh:active { transform: translateY(0); }
.mc-refresh.loading { opacity: 0.7; pointer-events: none; }
.mc-refresh.loading svg { animation: mc-spin 0.8s linear infinite; }

@keyframes mc-spin { to { transform: rotate(360deg); } }

.mc-updated {
	text-align: center;
	font-size: 11.5px;
	margin-top: 14px;
	min-height: 1.2em;
}

@media (max-width: 480px) {
	.mc-grid { grid-template-columns: 1fr; }
	.mc-server-head { flex-direction: column; text-align: center; }
}
