/* Sonics Public Frontend Styles */

/* =============================
   GAMES TABLE STYLES
   ============================= */

.sonics-season-schedule {
	max-width: 1200px;
	margin: 30px auto;
	padding: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sonics-season-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 3px solid #00A651;
}

.sonics-season-header h2 {
	color: #2D5C2D;
	font-size: 28px;
	margin-bottom: 15px;
}

.sonics-season-record {
	font-size: 18px;
	color: #00A651;
	margin-bottom: 10px;
}

.sonics-games-table-wrapper {
	overflow-x: auto;
	margin: 20px 0;
}

.sonics-games-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	font-size: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sonics-games-table thead {
	background: linear-gradient(135deg, #2D5C2D 0%, #00A651 100%);
	color: white;
}

.sonics-games-table th {
	padding: 12px 10px;
	text-align: left;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.sonics-games-table th.game-number,
.sonics-games-table th.result,
.sonics-games-table th.overtime {
	text-align: center;
}

.sonics-games-table tbody tr {
	transition: all 0.2s ease;
}

.sonics-games-table tbody tr:hover {
	background-color: #f9fafb;
	transform: scale(1.01);
}

.sonics-games-table tbody tr.win {
	background-color: rgba(16, 185, 129, 0.05);
	border-left: 4px solid #10b981;
}

.sonics-games-table tbody tr.loss {
	background-color: rgba(239, 68, 68, 0.05);
	border-left: 4px solid #ef4444;
}

.sonics-games-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #e5e7eb;
}

.sonics-games-table td.game-number,
.sonics-games-table td.result,
.sonics-games-table td.overtime {
	text-align: center;
}

.sonics-games-table .game-number {
	font-weight: 600;
	color: #6b7280;
}

.sonics-games-table .game-date {
	font-weight: 500;
	color: #374151;
}

.sonics-games-table .home-away {
	font-weight: 700;
	color: #00A651;
	text-align: center;
}

.sonics-games-table .opponent {
	font-weight: 600;
	color: #111827;
}

.sonics-games-table .opponent-code {
	color: #9ca3af;
	font-size: 12px;
	font-weight: 400;
}

.sonics-games-table .result .wl-w {
	color: #10b981;
	font-weight: 800;
	font-size: 16px;
}

.sonics-games-table .result .wl-l {
	color: #ef4444;
	font-weight: 800;
	font-size: 16px;
}

.sonics-games-table .score {
	font-weight: 700;
	font-size: 15px;
	color: #111827;
}

.sonics-games-table .overtime {
	color: #f59e0b;
	font-weight: 600;
}

.sonics-games-table .record {
	font-weight: 500;
	color: #6b7280;
}

.sonics-games-table .attendance {
	font-weight: 500;
	color: #6b7280;
	font-size: 13px;
}

/* =============================
   GAME CARDS STYLES
   ============================= */

.sonics-games-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.sonics-game-card {
	background: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border-left: 5px solid #e5e7eb;
}

.sonics-game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sonics-game-card.sonics-win {
	border-left-color: #10b981;
	background: linear-gradient(to right, rgba(16, 185, 129, 0.05) 0%, white 100%);
}

.sonics-game-card.sonics-loss {
	border-left-color: #ef4444;
	background: linear-gradient(to right, rgba(239, 68, 68, 0.05) 0%, white 100%);
}

.sonics-game-card.sonics-game-last {
	border-left-color: #10b981;
	border-left-width: 6px;
}

.sonics-game-card.sonics-game-next {
	border-left-color: #f59e0b;
	border-left-width: 6px;
}

.sonics-game-card .sonics-game-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f3f4f6;
}

.sonics-game-card .sonics-game-date {
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.sonics-game-card .sonics-game-type {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	background: #f3f4f6;
	padding: 4px 8px;
	border-radius: 4px;
}

.sonics-game-card .sonics-game-matchup {
	display: grid;
	grid-template-columns: 2fr auto 2fr;
	gap: 15px;
	align-items: center;
	margin: 20px 0;
}

.sonics-game-card .sonics-team {
	text-align: center;
}

.sonics-game-card .sonics-team-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.sonics-game-card .sonics-sonics .sonics-team-name {
	color: #00A651;
}

.sonics-game-card .sonics-team-score {
	display: block;
	font-size: 32px;
	font-weight: 800;
	color: #111827;
	line-height: 1;
}

.sonics-game-card .sonics-vs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #9ca3af;
}

.sonics-game-card .sonics-vs .sonics-result {
	font-size: 20px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 4px;
}

.sonics-game-card.sonics-win .sonics-vs .sonics-result {
	color: #10b981;
	background: rgba(16, 185, 129, 0.1);
}

.sonics-game-card.sonics-loss .sonics-vs .sonics-result {
	color: #ef4444;
	background: rgba(239, 68, 68, 0.1);
}

.sonics-game-card .sonics-game-info {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #f3f4f6;
	font-size: 12px;
	color: #6b7280;
}

.sonics-game-card .sonics-game-info span {
	background: #f9fafb;
	padding: 4px 8px;
	border-radius: 4px;
}

.sonics-game-card .sonics-overtime {
	color: #f59e0b;
	font-weight: 700;
}

.sonics-game-card .sonics-game-notes {
	margin-top: 15px;
	padding: 15px;
	background: #f9fafb;
	border-radius: 6px;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.6;
}

/* Games Display */
.sonics-games-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.sonics-game-card {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	color: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sonics-game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.sonics-game-card.sonics-game-last {
	border-left: 5px solid #10b981;
}

.sonics-game-card.sonics-game-next {
	border-left: 5px solid #f59e0b;
}

.sonics-game-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.9;
}

.sonics-game-date {
	font-weight: 600;
}

.sonics-game-location {
	text-align: right;
}

.sonics-game-matchup {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 15px 0;
}

.sonics-team {
	flex: 1;
	text-align: center;
}

.sonics-team-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	text-transform: uppercase;
	opacity: 0.9;
}

.sonics-team-score {
	display: block;
	font-size: 32px;
	font-weight: bold;
	line-height: 1;
}

.sonics-team.sonics-sonics {
	background: rgba(255, 255, 255, 0.1);
	padding: 10px;
	border-radius: 6px;
}

.sonics-vs {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	opacity: 0.7;
	padding: 0 5px;
}

.sonics-game-notes {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 13px;
	opacity: 0.9;
}

.sonics-no-game,
.sonics-no-games,
.sonics-no-players,
.sonics-error {
	background: #f3f4f6;
	border-left: 4px solid #ef4444;
	padding: 15px;
	border-radius: 4px;
	color: #1f2937;
	margin: 20px 0;
}

.sonics-no-game,
.sonics-no-games,
.sonics-no-players {
	border-left-color: #3b82f6;
	background: #eff6ff;
	color: #1e40af;
}

/* Players Roster */
.sonics-players-roster {
	overflow-x: auto;
	margin: 20px 0;
}

.sonics-players-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.sonics-players-table thead {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	color: white;
}

.sonics-players-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
}

.sonics-players-table td {
	padding: 15px;
	border-bottom: 1px solid #e5e7eb;
}

.sonics-players-table tbody tr:hover {
	background-color: #f9fafb;
}

.sonics-players-table tbody tr:last-child td {
	border-bottom: none;
}

.sonics-player-photo {
	max-width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
	border: 2px solid #e5e7eb;
}

/* Box Score */
.sonics-box-score {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sonics-games-list {
		grid-template-columns: 1fr;
	}

	.sonics-game-matchup {
		flex-wrap: wrap;
	}

	.sonics-players-table {
		font-size: 12px;
	}

	.sonics-players-table th,
	.sonics-players-table td {
		padding: 10px;
	}

	.sonics-player-photo {
		max-width: 40px;
		height: 40px;
	}
}

/* =============================
   PLAYER PROFILE STYLES
   ============================= */

.sonics-player-profile {
	max-width: 1000px;
	margin: 40px auto;
	padding: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sonics-player-header {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 30px;
	margin-bottom: 40px;
	align-items: start;
}

.sonics-player-main-photo {
	width: 100%;
	max-width: 300px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	object-fit: cover;
}

.sonics-player-info h2 {
	color: #00A651;
	font-size: 32px;
	margin-bottom: 15px;
}

.sonics-player-info p {
	color: #333;
	font-size: 16px;
	margin-bottom: 8px;
	line-height: 1.6;
}

.sonics-player-info strong {
	color: #2D5C2D;
	font-weight: 600;
}

/* Season History Table */
.sonics-season-history {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
}

.sonics-season-history h3 {
	color: #00A651;
	font-size: 22px;
	margin-bottom: 20px;
}

.sonics-stats-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

.sonics-stats-table thead {
	background: #2D5C2D;
	color: white;
}

.sonics-stats-table th {
	padding: 12px;
	text-align: left;
	font-weight: bold;
	border-bottom: 2px solid #00A651;
}

.sonics-stats-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.sonics-stats-table tbody tr:hover {
	background: #f5f5f5;
}

.sonics-stats-table .text-center {
	text-align: center;
	font-weight: 600;
	color: #00A651;
}

/* =============================
   COACHING STAFF STYLES
   ============================= */

.sonics-coaching-staff {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
}

.sonics-coaching-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.sonics-coaching-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	text-align: center;
}

.sonics-coaching-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,166,81,0.2);
}

.sonics-staff-photo {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.sonics-coaching-card h3 {
	color: #00A651;
	font-size: 18px;
	margin: 15px 10px 5px;
	font-weight: bold;
}

.sonics-coaching-card .position {
	color: #2D5C2D;
	font-weight: bold;
	font-size: 14px;
	margin: 5px 10px;
}

.sonics-coaching-card .role {
	color: #666;
	font-size: 13px;
	margin: 5px 10px;
	font-style: italic;
}

.sonics-coaching-card .bio {
	padding: 10px 15px;
	color: #555;
	font-size: 13px;
	line-height: 1.5;
}

/* =============================
   PLAYER ROSTER UPDATES
   ============================= */

.sonics-players-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border-radius: 8px;
	overflow: hidden;
}

.sonics-players-table thead {
	background: #00A651;
	color: white;
}

.sonics-players-table th {
	padding: 15px;
	text-align: left;
	font-weight: bold;
	border-bottom: 2px solid #ddd;
}

.sonics-players-table td {
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.sonics-players-table tr:hover {
	background: #f9f9f9;
}

.sonics-player-photo-small {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.sonics-player-photo-placeholder {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #f0f0f0;
	margin: 0 auto;
}

.sonics-player-link {
	background: #00A651;
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 12px;
	transition: all 0.3s;
}

.sonics-player-link:hover {
	background: #2D5C2D;
	text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sonics-game-card {
	animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
	.sonics-player-header {
		grid-template-columns: 1fr;
	}

	.sonics-player-main-photo {
		max-width: 100%;
	}

	.sonics-coaching-grid {
		grid-template-columns: 1fr;
	}

	.sonics-stats-table {
		font-size: 14px;
	}

	.sonics-stats-table th,
	.sonics-stats-table td {
		padding: 10px;
	}

	.sonics-birthday-widget {
		padding: 10px;
	}
}

/* Birthday Widget */
.sonics-birthday-widget {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
}

.sonics-birthday-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	margin-bottom: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #00A651;
	transition: all 0.3s ease;
}

.sonics-birthday-item:hover {
	background: #e9ecef;
	transform: translateX(5px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sonics-birthday-item.is-today {
	background: linear-gradient(135deg, #00A651 0%, #2D5C2D 100%);
	color: white;
	border-left-color: #FFC72C;
	animation: birthdayPulse 2s infinite;
}

.sonics-birthday-item.is-today .birthday-name a {
	color: white;
}

.sonics-birthday-item.is-today .birthday-date,
.sonics-birthday-item.is-today .birthday-age {
	color: rgba(255, 255, 255, 0.95);
}

.birthday-photo {
	flex-shrink: 0;
}

.birthday-photo img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #00A651;
}

.sonics-birthday-item.is-today .birthday-photo img {
	border-color: #FFC72C;
}

.birthday-info {
	flex: 1;
}

.birthday-name {
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.birthday-name a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s;
}

.birthday-name a:hover {
	color: #00A651;
}

.birthday-date {
	margin: 0 0 3px 0;
	font-size: 14px;
	color: #666;
}

.birthday-age {
	margin: 0;
	font-size: 13px;
	color: #888;
}

.birthday-countdown {
	margin-top: 8px;
	padding: 6px 10px;
	background: rgba(0, 166, 81, 0.1);
	border-radius: 4px;
	font-size: 12px;
	display: inline-block;
}

.countdown-label {
	font-weight: 600;
	color: #00A651;
}

.countdown-value {
	font-weight: 700;
	color: #2D5C2D;
}

/* Birthday Animation */
@keyframes birthdayPulse {
	0%, 100% {
		box-shadow: 0 0 10px rgba(255, 199, 44, 0.5);
	}
	50% {
		box-shadow: 0 0 20px rgba(255, 199, 44, 0.8);
	}
}

/* Widget Title */
.widget .widget-title {
	color: #2D5C2D;
	font-size: 18px;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #00A651;
}

/* Empty State */
.sonics-birthday-widget-empty {
	padding: 20px;
	text-align: center;
	color: #888;
	font-style: italic;
}
