/**
 * Team Players Grid Styles
 * 球员卡片网格样式
 */

/* Main container */
.team-players-archive {
	background-color: #f5f5f5;
	padding: 40px 0;
}

.team-players-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 20px;
}

.team-players-header .page-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #001a4d;
	margin-bottom: 15px;
}

.team-players-header .archive-description {
	font-size: 1.1rem;
	color: #666;
	max-width: 800px;
	margin: 0 auto;
}

/* Grid layout */
.team-players-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

/* Player card */
.player-card {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.player-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Player image */
.player-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(180deg, #e0e7ff 0%, #ffffff 100%);
}

.player-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.player-image.placeholder {
	opacity: 0.3;
}

/* Player info section */
.player-info {
	position: relative;
	padding: 20px;
	border-top: 4px solid #001a4d;
	min-height: 140px;
	display: flex;
	gap: 15px;
}

/* Color variations for different positions */
.player-card.goalkeeper .player-info {
	border-top-color: #00b8d4; /* 蓝色 - 守门员 */
}

.player-card.defender .player-info {
	border-top-color: #001a4d; /* 深蓝色 - 后卫 */
}

.player-card.midfielder .player-info {
	border-top-color: #ffd600; /* 黄色 - 中场 */
}

.player-card.forward .player-info {
	border-top-color: #ff1744; /* 红色 - 前锋 */
}

/* Player number */
.player-number-container {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.player-number {
	font-size: 4rem;
	font-weight: 900;
	color: #001a4d;
	line-height: 1;
	font-family: 'Arial Black', Arial, sans-serif;
	opacity: 0.15;
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 0;
}

/* Player details */
.player-details {
	flex: 1;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.player-name-cn {
	font-size: 1.5rem;
	font-weight: 700;
	color: #001a4d;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.player-name-en {
	font-size: 0.95rem;
	color: #666;
	margin: 0 0 4px 0;
	font-weight: 500;
}

.player-nationality {
	font-size: 0.9rem;
	color: #999;
	margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
	.team-players-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.team-players-header .page-title {
		font-size: 2rem;
	}

	.player-name-cn {
		font-size: 1.3rem;
	}

	.player-number {
		font-size: 3.5rem;
	}
}

@media screen and (max-width: 640px) {
	.team-players-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.team-players-archive {
		padding: 20px 0;
	}

	.team-players-header {
		margin-bottom: 30px;
	}

	.team-players-header .page-title {
		font-size: 1.75rem;
	}

	.player-info {
		padding: 15px;
		min-height: 120px;
	}

	.player-name-cn {
		font-size: 1.2rem;
	}

	.player-number {
		font-size: 3rem;
	}
}

/* Print styles */
@media print {
	.player-card {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
	}

	.player-card:hover {
		transform: none;
	}
}
