/* SportsPress Barrage Tournament Styles */

.sp-template-tournament-barrage {
	margin: 20px 0 !important;
	clear: both;
	background: #101010 !important;
	color: #fff !important;
	padding: 25px !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
	border: 1px solid #333 !important;
}

.sp-table-caption {
	font-size: 1.2em;
	font-weight: 600;
	margin: 0 0 15px 0;
	text-align: center;
	color: #fff;
}

.sp-tournament-barrage-bracket {
	max-width: 100%;
}

.sp-tournament-barrage-phase {
	margin-bottom: 30px;
}

.sp-phase-title {
	font-size: 1.1em;
	font-weight: 600;
	color: #fff;
	margin: 20px 0 15px 0;
	padding: 12px 18px;
	border: none;
	text-align: left;
	border-left: 4px solid #f27900;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sp-phase-games.sp-event-list {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-event-list-item {
	display: flex !important;
	align-items: center;
	padding: 14px 18px !important;
	border-bottom: 1px solid #333 !important;
	background: linear-gradient(135deg, #101010 0%, #0a0a0a 100%) !important;
	color: #fff !important;
	margin-bottom: 0;
	transition: all 0.2s ease !important;
	border-radius: 6px;
	margin-bottom: 2px;
}

.sp-event-list-item.sp-event {
	cursor: pointer;
}

.sp-event-list-item:hover {
	background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%) !important;
	transform: translateX(2px);
	box-shadow: 0 2px 8px rgba(242, 121, 0, 0.1) !important;
}

.sp-event-game-number {
	flex: 0 0 60px;
	text-align: center;
	margin-right: 15px;
}

.sp-game-number {
	display: inline-block;
	background: linear-gradient(135deg, #f27900 0%, #e66a00 100%);
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 40px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(242, 121, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-event-details {
	flex: 1;
}

.sp-event-title {
	display: block;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	line-height: 1.4;
	font-size: 1.05em;
	margin-bottom: 6px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	letter-spacing: 0.2px;
}

.sp-event-title:hover {
	color: #f27900 !important;
	text-decoration: underline;
	transform: translateX(1px);
	transition: all 0.2s ease;
}

.sp-event-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 0.85em;
	color: #bbb;
	flex-wrap: wrap;
	opacity: 0.9;
}

.sp-event-date,
.sp-event-venue {
	margin: 0;
}

.sp-event-venue:before {
	content: "@ ";
	opacity: 0.7;
}

.sp-event-media {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sp-event-media i.dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.sp-event-recap,
.sp-event-preview {
	font-size: 0.8em;
	font-weight: 500;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sp-event-recap {
	background: #28a745;
	color: white;
}

.sp-event-preview {
	background: #ffc107;
	color: #333;
}

.sp-result {
	font-weight: bold;
	color: #f27900;
	margin: 0 8px;
	font-size: 1.1em;
}

/* .sp-phase-navigation {
	background: #fff !important;
} */

/* Bracket connections */
.sp-bracket-connections {
	margin-top: 25px;
	padding: 20px;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
	border-radius: 8px;
	border: 1px solid #444;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.sp-connection {
	text-align: center;
	margin-bottom: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #101010 0%, #0a0a0a 100%);
	border-radius: 6px;
	border-left: 4px solid #f27900;
	font-size: 0.9em;
	color: #ddd;
	font-weight: 500;
	line-height: 1.4;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sp-connection:last-child {
	margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sp-template-tournament-barrage {
		margin: 15px 5px !important;
		padding: 20px 15px !important;
	}

	.sp-event-list-item {
		padding: 12px 14px !important;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		border-radius: 8px;
	}

	.sp-event-game-number {
		flex: none;
		margin-right: 0;
		margin-bottom: 8px;
		align-self: flex-start;
	}

	.sp-event-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		font-size: 0.8em;
		width: 100%;
	}

	.sp-event-media {
		margin-left: 0;
		margin-top: 8px;
		justify-content: flex-start;
	}

	.sp-phase-title {
		font-size: 1em;
		padding: 10px 14px;
		margin: 15px 0 12px 0;
	}

	.sp-event-title {
		font-size: 1em;
		line-height: 1.3;
	}

	.sp-result {
		font-size: 1em;
		margin: 0 6px;
	}
}

@media (max-width: 480px) {
	.sp-table-caption {
		font-size: 1.1em;
	}

	.sp-phase-title {
		font-size: 0.95em;
		padding: 6px 10px;
	}

	.sp-event-list-item {
		padding: 8px 10px;
	}

	.sp-event-title {
		font-size: 0.9em;
		line-height: 1.2;
	}

	.sp-event-meta {
		font-size: 0.75em;
		gap: 8px;
	}

	.sp-game-number {
		font-size: 0.7em;
		padding: 2px 5px;
		min-width: 30px;
	}
}

/* Light mode support for users who prefer light theme */
@media (prefers-color-scheme: light) {
	.sp-template-tournament-barrage {
		background: #f9f9f9;
		color: #333;
	}

	.sp-table-caption {
		color: #333;
	}

	.sp-phase-title {
		color: #333;
		background: #f0f0f0;
	}

	.sp-event-list-item {
		background: #fff;
		border-color: #e1e1e1;
		color: #333;
	}

	.sp-event-title {
		color: #333;
	}

	.sp-event-meta {
		color: #666;
	}

	.sp-bracket-connections {
		background: #f8f9f9;
		border-color: #e1e1e1;
	}

	.sp-connection {
		background: #fff;
		color: #555;
	}
}
