/**
 * Public CSS Styles for Fanatik Canlı Skor Plugin
 */

.fanatik-live-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #333;
	max-width: 800px;
	margin: 20px auto;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Header Bar */
.fanatik-header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e9ecef;
	margin-bottom: 20px;
}
.fanatik-date-picker {
	display: flex;
	align-items: center;
	gap: 15px;
}
.fanatik-date-btn {
	background: #eee;
	border: none;
	color: #333;
	padding: 5px 12px;
	font-size: 16px;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}
.fanatik-date-btn:hover {
	background: #ddd;
}
.fanatik-current-date {
	font-weight: bold;
	font-size: 16px;
}
.fanatik-refresh-btn {
	background: #d61820; /* Fanatik red */
	color: #fff;
	border: none;
	padding: 7px 16px;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s;
}
.fanatik-refresh-btn:hover {
	opacity: 0.9;
}

/* Leagues Grouping */
.fanatik-no-matches {
	text-align: center;
	padding: 30px;
	color: #777;
	font-style: italic;
}
.fanatik-league-group {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	margin-bottom: 20px;
	overflow: hidden;
}
.fanatik-league-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	background: #f1f3f5;
	border-bottom: 1px solid #e9ecef;
}
.fanatik-league-logo {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.fanatik-league-title {
	font-size: 14px;
	color: #495057;
}

/* Match Rows */
.fanatik-match-row {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	border-bottom: 1px solid #f1f3f5;
	cursor: pointer;
	transition: background 0.15s;
}
.fanatik-match-row:last-child {
	border-bottom: none;
}
.fanatik-match-row:hover {
	background: #f8f9fa;
}

/* Match States */
.fanatik-match-row.match-live {
	background: #f4fbf7;
}
.fanatik-match-row.match-live:hover {
	background: #e8f7ee;
}
.match-status-badge {
	display: inline-block;
	background: #e9ecef;
	color: #495057;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: bold;
	border-radius: 3px;
	text-align: center;
	min-width: 45px;
}
.match-live .match-status-badge {
	background: #e6fcf1;
	color: #0ca678;
}

/* Competitors Layout */
.match-time-col {
	flex: 0 0 70px;
}
.match-teams-col {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
}
.team-side {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}
.home-team {
	justify-content: flex-end;
	text-align: right;
}
.away-team {
	justify-content: flex-start;
	text-align: left;
}
.team-name {
	font-size: 14px;
	font-weight: 500;
}
.team-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.match-score-badge {
	background: #343a40;
	color: #fff;
	padding: 5px 12px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 14px;
	margin: 0 20px;
	min-width: 45px;
	text-align: center;
}
.match-live .match-score-badge {
	background: #d61820;
}

/* Modal Popup Styles */
.fanatik-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.55);
	backdrop-filter: blur(3px);
}
.fanatik-modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 20px;
	border-radius: 10px;
	width: 90%;
	max-width: 680px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.2);
	position: relative;
	animation: fanatikZoom 0.25s ease-out;
}
@keyframes fanatikZoom {
	from { transform: scale(0.9); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.fanatik-modal-close {
	color: #aaa;
	position: absolute;
	right: 20px;
	top: 15px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
}
.fanatik-modal-close:hover {
	color: #333;
}
.fanatik-loading-spinner {
	text-align: center;
	padding: 40px;
	font-weight: bold;
	color: #777;
}

/* Match Details inside Modal */
.fanatik-details-header {
	text-align: center;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
	margin-bottom: 15px;
}
.fanatik-details-league {
	font-size: 12px;
	text-transform: uppercase;
	color: #868e96;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}
.fanatik-details-scoreboard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin: 15px 0;
}
.details-team {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.details-team-logo {
	width: 60px;
	height: 60px;
	object-fit: contain;
}
.details-team-name {
	font-size: 16px;
	margin: 0;
	font-weight: 700;
}
.details-score-box {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.details-score {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: 3px;
}
.details-status {
	font-size: 12px;
	font-weight: bold;
	color: #d61820;
	margin-top: 5px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.status-live-dot {
	width: 8px;
	height: 8px;
	background-color: #0ca678;
	border-radius: 50%;
	display: inline-block;
	animation: blink 1s infinite;
}
@keyframes blink {
	0% { opacity: 0.2; }
	50% { opacity: 1; }
	100% { opacity: 0.2; }
}
.fanatik-details-meta {
	font-size: 12px;
	color: #6c757d;
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 10px;
}

/* Tabs */
.fanatik-details-tabs {
	display: flex;
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 15px;
}
.tab-btn {
	flex: 1;
	background: none;
	border: none;
	padding: 10px;
	font-size: 14px;
	font-weight: bold;
	color: #495057;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}
.tab-btn:hover {
	color: #d61820;
}
.tab-btn.active {
	border-bottom-color: #d61820;
	color: #d61820;
}

/* Timeline/Events */
.timeline-stream {
	position: relative;
	padding: 10px 0;
}
.timeline-stream::before {
	content: '';
	position: absolute;
	left: 50px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #dee2e6;
}
.timeline-event {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	position: relative;
}
.timeline-time {
	width: 40px;
	font-weight: bold;
	font-size: 13px;
	color: #868e96;
	text-align: right;
	margin-right: 20px;
}
.timeline-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #f1f3f5;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	position: absolute;
	left: 38px;
	z-index: 2;
}
.timeline-content {
	margin-left: 45px;
	background: #f8f9fa;
	padding: 8px 12px;
	border-radius: 6px;
	flex: 1;
	font-size: 13px;
}
.home-event .timeline-content {
	border-left: 3px solid #d61820;
}
.away-event .timeline-content {
	border-left: 3px solid #495057;
}

/* Lineups */
.lineups-formations {
	display: flex;
	justify-content: space-between;
	padding: 8px 15px;
	background: #f8f9fa;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 15px;
}
.lineups-cols {
	display: flex;
	gap: 20px;
}
.lineup-team-col {
	flex: 1;
}
.lineup-section-title {
	font-size: 14px;
	margin: 0 0 10px 0;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
	color: #d61820;
}
.player-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.player-item {
	display: flex;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #f1f3f5;
	font-size: 13px;
}
.player-number {
	width: 22px;
	font-weight: bold;
	color: #6c757d;
}
.player-name {
	flex: 1;
}
.player-pos {
	font-size: 10px;
	font-weight: bold;
	color: #adb5bd;
	background: #f1f3f5;
	padding: 2px 4px;
	border-radius: 3px;
}
.lineup-manager {
	font-size: 13px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

/* Statistics & Pitch */
.fanatik-mini-field {
	background-color: #2b8a3e; /* Pitch green */
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}
.field-pitch {
	border: 2px solid rgba(255,255,255,0.6);
	height: 120px;
	border-radius: 4px;
	position: relative;
}
.field-line {
	position: absolute;
	border: 1px solid rgba(255,255,255,0.6);
}
.center-line {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 0;
	border-left: 2px solid rgba(255,255,255,0.6);
}
.center-circle {
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.penalty-box.home-side {
	top: 50%;
	left: 0;
	width: 20px;
	height: 60px;
	border-left: none;
	transform: translateY(-50%);
}
.penalty-box.away-side {
	top: 50%;
	right: 0;
	width: 20px;
	height: 60px;
	border-right: none;
	transform: translateY(-50%);
}
.pitch-team {
	position: absolute;
	top: 15px;
	font-weight: bold;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
	font-size: 12px;
	max-width: 100px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pitch-team.home-side {
	left: 25px;
}
.pitch-team.away-side {
	right: 25px;
	text-align: right;
}
.pitch-possession {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 15px;
	background: rgba(0,0,0,0.4);
	padding: 4px 12px;
	border-radius: 20px;
	color: #fff;
	font-size: 12px;
}
.possession-val {
	font-weight: bold;
}
.possession-val.home {
	color: #ffc0c0;
}
.possession-val.away {
	color: #c0e0ff;
}

/* Statistics List Rows */
.fanatik-stat-row {
	margin-bottom: 15px;
}
.stat-values {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: bold;
	color: #495057;
	margin-bottom: 4px;
}
.stat-label {
	color: #868e96;
	font-weight: 500;
}
.stat-bar-container {
	display: flex;
	height: 6px;
	background: #e9ecef;
	border-radius: 3px;
	overflow: hidden;
}
.stat-bar-home {
	background: #d61820; /* Home - Red */
	height: 100%;
	border-right: 1px solid #fff;
	border-radius: 3px 0 0 3px;
}
.stat-bar-away {
	background: #495057; /* Away - Dark Gray */
	height: 100%;
	border-radius: 0 3px 3px 0;
}
.pane-no-data {
	text-align: center;
	padding: 20px;
	font-style: italic;
	color: #868e96;
}

.mt20 { margin-top: 20px; }

/* Filter Bar */
.fanatik-filter-bar {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	padding: 0 5px;
}
.fanatik-filter-btn {
	background: #f1f3f5;
	border: 1px solid #dee2e6;
	color: #495057;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: bold;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s;
}
.fanatik-filter-btn:hover {
	background: #e9ecef;
}
.fanatik-filter-btn.active {
	background: #d61820;
	border-color: #d61820;
	color: #fff;
}

/* Standings Table */
.fanatik-standings-table-container {
	width: 100%;
	overflow-x: auto;
	margin-top: 10px;
}
.fanatik-standings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: left;
}
.fanatik-standings-table th, 
.fanatik-standings-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #dee2e6;
}
.fanatik-standings-table th {
	background: #f8f9fa;
	font-weight: bold;
	color: #495057;
}
.col-rank {
	width: 30px;
	text-align: center;
}
.col-team {
	min-width: 150px;
}
.col-stat {
	width: 35px;
	text-align: center;
}
.col-goals {
	width: 45px;
	text-align: center;
}
.col-pts {
	width: 40px;
	text-align: center;
}
.col-form {
	width: 120px;
}
.standing-logo {
	width: 18px;
	height: 18px;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 8px;
}
.standing-name {
	vertical-align: middle;
}

/* Standings Row Highlighting */
.fanatik-standings-table tr.highlight-home {
	background-color: #fff3f3;
	font-weight: bold;
}
.fanatik-standings-table tr.highlight-home td {
	border-bottom: 2px solid #ffc9c9;
	border-top: 2px solid #ffc9c9;
}
.fanatik-standings-table tr.highlight-away {
	background-color: #f1f3f5;
	font-weight: bold;
}
.fanatik-standings-table tr.highlight-away td {
	border-bottom: 2px solid #dee2e6;
	border-top: 2px solid #dee2e6;
}

/* Form Dots */
.form-dots-container {
	display: flex;
	gap: 4px;
}
.form-dot {
	display: inline-flex;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
}
.form-w {
	background-color: #2b8a3e; /* Win - Green */
}
.form-d {
	background-color: #fab005; /* Draw - Yellow */
}
.form-l {
	background-color: #fa5252; /* Loss - Red */
}

/* Test Notice Box */
.fanatik-test-notice {
	background-color: #e8f4fd;
	border-left: 4px solid #1c7ed6;
	color: #1c7ed6;
	padding: 12px 15px;
	border-radius: 0 4px 4px 0;
	font-size: 12px;
	line-height: 1.5;
	margin-top: 20px;
}

.standing-team a {
	color: #333;
	text-decoration: none;
}
.standing-team a:hover {
	color: #d61820;
	text-decoration: underline;
}
.highlight-active {
	color: #d61820;
	font-weight: bold;
}
