/* Hub /gamemodes + cards grid (php_types) */

.gamemodes-hub {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0,0,0,.07);
	margin: 0 0 1.5rem 0;
}

.gamemodes-hub__hero {
	padding: 1.5rem 1.5rem 1.3rem;
	margin: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.gamemodes-hub__title {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	text-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.gamemodes-hub__sub {
	margin: 0.35rem 0 0 0;
	font-size: 0.92rem;
	color: rgba(255,255,255,.85);
	font-weight: 600;
}

.gamemodes-hub__lead {
	margin: 0;
	padding: 1rem 1.5rem 0.85rem;
	background: #f8fafc;
	border-bottom: 1px solid #eef0f3;
	font-size: 0.92rem;
	line-height: 1.6;
	color: #475569;
	max-width: 100%;
}

.gamemodes-hub__country-hint {
	margin: 0;
	padding: 0.75rem 1.5rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #334155;
	background: #f0f4f8;
	border-bottom: 1px solid #dde3ea;
}

.gamemodes-hub__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.7rem;
	padding: 1.1rem 1.25rem 1.35rem;
	background: #f8fafc;
	margin-top: 0;
}

@media (min-width: 600px) {
	.gamemodes-hub__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.gamemodes-hub__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gamemodes-hub__card {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 1rem 0.95rem;
	background: #fff;
	border: 1.5px solid #e4e7ec;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.13s ease;
}

.gamemodes-hub__card:hover {
	box-shadow: 0 5px 18px rgba(0,0,0,.1);
	border-color: #94a3b8;
	transform: translateY(-2px);
}

.gamemodes-hub__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.35rem;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.gamemodes-hub__icon--survival   { background: linear-gradient(135deg,#21ba45,#17a03a); }
.gamemodes-hub__icon--pvp        { background: linear-gradient(135deg,#db2828,#b91c1c); }
.gamemodes-hub__icon--skyblock   { background: linear-gradient(135deg,#00b5ad,#0891b2); }
.gamemodes-hub__icon--kitpvp     { background: linear-gradient(135deg,#a33333,#7f2020); }
.gamemodes-hub__icon--minigames  { background: linear-gradient(135deg,#38a169,#2d8f57); }
.gamemodes-hub__icon--factions   { background: linear-gradient(135deg,#6435c9,#4f27a0); }
.gamemodes-hub__icon--bedwars    { background: linear-gradient(135deg,#2185d0,#1a6fb8); }
.gamemodes-hub__icon--skywars    { background: linear-gradient(135deg,#6435c9,#4f27a0); }
.gamemodes-hub__icon--prison     { background: linear-gradient(135deg,#767676,#525252); }
.gamemodes-hub__icon--opprison   { background: linear-gradient(135deg,#a333c9,#832daa); }
.gamemodes-hub__icon--creative   { background: linear-gradient(135deg,#e03997,#c01f7d); }
.gamemodes-hub__icon--lifesteal  { background: linear-gradient(135deg,#a52a2a,#842020); }
.gamemodes-hub__icon--smp        { background: linear-gradient(135deg,#2d8f4e,#21703d); }
.gamemodes-hub__icon--parkour    { background: linear-gradient(135deg,#21ba45,#17a03a); }
.gamemodes-hub__icon--anarchy    { background: linear-gradient(135deg,#f2711c,#d45e0a); }
.gamemodes-hub__icon--hardcore   { background: linear-gradient(135deg,#2c2c2c,#111); }
.gamemodes-hub__icon--eggwars    { background: linear-gradient(135deg,#c9a227,#a68421); }
.gamemodes-hub__icon--battleroyale { background: linear-gradient(135deg,#a61e1e,#7c1212); }
.gamemodes-hub__icon--cops       { background: linear-gradient(135deg,#576270,#3d4955); }
.gamemodes-hub__icon--oppvp      { background: linear-gradient(135deg,#8b4513,#6d3410); }
.gamemodes-hub__icon--opfactions { background: linear-gradient(135deg,#b8860b,#9a7009); }
.gamemodes-hub__icon--skygrid    { background: linear-gradient(135deg,#2185d0,#1a6fb8); }
.gamemodes-hub__icon--pve        { background: linear-gradient(135deg,#16ab39,#11882e); }
.gamemodes-hub__icon--roleplay   { background: linear-gradient(135deg,#5829bb,#46219a); }
.gamemodes-hub__icon--economy    { background: linear-gradient(135deg,#008080,#006666); }
.gamemodes-hub__icon--vanilla    { background: linear-gradient(135deg,#8b7355,#70593f); }
.gamemodes-hub__icon--modpack    { background: linear-gradient(135deg,#6b4f9a,#553d84); }
.gamemodes-hub__icon--towny      { background: linear-gradient(135deg,#2d6a4f,#215439); }
.gamemodes-hub__icon--oneblock   { background: linear-gradient(135deg,#0ea5e9,#0284c7); }
.gamemodes-hub__icon--whitelist  { background: linear-gradient(135deg,#475569,#33404f); }
.gamemodes-hub__icon--default    { background: linear-gradient(135deg,#64748b,#4b5a6e); }

.gamemodes-hub__main {
	min-width: 0;
	flex: 1;
}

.gamemodes-hub__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.3rem;
}

.gamemodes-hub__name {
	font-weight: 700;
	font-size: 1rem;
	color: #1e293b;
	transition: color 0.15s ease;
}

.gamemodes-hub__head .angle.right.icon {
	margin: 0 !important;
	color: #94a3b8;
	font-size: 0.95rem;
	flex-shrink: 0;
	transition: color 0.15s ease, transform 0.15s ease;
}

.gamemodes-hub__card:hover .gamemodes-hub__name {
	color: #2563eb;
}

.gamemodes-hub__card:hover .gamemodes-hub__head .angle.right.icon {
	color: #2563eb;
	transform: translateX(2px);
}

.gamemodes-hub__desc {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #64748b;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gamemodes-hub__backwrap {
	padding: 0.85rem 1.25rem;
	background: #f8fafc;
	border-top: 1px solid #e4e7ec;
}
