/**
 * Frontend styles for Rifnote Live Score plugin.
 */

.rifnote-live-matches-columns {
	display: flex;
	gap: 20px; /* The space between columns */
	margin-top: 1em;
	overflow-x: auto; /* This enables horizontal scrolling */
	padding-bottom: 15px; /* Adds space for the scrollbar so it doesn't overlap content */

	/* Improves scrolling experience on touch devices */
	-webkit-overflow-scrolling: touch;
	/* A subtle scrollbar for browsers that support it */
	scrollbar-width: thin;
}

.rifnote-live-matches-column {
	flex-shrink: 0; /* This is the key: prevents columns from squeezing */
	width: 320px;   /* A fixed width for each column on larger screens */
}

/* On mobile devices, we want each column to take up more space, creating a "one-at-a-time" feel */
@media (max-width: 767px) {
	.rifnote-live-matches-column {
		width: 85%; /* Each column will take up 85% of the screen width */
	}
}

/* --- Highlights Section Styles --- */
.rifnote-highlights-section {
	margin-top: 2em;
}

.rifnote-highlights-player {
	margin-bottom: 1em;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.rifnote-highlight-nav-overlay {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 10;
	display: flex;
	gap: 8px;
}

.rifnote-highlight-option {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rifnote-highlight-thumb {
	width: 60px;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
}

.rifnote-highlights-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rifnote-highlight-select-wrapper {
	flex-grow: 1; /* The dropdown will take up the available space */
}

.rifnote-highlight-nav-btn {
	background-color: rgba(30, 30, 30, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.2s;
	flex-shrink: 0;
}

.rifnote-highlight-nav-btn:hover {
	background-color: rgba(50, 50, 50, 0.9);
}

/* Helper class for screen readers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}