/* Modern Browse Cards Styles */

/* Players Database Header */
.players-database-header {
	background: #1f2937;
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 0.5rem;
	text-align: center;
	position: relative;
}

.players-database-header h1 {
	color: white;
	font-size: 2rem;
	font-weight: 700;
	margin-top: 0rem;
	margin-bottom: 1rem;
}

.filters-toggle-btn {
	background: #daa520;
	color: #1f2937;
	border: none;
	padding: 0.8rem 2rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.filters-toggle-btn i {
	transition: transform 0.3s ease;
}

.filters-toggle-btn.active i {
	transform: rotate(180deg);
}

/* Filters Container */
.filters-container {
	background: #1f2937;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.filters-container.active {
	max-height: fit-content;
	/* Large enough to show all content */
	padding: 2rem;
}

.filters-content {
	padding: 0;
}

.filters-content h3 {
	color: #daa520;
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

/* Athletes Results Bar */
.athletes-results-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding: 1rem 1.5rem;
	background: #1f2937;
	border-radius: 8px;

	flex-wrap: wrap;
	gap: 1rem;
}

.results-count span {
	font-size: 1.1rem;
	font-weight: 600;
	color: white;
}

.sort-options select {
	padding: 0.6rem 1rem;

	border-radius: 6px;
	font-size: 0.9rem;
	background: white;
	cursor: pointer;
	color: black;
	transition: border-color 0.3s ease;
}

.sort-options select:focus {
	outline: none;
	border-color: #daa520;
}

/* Browse header - Legacy styles for compatibility */
.browse-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #1f2937;
	border-radius: 12px;
}

.browse-header h1 {
	color: white;
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0;
}

.filter-btn {
	background: #daa520;
	color: #1f2937;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.athletes-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
	padding: 2rem 0;
	justify-content: center;
	align-items: stretch;
}

.player-card-modern {
	background: #e4f1f1;
	border-radius: 16px;
	padding: 0;

	text-align: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	height: 320px;
	/* Fixed height for consistent card sizes */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
}

.player-card-modern:hover {
	transform: translateY(-6px);

	border-color: #e2e8f0;
}

.player-photo-modern {
	width: 120px;
	height: 120px;
	margin: 20px auto 0;
	border-radius: 50%;
	overflow: hidden;

	position: relative;
	border: 2px solid black;
	flex-shrink: 0;
	/* Prevent shrinking */
	transition: transform 0.3s ease;
}

.player-card-modern:hover .player-photo-modern {
	transform: scale(1.05);
}

.player-photo-modern img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.player-info-modern {
	padding: 0;
	margin-top: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.player-name-section {
	background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;

}

.player-name-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.5s ease;
}

.player-card-modern:hover .player-name-section::before {
	left: 100%;
}

.player-name {
	font-size: 14px;
	font-weight: 200;
	color: black;
	margin: 0;
	padding: 14px 16px;
	text-align: center;
	letter-spacing: 0.5px;
	line-height: 1.2;
	text-transform: uppercase;
	min-height: 48px;
	/* Minimum height for consistency */
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 1;
}

.player-details-section {
	background: white;
	padding: 12px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 0 0 16px 16px;
}

.player-details {
	color: #374151;
	font-size: 12px;
	margin: 2px 0;
	padding: 4px 0;
	text-align: left;
	font-weight: 900;
	letter-spacing: 0.3px;
	border-bottom: none;
	background: transparent;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.player-details:last-child {
	margin-bottom: 0;
}

.player-card-modern:hover .player-details {
	color: #1f2937;
}

.btn-profile-view {
	display: none;
	/* Hide the button to match the image */
}

/* Filter header update */
.results-header h3 {
	color: #1f2937;
	font-size: 1.5rem;
	font-weight: 600;
}

/* Browse section header */
.browse-section {
	padding: 1rem 0;
	background: #0a1628;
	min-height: 100vh;
}

.browse-section .container {
	max-width: 1400px;
	/* Increased container width for better card distribution */
	margin: 0 auto;
	padding: 0 1rem;
}

/* Athletes Grid Container */
.athletes-grid {
	margin-top: 2rem;
}

/* Pagination styles */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
	padding: 2rem 0;
}

.page-btn {
	background: #ffffff;

	color: #374151;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
	min-width: 40px;
	text-align: center;
}

.page-btn:hover:not(:disabled) {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.page-btn.active {
	background: #DAA520;

}

.page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Sport tags styling */
.sport-tags {
	background: #1f2937;
	padding: 1.5rem;
	border-radius: 12px;
	margin-bottom: 2rem;
}

.sport-tags h3 {
	color: white;
	font-size: 1.3rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.tag-btn {
	background: #374151;
	color: white;
	border: none;
	padding: 0.7rem 1.2rem;
	border-radius: 8px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tag-btn:hover,
.tag-btn.active {
	background: #daa520;
	color: #1f2937;
}

/* Responsive design - Updated for new layout */
@media (max-width: 768px) {
	.players-database-header {
		padding: 1.5rem;
		margin-bottom: 1rem;
	}

	.players-database-header h1 {
		font-size: 1.5rem;
		margin-bottom: 0.8rem;
	}

	.filters-toggle-btn {
		padding: 0.6rem 1.5rem;
		font-size: 0.9rem;
	}

	.athletes-results-bar {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
	}

	.results-count span {
		font-size: 1rem;
	}

	.sort-options select {
		width: 100%;
		padding: 0.8rem;
	}

	.athletes-grid-cards {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 1.5rem;
		padding: 1rem 0;
	}

	.player-card-modern {
		max-width: none;
		height: 280px;
		/* Adjusted height for mobile */
	}

	.player-photo-modern {
		width: 90px;
		height: 90px;
		margin: 15px auto 0;
	}

	.player-name {
		font-size: 12px;
		padding: 12px 12px;
		min-height: 40px;
	}

	.player-details {
		font-size: 11px;
		margin: 2px 0;
	}

	.player-details-section {
		padding: 12px;
	}

	.filter-group {
		padding: 1rem;
		margin-bottom: 0.8rem;
	}

	.checkbox-group {
		gap: 0.6rem;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.athletes-results-bar {
		padding: 0.8rem;
	}

	.results-count {
		text-align: center;
	}

	.sort-options {
		width: 100%;
	}

	.sort-options select {
		width: 100%;
	}

	.athletes-grid-cards {
		grid-template-columns: 1fr;
		gap: 1rem;
		max-width: 280px;
		margin: 0 auto;
	}

	.player-card-modern {
		height: 300px;
	}

	.player-photo-modern {
		width: 80px;
		height: 80px;
	}

	.player-name {
		font-size: 11px;
		padding: 10px 10px;
		min-height: 36px;
	}

	.player-details {
		font-size: 10px;
		margin: 4px 0;
	}

	.player-details-section {
		padding: 10px;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.athletes-results-bar {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.results-count {
		order: 1;
	}

	.sort-options {
		order: 2;
		width: 100%;
	}

	.sort-options select {
		width: 100%;
	}
}

/* Input range styling for filters - Updated */
.input-range {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.input-range input[type="number"] {
	width: 70px;
	padding: 0.6rem 0.8rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	font-size: 0.9rem;
	text-align: center;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	transition: border-color 0.3s ease;
}

.input-range input[type="number"]:focus {
	outline: none;
	border-color: #daa520;
}

.input-range input[type="number"]::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.input-range span {
	color: #daa520;
	font-size: 0.9rem;
	font-weight: 500;
}

/* Filter Input Styles - Updated */
.filter-input {
	width: 100%;
	padding: 0.8rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	font-size: 0.9rem;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	transition: border-color 0.3s ease;
}

.filter-input:focus {
	outline: none;
	border-color: #daa520;

}

.filter-input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.filter-group {
	background: rgba(255, 255, 255, 0.1);
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-group h4 {
	color: #daa520;
	margin-bottom: 1rem;
	font-size: 1rem;
	font-weight: 600;
}

.filter-select {
	width: 100%;
	padding: 0.8rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-size: 0.9rem;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.filter-select:focus {
	outline: none;
	border-color: #daa520;
}

.filter-select option {
	background: #1f2937;
	color: white;
}

.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.checkbox-group label {
	color: white;
	font-size: 0.9rem;
	display: flex;
	cursor: pointer;
	text-align: justify;
	transition: color 0.3s ease;
}

.checkbox-group label:hover {
	color: #daa520;
}

.checkbox-group input[type="checkbox"] {
	margin-right: 0.8rem;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.filter-reset {

	color: black;
	border: none;
	width: 100%;
	padding: 1rem;
	margin-top: 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.filter-reset:hover {
	background: #b91c1c;
}

.input-range {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.input-range input[type="number"] {
	width: 60px;
	padding: 0.4rem 0.6rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 0.9rem;
	text-align: center;
}

.input-range input[type="number"]:focus {
	outline: none;
	border-color: #daa520;

}

.input-range span {
	color: #6b7280;
	font-size: 0.9rem;
}

/* Animations */
@keyframes slideInFromLeft {
	from {
		transform: translateX(-100%);
		opacity: 0;
	}

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

@keyframes slideDown {
	from {
		max-height: 0;
		opacity: 0;
	}

	to {
		max-height: 2000px;
		opacity: 1;
	}

	from {
		transform: translateX(-100%);
		opacity: 0;
	}

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

/* Filter Input Styles */
.filter-input {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.9rem;
	background: white;
	transition: border-color 0.3s ease;
}

.filter-input:focus {
	outline: none;
	border-color: #daa520;

}

.filter-input::placeholder {
	color: #9ca3af;
}

/* Cities filter region styling */
.checkbox-group h5 {
	color: white;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 15px 0 8px 0;
	padding: 8px 12px;
	background: rgba(255, 215, 0, 0.1);
	border-radius: 4px;
	border-left: 3px solid #daa520;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.checkbox-group h5:hover {
	background: rgba(255, 215, 0, 0.2);
	transform: translateX(2px);
}

.checkbox-group h5::after {
	content: '\f078';
	/* FontAwesome chevron-down */
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	font-size: 0.8rem;
	transition: transform 0.3s ease;
}

.checkbox-group h5.expanded::after {
	transform: rotate(180deg);
}

.checkbox-group .expand {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	margin-left: 15px;
}

.checkbox-group .expand.expanded {
	max-height: fit-content;
	/* Large enough to show all cities */
	transition: max-height 0.5s ease-in;
}

.checkbox-group .expand label {
	margin-left: 0;
	/* Reset margin since they're already inside the indented expand div */
	color: rgba(255, 255, 255, 0.9);
	display: block;
	margin-bottom: 8px;
}

.checkbox-group h5:first-child {
	margin-top: 5px;
}

.checkbox-group label {
	margin-left: 15px;
	color: rgba(255, 255, 255, 0.9);
}

.checkbox-group label input[type="checkbox"] {
	margin-right: 8px;
	accent-color: #ffd700;
}