/* Project: Meme Police Redesign
   File: servers.css
   Version: 4.2 (Right-Aligned Buttons)
*/

/* Container - Switched to Grid */
.server-container {
	display: grid;
	grid-template-columns: 1fr;
	/* Default to single column (mobile) */
	gap: 0.75rem;
	/* Reduced gap between cards */
	max-width: 1200px;
	/* Increased max-width to accommodate 2-wide layout */
	margin: 0 auto;
}

/* Tablet & Desktop: 2-Column Grid */
@media (min-width: 768px) {
	.server-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Card Base */
.server-card {
	background-color: rgba(255, 255, 255, 0.03);
	border: 1px solid #444;
	border-radius: 4px;
	padding: 0.75rem;
	/* Reduced padding (was 1rem) */
	transition: all 0.2s ease;
	/* Ensures height fills the grid row if one card has more content */
	height: fit-content;
}

.server-card:hover {
	background-color: rgba(255, 255, 255, 0.06);
	border-color: #666;
}

/* Header Area (Status + Name) */
.card-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	/* Reduced gap (was 1.5rem) */
	cursor: pointer;
}

.server-info h3 {
	margin: 0;
	font-size: 1.1rem;
	/* Slightly smaller header */
	color: #e0e0e0;
}

.server-info .version {
	font-size: 0.85rem;
	color: #888;
}

/* --- Status Badges --- */
.status-badge {
	display: inline-block !important;
	padding: 0.4rem 0.8rem;
	/* Compact badge */
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.8rem;
	/* Compact font */
	min-width: 100px;
	/* Slightly reduced width */
	text-align: center;
	text-transform: uppercase;
	color: #1a1b26;
	border: 1px solid transparent;
}

/* Badge Colors */
.status-badge.checking {
	background-color: #7f8fa6;
	color: #fff;
	animation: pulse 1.5s infinite;
}

.status-badge.online,
.status-badge.running {
	background-color: #4cd137;
	color: #000;
	box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
}

.status-badge.offline {
	background-color: #353b48;
	color: #dcdcdc;
	border-color: #7f8fa6;
}

.status-badge.starting {
	background-color: #fbc531;
	color: #000;
}

.status-badge.error {
	background-color: #c23616;
	color: #fff;
}

/* Details Section */
.card-details {
	margin-top: 0.75rem;
	/* Reduced margin */
	padding-top: 0.75rem;
	border-top: 1px dashed #444;
	animation: slideDown 0.3s ease;
	cursor: text;
}

.card-details.hidden {
	display: none;
}

.detail-row {
	display: flex;
	align-items: center;
	margin-bottom: 0.25rem;
	/* Tighter rows (was 0.5rem) */
	gap: 0.5rem;
	/* Closer elements */
}

.detail-row .label {
	color: #d4af37;
	font-weight: bold;
	min-width: 70px;
	/* Reduced label width slightly */
	font-size: 0.9rem;
}

.detail-row code {
	background: #000;
	padding: 2px 6px;
	/* Compact code block */
	font-family: monospace;
	color: #4cd137;
	border: 1px solid #333;
	font-size: 0.9rem;
}

.blur-text {
	filter: blur(4px);
	transition: filter 0.2s;
	cursor: pointer;
}

.blur-text:hover {
	filter: blur(0);
}

/* Copy Button - Right Aligned */
.btn-copy {
	background: #a01d26;
	color: white;
	border: none;
	padding: 2px 6px;
	/* Compact button */
	cursor: pointer;
	font-size: 0.75rem;
	border-radius: 2px;
	margin-left: auto;
	/* Pushes button to the far right */
}

.btn-copy:hover {
	background: #c23616;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
	.card-header {
		flex-direction: row-reverse;
		justify-content: space-between;
	}

	.status-badge {
		min-width: 90px;
		padding: 0.3rem 0.5rem;
		font-size: 0.8rem;
	}
}

/* Animations */
@keyframes pulse {
	0% {
		opacity: 0.7;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.7;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}