:root {
    --primary-color: #3C096C;
    --primary-mid: #5A189A;
    --primary-light: #9D4EDD;
    --secondary-color: #FF9100;
    --secondary-light: #FFC880;
    --background-color: #0a0612;
    --surface-color: rgba(60, 9, 108, 0.1);
    --surface-light: rgba(90, 24, 154, 0.15);
    --text-color: #ffffff;
    --text-muted: #a8a8b0;
	--accent-green: #10b981;
	--border-color: rgba(157, 78, 221, 0.25);

	--font-family: 'Barlow', sans-serif;

	--max-width: 1200px;
	--spacing: clamp(1rem, 3vw, 1.5rem);
}

* {
	box-sizing: border-box;
}

a {
	text-decoration: auto;
    	color: inherit;
}

body {
	font-family: var(--font-family);
	background: var(--background-color);
	color: var(--text-color);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	position: relative;
	line-height: 1.6;
}

/* Background with floating blocks */
.grid-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.grid-background::before,
.grid-background::after {
	content: '';
	position: absolute;
	border-radius: 0.5rem;
	opacity: 0.04;
	border: 1px solid rgba(157, 78, 221, 0.08);
}

.grid-background::before {
	width: 250px;
	height: 250px;
	top: 10%;
	right: 8%;
	background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
	transform: rotate(15deg);
	box-shadow: 0 8px 32px rgba(255, 145, 0, 0.08);
}

.grid-background::after {
	width: 180px;
	height: 180px;
	bottom: 15%;
	left: 5%;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	transform: rotate(-20deg);
	box-shadow: 0 8px 32px rgba(60, 9, 108, 0.12);
}

.floating-block {
	position: absolute;
	border-radius: 0.5rem;
	opacity: 0.04;
	border: 1px solid rgba(157, 78, 221, 0.08);
}

.floating-block-1 {
	width: 120px;
	height: 120px;
	top: 45%;
	right: 15%;
	background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
	transform: rotate(25deg);
	box-shadow: 0 6px 24px rgba(157, 78, 221, 0.1);
}

.floating-block-2 {
	width: 90px;
	height: 90px;
	top: 65%;
	right: 5%;
	background: linear-gradient(135deg, var(--secondary-color), var(--primary-mid));
	transform: rotate(-15deg);
	box-shadow: 0 6px 24px rgba(255, 145, 0, 0.08);
}

.floating-block-3 {
	width: 140px;
	height: 140px;
	top: 35%;
	left: 10%;
	background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
	transform: rotate(10deg);
	box-shadow: 0 6px 24px rgba(90, 24, 154, 0.1);
}

.page-container {
	position: relative;
	z-index: 1;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--spacing);
}

/* Header */
header {
	text-align: center;
	padding: 3rem 0 2rem;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--secondary-light);
	text-transform: uppercase;
	padding: 0.4rem 1rem;
	border-radius: 0.375rem;
	margin-bottom: 1rem;
	background: rgba(255, 145, 0, 0.1);
	border: 1.5px solid var(--secondary-color);
}

header h1 {
	font-size: clamp(2.5rem, 7vw, 4rem);
	font-weight: 900;
	margin: 0 0 0.5rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--text-color);
}

header p {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--primary-light);
	margin: 0;
	font-weight: 500;
}

/* Main content layout */
main {
	display: grid;
	gap: 2rem;
}

/* Hero section */
.hero-section {
	display: grid;
	gap: 1.5rem;
}

/* Connection card */
.connection-card {
	background: linear-gradient(135deg, var(--surface-color), var(--surface-light));
	border: 1.5px solid var(--border-color);
	border-radius: 1rem;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}


.card-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.status-indicator {
	width: 6px;
	height: 6px;
	background: var(--accent-green);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.address {
	font-family: 'Courier New', monospace;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-color);
	background: rgba(157, 78, 221, 0.15);
	border: 1.5px solid var(--secondary-color);
	padding: 1.25rem 2rem;
	border-radius: 0.75rem;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	text-align: center;
	box-shadow: 0 4px 12px rgba(255, 145, 0, 0.1);
}

.address:hover {
	background: rgba(157, 78, 221, 0.2);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 145, 0, 0.2);
}

.address:active {
	transform: scale(0.98);
}

.copied {
	border-color: var(--accent-green) !important;
	background: rgba(16, 185, 129, 0.1) !important;
	color: var(--accent-green) !important;
}

/* Stats grid */
.stats-wrapper {
	background: linear-gradient(135deg, var(--surface-color), var(--surface-light));
	border: 1.5px solid var(--border-color);
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

#status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	width: 100%;
}

.status-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: all 0.2s ease;
}

.status-item:hover {
	transform: translateY(-2px);
}

.status-item h3 {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0;
}

.status-item .value {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--primary-light);
	line-height: 1;
	margin: 0;
}

.loading {
	color: var(--text-muted);
	font-style: italic;
	font-size: 0.875rem;
}

/* Server info section */
#server-info {
	margin: 0;
}

.bulletins-container {
        background: var(--surface-color);
        border: 1.5px solid var(--border-color);
        border-radius: 1rem;
        padding: 2rem;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.bulletins-container h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-color);
        margin: 0 0 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}
.bulletins-container h4 {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.bulletins-container span.command {
        font-size: 1rem;
        font-weight: 400;
	color: var(--secondary-light);
        margin: 0 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}

.bulletins-container .value {
        display: flex;
        gap: 1rem;
        min-height: 60px;
}

.bulletin-post {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background: var(--surface-light);
        border: 1.5px solid var(--border-color);
        border-radius: 0.75rem;
        transition: all 0.2s ease;
}

.bulletin-post:hover {
        background: var(--background-color);
        border-color: var(--primary-light);
        transform: translateY(-3px);
}

.players-container {
	background: var(--surface-color);
	border: 1.5px solid var(--border-color);
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.players-container h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-color);
	margin: 0 0 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

#players-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 1rem;
	min-height: 60px;
}

#players-list:empty::after {
	content: 'Žádní hráči momentálně nejsou online';
	color: var(--text-muted);
	font-size: 0.9rem;
	padding: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1;
	background: var(--surface-light);
	border-radius: 0.5rem;
	font-style: italic;
}

.player-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--surface-light);
	border: 1.5px solid var(--border-color);
	border-radius: 0.75rem;
	transition: all 0.2s ease;
}

.player-item:hover {
	background: var(--background-color);
	border-color: var(--primary-light);
	transform: translateY(-3px);
}

.player-item img {
	width: 48px;
	height: 48px;
	border-radius: 0.375rem;
	image-rendering: pixelated;
}

.player-item span {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-color);
	text-align: center;
	word-break: break-word;
}

/* Map section */
.map-section {
	margin: 0;
}

.section-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.section-header h3 {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--text-color);
	margin: 0 0 0.25rem;
	letter-spacing: -0.01em;
}

.section-header p {
	color: var(--text-muted);
	margin: 0;
	font-size: 0.95rem;
}

#map-container {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	border: 1.5px solid var(--border-color);
	background: var(--surface-color);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

#map-iframe {
	width: 100%;
	height: 650px;
	border: none;
	display: block;
}

/* Footer */
footer {
	text-align: center;
	padding: 2rem 0 1rem;
	margin-top: 0.5rem;
}

.last-updated {
	font-size: 0.75rem;
	color: var(--text-muted);
	opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
	#status-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	header {
		padding: 2rem 0 1.5rem;
	}

	main {
		gap: 1.5rem;
	}

	.hero-section {
		gap: 1.5rem;
	}

	.connection-card {
		padding: 1.5rem;
		gap: 1rem;
	}

	.stats-wrapper {
		padding: 1.5rem;
	}

	#status-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.address {
		font-size: 1.25rem;
		padding: 1rem 1.5rem;
	}

	.status-item .value {
		font-size: 1.5rem;
	}

	.players-container {
		padding: 1.5rem;
	}

	#players-list {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 0.75rem;
	}

	.section-header {
		margin-bottom: 1rem;
	}

	#map-iframe {
		height: 400px;
	}
}

@media (max-width: 480px) {
	main {
		gap: 1.25rem;
	}

	.hero-section {
		gap: 1.25rem;
	}

	.connection-card {
		padding: 1.25rem;
		gap: 0.875rem;
	}

	.stats-wrapper {
		padding: 1.25rem;
	}

	#status-grid {
		gap: 0.875rem;
	}

	.address {
		font-size: 1.125rem;
		padding: 0.875rem 1.25rem;
	}

	.players-container {
		padding: 1.25rem;
	}

	#players-list {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	}

	.section-header {
		margin-bottom: 0.875rem;
	}

	.section-header h3 {
		font-size: 1.5rem;
	}
}

/* Accessibility */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Utility */
.hidden {
	display: none;
}

/* Map Placeholder */
.map-placeholder {
	width: 100%;
	height: 650px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--surface-color), var(--surface-light));
	border-radius: 0.5rem;
}

.placeholder-content {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 2rem;
}

.placeholder-icon {
	font-size: 4rem;
	opacity: 0.5;
	filter: grayscale(100%);
}

.placeholder-content h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-color);
	margin: 0;
	opacity: 0.8;
}

.placeholder-content p {
	font-size: 1rem;
	color: var(--text-muted);
	margin: 0;
	opacity: 0.6;
}

@media (max-width: 768px) {
	.map-placeholder {
		height: 400px;
	}

	.placeholder-icon {
		font-size: 3rem;
	}

	.placeholder-content h3 {
		font-size: 1.25rem;
	}

	.placeholder-content p {
		font-size: 0.875rem;
	}
}
