/* players-all-career-stats.css */

/* Базовые стили для обертки таблицы */
.player-all-career-stats-table-wrapper {
	width: 100% !important;
	min-width: 100%;
	overflow-x: auto !important;
}

.player-scrollable-table-container {
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 20px;
	width: 100% !important;
}

/* Общие стили для всех таблиц */
.player-all-career-stats-table,
.career-stats-table,
.national-stats-table,
.tournaments-summary-table {
	margin: 20px 0;
	position: relative;
	width: 100% !important;
	min-width: 800px;
	border-collapse: collapse;
	font-family: 'Roboto Condensed', Arial, sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	background: #fff;
}

/* Стили для ячеек таблицы */
.player-all-career-stats-table th,
.player-all-career-stats-table td,
.career-stats-table th,
.career-stats-table td,
.national-stats-table th,
.national-stats-table td,
.tournaments-summary-table th,
.tournaments-summary-table td {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: 1px solid #e0e0e0;
	padding: 12px 10px;
	text-align: center;
	color: #2c3e50;
}

/* Стили для заголовков */
.player-all-career-stats-table th,
.career-stats-table th,
.national-stats-table th,
.tournaments-summary-table th {
	background-color: #2c3e50;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	cursor: default;
	letter-spacing: 0.5px;
}

/* Чередующиеся строки (исключая итоговую) */
.player-all-career-stats-table tbody tr.data-row:nth-child(even) td,
.player-all-career-stats-table tbody tr:not(.totals-row):nth-child(even) td,
.career-stats-table tbody tr.data-row:nth-child(even) td,
.career-stats-table tbody tr:not(.totals-row):nth-child(even) td,
.national-stats-table tbody tr:nth-child(even) td,
.tournaments-summary-table tbody tr:nth-child(even) td {
	background-color: #f8f9fa;
}

/* Ховер эффект */
.player-all-career-stats-table tbody tr:hover td,
.career-stats-table tbody tr:hover td,
.national-stats-table tbody tr:hover td,
.tournaments-summary-table tbody tr:hover td {
	background-color: #e8f4f8 !important;
}

/* Фиксированные ширины колонок */
.col-season {
	width: 70px;
	min-width: 70px;
}

.col-year {
	width: 70px;
	min-width: 70px;
}

.col-team {
	width: 120px;
	min-width: 120px;
	text-align: left !important;
}

.col-tournament {
	width: 140px;
	min-width: 140px;
	text-align: left !important;
}

.col-games {
	width: 40px;
	min-width: 40px;
}

.col-minutes {
	width: 60px;
	min-width: 60px;
}

.col-pts {
	width: 50px;
	min-width: 50px;
	font-weight: 700;
	color: #d35400 !important;
}

/* Стили для процентных показателей */
.col-2fg-pct,
.col-3fg-pct,
.col-ft-pct {
	width: 50px;
	min-width: 50px;
	position: relative;
	cursor: help;
}

/* Новые стили для tooltip */
.col-2fg-pct[title],
.col-3fg-pct[title],
.col-ft-pct[title] {
	position: relative;
}

.col-2fg-pct[title]:hover::after,
.col-3fg-pct[title]:hover::after,
.col-ft-pct[title]:hover::after {
	content: attr(title);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 10px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	pointer-events: none;
}

/* Остальные статистические показатели */
.col-reb,
.col-ast,
.col-stl,
.col-blk,
.col-tov,
.col-fouls {
	width: 50px;
	min-width: 50px;
}

/* Стили для фильтров */
.player-filters {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 24px;
	background: var(--secondary-light) !important;
	padding: 16px;
	gap: 12px;
	border-radius: 3px;
}

.career-stats-item {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	flex-basis: 200px;
}

.player-filter-label {
	font-family: 'Roboto Condensed', Arial, sans-serif;
	font-size: 14px;
	color: #2c3e50;
	text-transform: uppercase;
	text-align: left;
	margin-bottom: 1px;
	font-weight: 400;
}

.player-filter-select {
	width: 100%;
	background-color: #fff;
	font-family: 'Roboto Condensed', Arial, sans-serif;
	color: #2c3e50;
	border-radius: 3px;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 10px 35px 10px 15px;
	border: 1px solid #2c3e50 !important;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232c3e50' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
}

.player-filter-select option {
	width: 200px;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	color: #2c3e50;
	letter-spacing: 0.5px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}


/* Ссылки в таблице */
.player-all-career-stats-table a,
.career-stats-table a,
.national-stats-table a,
.tournaments-summary-table a {
	color: #0073aa;
	text-decoration: none;
}

.player-all-career-stats-table a:hover,
.player-all-career-stats-table a:focus,
.career-stats-table a:hover,
.career-stats-table a:focus,
.national-stats-table a:hover,
.national-stats-table a:focus,
.tournaments-summary-table a:hover,
.tournaments-summary-table a:focus {
	text-decoration: underline;
	color: #005177;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 767px) {
	.player-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 15px;
	}

	.career-stats-item {
		/* Каждый элемент занимает всю ширину */
		flex-basis: 100%;
	}

	.player-scrollable-table-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.euroleague-tournament-title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {

	.player-all-career-stats-table th,
	.player-all-career-stats-table td,
	.career-stats-table th,
	.career-stats-table td,
	.national-stats-table th,
	.national-stats-table td,
	.tournaments-summary-table th,
	.tournaments-summary-table td {
		padding: 8px 4px;
		font-size: 13px;
	}
}

/* ============================================
   Стили для модуля Euroleague
   ============================================ */

/* Секция турнира Euroleague */
.euroleague-tournament-section {
	margin-bottom: 40px;
}

/* Заголовок турнира */
.euroleague-tournament-title {
	margin: 20px 0 10px 0;
	font-family: 'Roboto Condensed', Arial, sans-serif;
	color: #2c3e50;
	font-size: 24px;
	text-transform: uppercase;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 1px;
}

/* Дополнительная колонка для PIR (эффективность) */
.col-pir {
	width: 50px;
	min-width: 50px;
	font-weight: 600;
	color: #27ae60 !important;
}

/* Цвет для Euroleague фильтров */
.euroleague-filters {
	background: var(--secondary-light) !important;
}

/* Адаптация для Euroleague таблиц */
.euroleague-stats-table {
	min-width: 1200px;
	/* Больше колонок чем в базовой версии */
}

/* Стили для итоговой строки */
.player-all-career-stats-table tr.totals-row,
.career-stats-table tr.totals-row,
.euroleague-stats-table tr.totals-row {
	background-color: #ecf0f1 !important;
	font-weight: 600;
}

.player-all-career-stats-table tr.totals-row td,
.career-stats-table tr.totals-row td,
.euroleague-stats-table tr.totals-row td {
	background-color: #ecf0f1 !important;
	font-weight: 600;
	color: #2c3e50;
	padding: 14px 10px;
}

.player-all-career-stats-table tr.totals-row:hover td,
.career-stats-table tr.totals-row:hover td,
.euroleague-stats-table tr.totals-row:hover td {
	background: var(--secondary-light) !important;
}

/* Объединенная ячейка "Всего" */
.totals-label {
	text-align: right !important;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}