/* ============================================================
   SIDEBAR TOP GUILDS - MODERN DESIGN
   Created: 2025-01-04
   Matches: sidebar_toplevel_modern.css pattern
   ============================================================ */

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.05);
	}
}

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

@keyframes crownFloat {
	0%, 100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-3px) rotate(5deg);
	}
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.sidebar-module.sidebar-topguilds {
	background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%) !important;
	border: 2px solid #2a3440 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
	margin-bottom: 16px !important;
	animation: fadeIn 0.5s ease-out !important;
	position: relative !important;
}

.sidebar-module.sidebar-topguilds::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: -100% !important;
	width: 100% !important;
	height: 100% !important;
	background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent) !important;
	animation: shimmer 3s linear infinite !important;
	pointer-events: none !important;
	z-index: 0 !important;
}

/* ============================================================
   HEADER
   ============================================================ */

.sidebar-module.sidebar-topguilds .menu-header {
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
	padding: 12px 14px !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	border-bottom: 2px solid #FFD700 !important;
	position: relative !important;
	z-index: 1 !important;
}

.sidebar-module.sidebar-topguilds .menu-header::after {
	content: '' !important;
	position: absolute !important;
	bottom: -4px !important;
	left: 0 !important;
	right: 0 !important;
	height: 4px !important;
	background: linear-gradient(90deg, transparent, #FFD700, transparent) !important;
	filter: blur(4px) !important;
}

.sidebar-module.sidebar-topguilds .menu-icon {
	font-size: 20px !important;
	filter: drop-shadow(0 2px 4px rgba(15, 20, 26, 0.3)) !important;
}

.sidebar-module.sidebar-topguilds .menu-icon::before {
	content: '👑' !important;
	display: block !important;
	animation: crownFloat 3s ease-in-out infinite !important;
}

.sidebar-module.sidebar-topguilds .menu-title {
	font-size: 15px !important;
	font-weight: bold !important;
	color: #0f141a !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3) !important;
	flex: 1 !important;
}

/* ============================================================
   CONTENT
   ============================================================ */

.sidebar-module.sidebar-topguilds .menu-content {
	padding: 16px 14px !important;
	position: relative !important;
	z-index: 1 !important;
}

/* ============================================================
   GUILDS LIST
   ============================================================ */

.topguilds-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.topguild-item {
	display: grid !important;
	grid-template-columns: 28px 1fr auto !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px !important;
	background: linear-gradient(135deg, rgba(26, 35, 50, 0.4) 0%, rgba(15, 20, 26, 0.4) 100%) !important;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	overflow: hidden !important;
}

.topguild-item::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: -100% !important;
	width: 100% !important;
	height: 100% !important;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent) !important;
	transition: left 0.5s ease !important;
}

.topguild-item:hover::before {
	left: 100% !important;
}

.topguild-item:hover {
	background: linear-gradient(135deg, rgba(26, 35, 50, 0.6) 0%, rgba(15, 20, 26, 0.6) 100%) !important;
	border-color: #2a3440 !important;
	transform: translateX(4px) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================================
   RANK BADGE
   ============================================================ */

.topguild-rank {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 8px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	background: linear-gradient(135deg, #2a3440 0%, #1a2332 100%) !important;
	border: 2px solid #2a3440 !important;
	color: #8899aa !important;
	transition: all 0.3s ease !important;
}

/* Top 3 Special Ranks - REMOVED FOR UNIFORM LOOK */

/* ============================================================
   GUILD NAME
   ============================================================ */

.topguild-name {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #e6f8ff !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	transition: color 0.3s ease !important;
}

.topguild-item:hover .topguild-name {
	color: #FFD700 !important;
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
}

.topguild-item[data-rank="1"] .topguild-name {
	color: #FFD700 !important;
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
}

/* ============================================================
   KILLS BADGE
   ============================================================ */

.topguild-kills {
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	padding: 5px 10px !important;
	background: rgba(255, 68, 68, 0.15) !important;
	border: 2px solid rgba(255, 68, 68, 0.3) !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #ff8888 !important;
	white-space: nowrap !important;
	transition: all 0.3s ease !important;
}

.topguild-kills-icon {
	font-size: 14px !important;
}

.topguild-item:hover .topguild-kills {
	background: rgba(255, 68, 68, 0.25) !important;
	border-color: rgba(255, 68, 68, 0.5) !important;
	box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3) !important;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.topguilds-empty {
	text-align: center !important;
	padding: 40px 20px !important;
	color: #8899aa !important;
}

.topguilds-empty-icon {
	font-size: 48px !important;
	margin-bottom: 16px !important;
	opacity: 0.5 !important;
	animation: pulse 3s ease-in-out infinite !important;
}

.topguilds-empty-text {
	font-size: 14px !important;
	line-height: 1.6 !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
	.sidebar-module.sidebar-topguilds .menu-header {
		padding: 12px 14px !important;
	}

	.sidebar-module.sidebar-topguilds .menu-title {
		font-size: 14px !important;
	}

	.sidebar-module.sidebar-topguilds .menu-content {
		padding: 16px 12px !important;
	}

	.topguild-item {
		grid-template-columns: 28px 1fr auto !important;
		gap: 10px !important;
		padding: 10px !important;
	}

	.topguild-rank {
		width: 28px !important;
		height: 28px !important;
		font-size: 12px !important;
	}

	.topguild-item[data-rank="1"] .topguild-rank::before,
	.topguild-item[data-rank="2"] .topguild-rank::before,
	.topguild-item[data-rank="3"] .topguild-rank::before {
		font-size: 16px !important;
	}

	.topguild-name {
		font-size: 13px !important;
	}

	.topguild-kills {
		font-size: 12px !important;
		padding: 5px 10px !important;
	}
}

@media (max-width: 480px) {
	.topguild-item {
		grid-template-columns: 26px 1fr !important;
		gap: 8px !important;
	}

	.topguild-kills {
		grid-column: 2 / 3 !important;
		justify-self: start !important;
		margin-top: 4px !important;
	}

	.topguild-rank {
		width: 26px !important;
		height: 26px !important;
	}
}
