/**
 * DartsPress Season Manager Frontend Styles
 *
 * Styles for season display pages (review, notes, etc).
 *
 * @package DartsPress
 * @since 2.6.0
 */



.dp-season-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 20px 0;
}

.dp-season-title {
	color: #f5f2d0;
	margin: 0;
	text-align: center;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}


/* Season Selector */

.sp-season-selector-wrapper.is-inline {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sp-season-selector-wrapper.is-block {
	margin-bottom: 30px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.1);
	border-left: 4px solid #f9a825;
	border-radius: 4px;
}

.sp-season-selector-label {
	font-weight: 600;
	margin-right: 10px;
	color: #f5f2d0;
	white-space: nowrap;
}

.sp-season-selector-select {
	padding: 8px 12px;
	font-size: 14px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	min-width: 150px;
}

.sp-season-selector-select option {
	background: #444444;
	color: #fff;
}


/* Season Review & Notes */

.dp-season-review,
.dp-season-notes {
	margin-bottom: 30px;
	padding: 20px;
	background: #2F2E28;
	border-left: 6px solid #999999;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	color: #fff;
}

.dp-season-review h3,
.dp-season-notes h3 {
	margin: 0 0 12px;
	color: #f5f2d0;
}



/* Tables */
.dp-tables-section {
	margin-bottom: 30px;
}

.dp-tables-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}



/* Tabs Section */
.dp-season-tabs__title {
	color: #f5f2d0;
	margin-bottom: 20px;
}

.dp-season-tabs {
	margin-bottom: 30px;
	background: #3a3938;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dp-season-tabs__nav {
	margin-bottom: 0;
}

.dp-season-tabs__list {
	display: flex;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
}

.dp-season-tabs__item {
	flex: 1;
	margin-right: 2px;
}

.dp-season-tabs__item:last-child {
	margin-right: 0;
}

.dp-season-tabs__button {
	width: 100%;
	padding: 6px 20px !important;
	background: #555555;
	color: #f5f2d0;
	border: none;
	border-right: 1px solid #777777;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	font-weight: bold;
	font-size: 0.8rem;
	letter-spacing: 0.1rem;
	transition: all 0.2s;
	outline: none;
	box-shadow: none;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-season-tabs__button:last-child {
	border-right: none;
}

.dp-season-tabs__button:focus,
.dp-season-tabs__button:active {
	border: none;
	border-right: 1px solid #f5f2d0;
	box-shadow: none;
	outline: none;
}

.dp-season-tabs__button:last-child:focus,
.dp-season-tabs__button:last-child:active {
	border-right: none;
}

.dp-season-tabs__button:hover:not(.is-active) {
	color: #ffffff;
	background: #111111;
}

.dp-season-tabs__button:not(.is-active) {
	border-bottom: 1px solid #333333;
}

.dp-season-tabs__button.is-active {
	background: #222222;
	color: #D7BE69;
	border-bottom: 1px solid #222222;	
	font-weight: bold;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-season-tabs__panels {
	margin-top: 0;
	padding: 8px;
	background: #222222;
	border-radius: 0 0 8px 8px;
}

.dp-season-tabs__panel {
	padding-top: 0;
	display: none;
	color: #333;
}

.dp-season-tabs__panel.is-active {
	display: block;
}

.dp-fixtures-table {
	width: 100%;
}

.dp-fixtures-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 12px;
}

.dp-fixtures-filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #f5f2d0;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dp-fixtures-filter-label {
	font-weight: 600;
}

.dp-fixtures-filter-select {
	background: #2f2f2f;
	color: #fff;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 0.75rem;
}

.dp-fixtures-filter-select:focus {
	outline: 2px solid rgba(212, 175, 55, 0.4);
	outline-offset: 2px;
}

.dp-fixtures-gallon-score {
	font-size: 0.75em;
	line-height: 1.1;
	opacity: 0.85;
	margin-top: 2px;
}

.dp-date-medium,
.dp-date-short {
	display: none;
}

.dp-fixtures-week-inline {
	display: none;
	margin-top: 4px;
	font-size: 0.7rem;
	color: #cfcfcf;
}

/* Competition Type Badges */
.dp-type-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
	color: #fff;
	padding: 3px 10px;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

span.dp-type-league {
	background: #1f7a3a;
}

span.dp-type-ko-cup {
	background: #c96a10;
}

span.dp-type-ko-shield {
	background: #b88900;
}

span.dp-type-free,
span.dp-type-comp {
	background: #555;
}

@media (max-width: 768px) {
	.dp-fixtures-week {
		display: none;
	}

	.dp-date-full {
		display: none;
	}

	.dp-date-medium {
		display: inline;
	}

	.dp-fixtures-week-inline {
		display: block;
	}
}

.dp-data-table,
.dp-data-table th,
.dp-data-table td {
	box-sizing: border-box;
}

.dp-fixtures-table thead tr th {
	background: #343434;
	color: #f5f2d0;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
	font-size: 0.7rem;
	text-transform: uppercase;
	font-weight: bold;
}

.dp-data-table {
	margin: 0;
	background: #555555;
	border-collapse: collapse;
	border-bottom: 1px solid #333333;
	width: 100%;
	font-family: "Roboto", "Helvetica", sans-serif;
}

.dp-data-table tr {
	border: none;
}

.dp-data-table th,
.dp-data-table td {
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.1rem;
	border-bottom: 1px solid #333333;
	border-left: none !important;
	border-right: none !important;
	padding: 8px 0px;
	text-align: center;
	color: #fff;
}

.dp-data-table thead tr {
	border-top: 2px solid #D7BE69;
}

.dp-data-table th a {
	color: inherit;
}

.dp-data-table .sp-highlight,
.dp-data-table .highlighted td {
	font-weight: 500;
	background: #555555;
}

.dp-data-table a {
	box-shadow: none;
	border: none;
	text-decoration: none;
	font-weight: inherit;
	color: #ffffff;
}

.dp-data-table a:hover {
	text-decoration: underline;
}

.dp-merit-table-container .dp-data-table {
	background: #999;
}

.dp-merit-table-container .dp-data-table th {
	background: #343434;
	font-size: 0.7rem;
	color:#f5f2d0;
	text-transform: uppercase;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-merit-table-container .dp-data-table td {
	background-color: #555555;
}

.dp-merit-table-container .dp-data-table tr:hover td {
	background-color: #666666;
}



.dp-fixtures-table .dp-fixtures-week {
	text-align: center;
	width: 80px;
}

.dp-fixtures-table .dp-fixtures-date {
	width: 100px;
}

.dp-fixtures-table .dp-fixtures-type {
	width: 80px;
}

.dp-fixtures-table .dp-fixtures-score {
	text-align: center;
	width: 100px;
}

.dp-fixtures-score-link {
	color: #f9a825;
	text-decoration: none;
}

.dp-fixtures-score-vs {
	color: #fff;
	font-size: 0.75em;
	text-transform: uppercase;
}

.dp-merit-table {
	width: 100%;
}

.dp-merit-rank,
.dp-rank-cell {
	text-align: center;
	width: 40px;
	text-shadow: 1px 1px 2px rgb(43, 42, 42);
}

.dp-merit-number {
	text-align: center;
}

.dp-merit-table th:nth-child(2),
.dp-merit-table th:nth-child(3),
.dp-merit-table td:nth-child(2),
.dp-merit-table td:nth-child(3) {
	text-align: left;
	padding-left: 2%;
}

.dp-merit-table td:last-child {
	background: #444444;
	font-size: 1rem;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-fixtures-table tbody tr td.dp-fixtures-week,
.dp-merit-table tbody tr td.dp-rank-cell {
	background: #454545;
}

.dp-fixtures-table tbody tr td.dp-fixtures-score {
	background: #444444;
	font-weight: bold;
	font-size: 1rem;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-fixtures-table tbody tr td:nth-child(4), 
.dp-fixtures-table tbody tr td:nth-child(6) {
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: bold;
}

.dp-merit-table td:nth-child(2) a.dp-merit-link {
	font-weight: 700;
	text-transform: uppercase;
	text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.dp-merit-link {
	color: #f9a825;
	text-decoration: none;
}

.dp-merit-link:hover,
.dp-fixtures-score-link:hover {
	text-decoration: underline;
}

.dp-pagination {
	margin-top: 20px;
	text-align: center;
}

.dp-sortable-table th.sortable {
	cursor: pointer;
	user-select: none;
}

/*.dp-sortable-table th.sortable:hover {
	background: rgba(255, 255, 255, 0.1);
}*/

.dp-sortable-table th .sort-arrow {
	display: inline-block;
	margin-left: 5px;
	opacity: 0.3;
}

.dp-sortable-table th.active .sort-arrow {
	opacity: 1;
}


@media (max-width: 1250px) {

}

@media (max-width: 768px) {

	h1.dp-season-title {		
		font-size: 1.2rem !important;
	}

	.dp-fixtures-table thead tr th,
	.dp-merit-table-container .dp-data-table th {
		font-size: 0.6rem;
		text-shadow: none;
	}

	.dp-season-tabs__button {
		padding: 5px 8px;
		font-size: 0.7rem;
		letter-spacing: normal;
	}

	.dp-merit-table td:last-child {
	background: #444444;
	font-size: 0.65rem;
	text-shadow: none;
	}

	.dp-merit-table td a.dp-merit-link,
	.dp-merit-table td {
		font-size: 0.6rem;
	}

	.dp-merit-table td:nth-child(2) a.dp-merit-link {
		font-size: 0.6rem;
		text-shadow: none;
	}

	.dp-merit-rank, .dp-rank-cell {
		width: auto;
	}

	.dp-fixtures-table tbody tr td:nth-child(4), .dp-fixtures-table tbody tr td:nth-child(6) {
		font-size: 0.7rem;
	}
	

}

@media (max-width: 480px) {
	.dp-date-medium {
		display: none;
	}

	.dp-date-short {
		display: inline;
	}
}

@media (max-width: 768px) {
	.dp-season-tab-label-full {
		display: none;
	}

	.dp-season-tab-label-short {
		display: inline;
	}
}

@media (min-width: 769px) {
	.dp-season-tab-label-short {
		display: none;
	}
}

/* Elementor global fonts (only when Elementor kit is active) */

body[class*="elementor-kit-"] .dp-season-display,
body[class*="elementor-kit-"] .dp-season-content {
	font-family: var(--e-global-typography-text-font-family, inherit);
}

body[class*="elementor-kit-"] .dp-season-title,
body[class*="elementor-kit-"] .dp-season-header h1 {
	font-family: var(--e-global-typography-primary-font-family, inherit);
}

/* Elementor button reset for season tabs */
body[class*="elementor-kit-"] .dp-season-tabs__button {
	background: #555555 !important;
	color: #f5f2d0 !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

body[class*="elementor-kit-"] .dp-season-tabs__button.is-active {
	background: #222222 !important;
	color: #D7BE69 !important;
	border-bottom: 1px solid #222222 !important;
}

body[class*="elementor-kit-"] .dp-season-tabs__button:hover:not(.is-active) {
	background: #111111 !important;
	color: #ffffff !important;
}

@media (orientation: landscape) and (max-width: 1024px) {
	body[class*="elementor-kit-"] .dp-season-display {
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: 12px;
		padding-right: 12px;
	}
}
