/**
 * Banana Ball Schedule — front-end styles
 *
 * These rules are transcribed from the site's existing custom CSS
 * (the .bbs-* / .hero- rules already present in the theme's Additional
 * CSS box) so the plugin's markup renders identically without needing
 * any theme changes. Ported here as a standalone stylesheet so the
 * plugin is self-contained and doesn't depend on the theme's custom
 * CSS box continuing to hold these rules.
 */

/* ---------------------------------------------------------------
 * Hero / label chips (used by shortcode surrounding content too)
 * ------------------------------------------------------------- */

.hero-title {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	color: #ffffff;
	max-width: 620px;
}

.hero-year {
	display: block;
	font-size: 48px;
	color: #fdd825;
	margin-bottom: 6px;
}

.hero-label {
	display: inline-block;
	background: #f7c600;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 8px 20px;
	border-radius: 10px;
	-webkit-clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
	clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

/* ---------------------------------------------------------------
 * Match / result cards
 * ------------------------------------------------------------- */

.bbs-page-wrap {
	width: 100%;
}

.bbs-schedule-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.bbs-match-card {
	display: block;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.bbs-match-card--link:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.bbs-match-card.is-finished {
	border-color: #d8e2f0;
}

.bbs-match-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.bbs-date-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	background: #153766;
	color: #ffffff;
	border-radius: 10px;
	padding: 6px 4px;
	line-height: 1.1;
}

.bbs-month {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.bbs-day {
	font-size: 18px;
	font-weight: 800;
}

.bbs-match-meta {
	flex: 1;
}

.bbs-full-date {
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
}

.bbs-status {
	font-size: 12.5px;
	color: #6b7280;
	margin-top: 2px;
}

.bbs-status-text {
	text-transform: capitalize;
	font-weight: 700;
	color: #b45309;
}

.bbs-status-sep {
	margin: 0 4px;
}

.bbs-teams-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.bbs-team {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 6px;
	border-radius: 10px;
}

.bbs-team-winner.bbs-team-champion {
	background: #fffbea;
}

.bbs-team-loser {
	opacity: 0.75;
}

.bbs-team-logo-wrap {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bbs-team-logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.bbs-team-name {
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.25;
}

.bbs-team-result-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	color: #15803d;
}

.bbs-team-score {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
}

.bbs-vs-badge {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 800;
	color: #ffffff;
	background: #64748b;
	border-radius: 999px;
	padding: 6px 10px;
}

.bbs-match-card.is-finished .bbs-vs-badge {
	background: #b91c1c;
}

.bbs-stats-section {
	border-top: 1px dashed #e5e7eb;
	padding-top: 10px;
	margin-bottom: 10px;
}

.bbs-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	padding: 3px 0;
}

.bbs-stat-val {
	font-weight: 800;
	color: #1f2937;
	min-width: 28px;
	text-align: center;
}

.bbs-stat-label {
	color: #6b7280;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.bbs-match-bottom {
	border-top: 1px solid #f1f5f9;
	padding-top: 10px;
	font-size: 12.5px;
	color: #6b7280;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bbs-venue {
	font-weight: 700;
	color: #374151;
}

.bbs-empty-state {
	color: #6b7280;
	font-style: italic;
	padding: 20px 0;
}

.bbs-round-badge {
	display: inline-block;
	background: #153766;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.bbs-showman-line {
	font-size: 11.5px;
	font-weight: 700;
	color: #b45309;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	padding-top: 6px;
	margin-bottom: 4px;
}

/* ---------------------------------------------------------------
 * Game detail page ([bbs_game_detail])
 * ------------------------------------------------------------- */

.bbs-game-detail {
	max-width: 900px;
	margin: 0 auto;
}

.bbs-game-detail-header {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
	margin-bottom: 24px;
}

.bbs-game-detail-date {
	font-size: 14px;
	font-weight: 700;
	color: #6b7280;
	text-align: center;
	margin-bottom: 16px;
}

.bbs-game-detail .bbs-teams-row {
	margin-bottom: 16px;
}

.bbs-game-detail .bbs-team-logo-wrap {
	width: 64px;
	height: 64px;
}

.bbs-game-detail .bbs-team-name {
	font-size: 16px;
}

.bbs-game-detail .bbs-team-score {
	font-size: 30px;
}

.bbs-boxscore-block {
	margin-bottom: 24px;
}

.bbs-boxscore-heading {
	font-size: 15px;
	font-weight: 800;
	color: #153766;
	margin: 0 0 8px;
}

.bbs-boxscore-table th,
.bbs-boxscore-table td {
	white-space: nowrap;
}

/* ---------------------------------------------------------------
 * Standings table
 * ------------------------------------------------------------- */

.bbs-standings-wrap {
	margin: 20px 0;
}

.bbs-standings-card {
	background: #ffffff;
	border: 1px solid #d8e2f0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.bbs-standings-table-wrap {
	overflow-x: auto;
}

.bbs-standings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.bbs-standings-table thead th {
	background: #153766;
	color: #ffffff;
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 14px 16px;
	text-align: left;
}

.bbs-th-rank,
.bbs-th-stat {
	text-align: center !important;
	width: 60px;
}

.bbs-standings-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: middle;
}

.bbs-td-rank,
.bbs-td-stat {
	text-align: center;
}

.bbs-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-weight: 800;
	font-size: 13px;
	background: #e2e8f0;
	color: #334155;
}

.bbs-rank-badge.bbs-row-gold {
	background: #fbbf24;
	color: #78350f;
}

.bbs-rank-badge.bbs-row-silver {
	background: #cbd5e1;
	color: #334155;
}

.bbs-rank-badge.bbs-row-bronze {
	background: #d97706;
	color: #ffffff;
}

.bbs-rank-badge.bbs-row-4th {
	background: #93c5fd;
	color: #1e3a8a;
}

.bbs-standings-team {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bbs-standings-team-logo-wrap {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bbs-standings-team-logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.bbs-standings-team-name {
	font-weight: 700;
	color: #1f2937;
}

.bbs-champion-crown {
	margin-left: 4px;
}

.bbs-zone-safe {
	background: #f8fffb;
}

.bbs-zone-danger td {
	color: #6b7280;
}

.bbs-qualifier-separator td {
	padding: 0;
	border-bottom: none;
}

.bbs-separator-line {
	height: 2px;
	background: repeating-linear-gradient(90deg, #fac204 0, #fac204 10px, transparent 10px, transparent 18px);
}

/* ---------------------------------------------------------------
 * Player stats table (reuses .bbs-standings-* structure/classes)
 * ------------------------------------------------------------- */

.bbs-player-row {
	align-items: center;
}

.bbs-player-photo-wrap {
	border-radius: 50%;
	overflow: hidden;
	background: #eef2f7;
}

.bbs-player-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bbs-player-name {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bbs-player-jersey {
	font-weight: 800;
	color: #153766;
	font-size: 12px;
}

.bbs-player-team {
	font-size: 11.5px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.bbs-td-avg {
	font-weight: 800;
	color: #153766;
}

/* ---------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------- */

@media (max-width: 767px) {
	.bbs-schedule-grid {
		grid-template-columns: 1fr;
	}

	.bbs-standings-table {
		font-size: 13px;
	}

	.bbs-standings-table thead th,
	.bbs-standings-table td {
		padding: 10px 10px;
	}
}
