﻿body {
	background-color: #000;
	font-family: Arial, Helvetica, sans-serif;
}

.stats-container {
	display: flex;
	gap: 12px;
	padding: 0px;
}

.stat-card {
	flex: 1;
	background-color: #bfbfbf;
	/*background-color: #f6ecd5;*/
	/*#c68633;*/ /* gold body */
	color: #000000;
	border-radius: 5px;
	overflow: hidden;
	height: 150px;
	/*box-shadow: 0 8px 12px -4px rgba(0, 0, 0, 0.35);*/
	/*box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);*/
}

/*#e8d299;*/
.stat-header {
	background-color: #666666;
	/*#8b5a1e;*/ /* darker top bar */
	color: #ffffff;
	/*color: #000000;*/
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	padding: 8px 0;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.stat-body {
	height: calc(100% - 32px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	padding: 5px 0px 10px 0px;
}

.stat-value {
	color: #000000;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 10px;
}

.stat-rank {
	background-color: #2b1d0f; /* dark oval */
	color: #ffffff;
	font-size: 13px;
	padding: 6px 18px;
	border-radius: 999px;
}

.gvheaderStats {
	/*	background-color: #e8d299;
	color: #000000;*/
	background-color: #666666;
	color: #ffffff;
	border: solid 1px #d9d9d9;
	height: 40px;
	text-align: center;
	font-size: small;
}








/*Game Statistics CSS*/

/* Main container */
.StatsContainer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	/*background: #f2f2f2;*/ /* soft gray */
	background: transparent;
	padding: 15px 0px;
	/*border: 1px solid #f2f2f2;*/
	border-radius: 2px;
	gap: 30px;
}

/* Left section (team info) */
.StatsTeam {
	display: flex;
	align-items: center;
	font-size: 14px;
	gap: 12px;
}

/* Right section (buttons in one line) */
.StatsButtons {
	display: flex;
	flex-direction: row; /* all buttons in one line */
	gap: 4px; /* spacing between buttons */
}

/* Transparent professional button */
.StatsButton {
	background: transparent !important;
	border: 1px solid #666666;
	color: #666666 !important;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: 0.2s ease; /* smooth color change */
}

	/* Hover effect: text + border turn red */
	.StatsButton:hover {
		color: #990000 !important;
		border-color: #990000;
	}

/* Transparent professional button */
.StatsDelButton {
	/*background: transparent !important;*/
	background-color: #ffffff;
	border: 1px solid #990000;
	color: #990000 !important;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: 0.2s ease; /* smooth color change */
}

	/* Hover effect: text + border turn red */
	.StatsDelButton:hover {
		color: #FFFFFF !important;
		border-color: #990000;
		background-color: #990000;
	}







/* ===========================
   BASE STYLES (Desktop First)
   =========================== */
.btncontainer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 60px;
	background-color: #FFFFFF;
	border-top: 1px solid #666666;
	border-bottom: 2px solid #666666;
	box-shadow: 0 4px 8px rgba(0,0,0,0.25), /* bottom shadow */
	0 -4px 8px rgba(0,0,0,0.15); /* top shadow */
}

.left-side {
	color: #204060;
	height: 60px;
	display: flex;
	align-items: center;
	padding: 0 5px;
	font-size: 14px;
}

.right-side {
	display: flex;
	height: 60px;
	align-items: center;
}

	.right-side .asp-btn {
		height: 60px;
		background: transparent;
		border: none;
		border-left: 1px solid #666666;
		color: #666666;
		padding: 0 15px;
		font-size: 14px;
		cursor: pointer;
	}

		.right-side .asp-btn:first-child {
			border-left: none;
		}

		.right-side .asp-btn:hover {
			color: #990000;
		}


/* ===========================
   RESPONSIVE FIXES
   =========================== */

/* 📱 Small Phones (up to 480px) */
@media (max-width: 480px) {
	.btncontainer {
		height: 50px;
	}

	.left-side {
		font-size: 12px;
		padding: 0 3px;
		height: 50px;
	}

	.right-side .asp-btn {
		height: 50px;
		padding: 0 10px;
		font-size: 12px;
	}
}

/* 📱 Larger Phones & Small Tablets (481px–768px) */
@media (max-width: 768px) {
	.btncontainer {
		height: 55px;
	}

	.left-side {
		font-size: 13px;
		height: 55px;
	}

	.right-side .asp-btn {
		height: 55px;
		padding: 0 12px;
		font-size: 13px;
	}
}

/* 💻 Large Screens (1200px+) */
@media (min-width: 1200px) {
	.left-side {
		font-size: 16px;
	}

	.right-side .asp-btn {
		font-size: 15px;
		padding: 0 20px;
	}
}
























/*.StatsHorizontalLine {
	height: 2px;
	background: linear-gradient(to right, #ffffff, #cccccc, #ffffff);
	margin: 15px 0;
}
*/

/*.StatsHorizontalLine {
	height: 3px;
	background: #d0d0d0;
	border-top: 1px solid #ffffff;
	border-bottom: 1px solid #b3b3b3;
	margin: 15px 0;
}
*/

/*.StatsHorizontalLine {
	height: 2px;
	background: linear-gradient(to right, #ffffff, #bbbbbb, #ffffff);
	border-radius: 2px;
	margin: 20px 0;
}*/

.StatsHorizontalLine {
	height: 2px;
	background: #e0e0e0;
	box-shadow: 0 0 6px rgba(0,0,0,0.3);
	margin: 20px 0;
}


/*
========================*/

/*.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}*/

.stats-wrapper {
	display: flex;
	gap: 15px;
	flex-wrap: nowrap; /* desktop: two columns side by side */
}

.gender-column {
	flex: 1 1 49.4%;
	max-width: 49.4%;
	box-sizing: border-box;
}

.cards {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 14px;
	scroll-snap-type: x mandatory; /* smooth snap */
	width: 100%;
	box-sizing: border-box;
}

.stat-card {
	flex: 0 0 45%; /* two cards visible on desktop */
	min-width: 315px;
	max-width: 315px;
	height: auto;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	border-bottom: none;
	overflow: visible;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
}

.card-title {
	padding: 10px;
	font-size: clamp(11px, 1vw, 12px);
	font-weight: 700;
	text-transform: uppercase;
	/*background: #1e7e34;*/
	background: #f59156;
	color: #fff;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.top-player {
	padding: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #e9f7ef;
	/*border-left: 6px solid #28a745;*/
	padding: 10px 14px;
}

	.top-player .name {
		font-weight: 700;
		color: #1e7e34;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 70%;
		font-size: clamp(12px, 1.2vw, 14px);
	}

	.top-player .stat {
		font-weight: 800;
		color: #1e7e34;
		font-size: clamp(14px, 1.5vw, 18px);
	}

.strank-list {
	max-height: none;
	overflow: visible;
}

.strank-row {
	display: flex;
	padding: 5px 14px;
	border-bottom: 1px solid #eee;
	font-size: clamp(11px, 1vw, 13px);
}

	.strank-row:last-child {
		border-bottom: none;
	}

.strank {
	width: 20px;
	/*color: #28a745;*/
	color: #31576f;
	font-weight: 600;
}

.player {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: clamp(11px, 1vw, 13px);
	color: #31576f;
}

.value {
	font-weight: bold;
	font-size: clamp(12px, 1.2vw, 14px);
	color: #31576f;
}

/* Tablet / small screens: one card per row */
@media (max-width: 900px) {
	.stats-wrapper {
		flex-wrap: wrap;
	}

	.gender-column {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.stat-card {
		flex: 0 0 90%; /* almost full width */
		min-width: auto;
	}
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.top-player .name, .player {
		font-size: 12px;
	}

	.value, .top-player .stat {
		font-size: 14px;
	}
}



/* Standings On Index Page */

/* GridView container */
.myGrid {
	width: 100%;
	margin: 0;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: none;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

	/* Prevent wrapping in all cells */
	.myGrid th span,
	.myGrid td span {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block;
	}

/* Header styling */
.myGridHeader {
	background-color: #f59156;
	color: white;
	font-weight: normal;
	font-size: 12px;
	text-align: center;
	padding: 6px;
}

/* Header cells */
.myGrid th {
	text-align: center;
	padding: 4px;
	background: #f59156;
	color: white;
	position: relative;
	z-index: 1;
	font-weight: normal; /* makes header font normal */
}

/* Row styling */
.myGridRow {
	background-color: white;
	color: #3F5368;
	font-size: 13px;
}

/* Row cells */
.myGrid td {
	padding: 4px 6px;
	background: white;
	position: relative;
	z-index: 0;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Remove separator under last row */
.myGrid tr:last-child td {
	border-bottom: none;
}

/*.myGrid tr:nth-child(8) td {
	font-weight: bold;
}*/

/* Scrollable wrapper */
.myGrid-wrapper {
	width: 100%;
	background: white;
	border-radius: 5px;
	overflow: hidden; /* required for rounded corners */
	position: relative; /* required for shadow on mobile */
	display: block;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* always visible */
}


/* =============================== */
/*   FIXED WIDTHS FOR FIRST 3      */
/*   FROZEN COLUMNS                */
/* =============================== */

/* Column widths */
.myGrid th:nth-child(1), .myGrid td:nth-child(1) {
	width: 30px;
	min-width: 30px;
	max-width: 30px;
}

.myGrid th:nth-child(2), .myGrid td:nth-child(2) {
	width: 50px;
	min-width: 50px;
	max-width: 50px;
}

/*.myGrid th:nth-child(3), .myGrid td:nth-child(3) {
	width: 200px;
	min-width: 200px;
	max-width: 200px;
}*/

/* Freeze first 3 columns */
.myGrid th:nth-child(1), .myGrid td:nth-child(1) {
	position: sticky;
	left: 0;
	z-index: 50;
}

.myGrid th:nth-child(2), .myGrid td:nth-child(2) {
	position: sticky;
	left: 30px;
	z-index: 50;
	box-shadow: 1px 0 0 rgba(0,0,0,0.1);
}

/*.myGrid th:nth-child(3), .myGrid td:nth-child(3) {
	position: sticky;
	left: 80px;
	z-index: 50;
	box-shadow: 1px 0 0 rgba(0,0,0,0.1);*/
	/*box-shadow: 5px 0 5px -2px rgba(0,0,0,0.3);*/
/*}*/

/* Responsive behavior */
@media screen and (max-width: 1200px) {
	.myGrid-wrapper {
		overflow-x: auto;
		overflow-y: hidden;
	}
}

@media screen and (max-width: 600px) {
	.myGrid-wrapper {
		overflow-x: auto;
		overflow-y: hidden;
	}
}
