/*
 * Slot igre (SlotsLaunch) – samo tržište RS, učitava se samo na stranici igre i stranicama sa shortcodom plugina
 * (inc/slots/slots.php). Boje i fontovi iz tokena teme. Fajlovi plugina se ne menjaju; ovde se prepisuje
 * njegov CSS (deo njegovih pravila ima !important, pa ga imaju i odgovarajuća pravila ovde).
 */

/* =====================================================================
 * Stranica igre (single-slotsl.php)
 * ================================================================== */

.ek-slot-hero {
	padding-bottom: var(--ek-s-5);
}

.ek-slot-hero .ek-page-hero__title {
	margin-bottom: var(--ek-s-2);
}

.ek-slot-hero__meta {
	margin: 0;
	color: var(--ek-on-ink-muted);
	font-size: var(--ek-fs-sm);
}

.ek-slot {
	padding-top: var(--ek-s-5);
	padding-bottom: var(--ek-s-6);
	overflow-x: clip;
}

.ek-slot__game {
	min-width: 0;
}

/* Okvir igre: pun prostor kontejnera, bez širenja preko ekrana. */
.ek-slot .sl-single-game-container {
	max-width: 100% !important;
	margin-top: 0;
}

.ek-slot .sl-container {
	min-width: 0;
	border-radius: var(--ek-r-lg) !important;
	overflow: hidden;
}

.ek-slot .slotls-header {
	border-radius: var(--ek-r-lg) var(--ek-r-lg) 0 0;
	color: var(--ek-on-ink);
	font-family: var(--ek-font-text);
}

.ek-slot .slotls-header a,
.ek-slot .sl-banner-text a {
	color: var(--ek-on-ink) !important;
}

.ek-slot .sl-placeholder {
	background: var(--ek-ink-2);
}

.ek-slot .sl-gamethumb {
	border-radius: var(--ek-r-lg);
}

/*
 * Dugmad u okviru igre: pravi novac = CTA (ispod), besplatno / uskoro = sekundarno na tamnoj podlozi.
 * Plugin daje .slaunch-button pozadinu #f0f0f0 !important, pa i ovde mora !important.
 * Kontrast: tekst #eef8f1 na #13301f 13,2:1, na hover #1d4530 9,9:1; okvir #b7d3c1 na #13301f 9,6:1.
 */
.ek-slot .slaunch-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1px solid var(--ek-on-ink-muted) !important;
	border-radius: var(--ek-r-pill);
	background-color: var(--ek-ink-2) !important;
	color: var(--ek-on-ink) !important;
	font-family: var(--ek-font-text);
	font-size: var(--ek-fs-base);
	font-weight: 700;
	text-align: center;
}

.ek-slot .slaunch-button svg,
.ek-slot .slaunch-button:hover svg {
	fill: currentColor !important;
	stroke: currentColor;
}

.ek-slot .slaunch-button:hover,
.ek-slot .slaunch-button:focus-visible {
	border-color: var(--ek-on-ink) !important;
	background-color: var(--ek-ink-3) !important;
	color: var(--ek-on-ink) !important;
}

.ek-slot .slaunch-button.sl-play-for-real,
.ek-slot .slaunch-button.sl-button-solid {
	border: 2px solid var(--ek-cta) !important;
	background: var(--ek-cta) !important;
	color: var(--ek-on-cta) !important;
}

.ek-slot .slaunch-button.sl-play-for-real:hover,
.ek-slot .slaunch-button.sl-button-solid:hover {
	border-color: var(--ek-cta-hover) !important;
	background: var(--ek-cta-hover) !important;
	color: var(--ek-on-cta) !important;
}

.ek-slot .slaunch-button.sl-play-for-real svg,
.ek-slot .slaunch-button.sl-button-solid svg {
	fill: var(--ek-on-cta) !important;
	stroke: var(--ek-on-cta);
}

@media (prefers-reduced-motion: reduce) {
	.ek-slot .sl-bounce {
		animation: none;
	}
}

/* Sekcije */
.ek-slot__section {
	margin-top: var(--ek-s-7);
}

.ek-slot__title {
	margin: 0 0 var(--ek-s-4);
	font-size: var(--ek-fs-h2);
	line-height: var(--ek-lh-tight);
}

.ek-slot__lead {
	margin: 0 0 var(--ek-s-3);
	color: var(--ek-muted);
}

.ek-slot__about-grid {
	display: grid;
	gap: var(--ek-s-5);
	align-items: start;
}

@media (min-width: 900px) {
	.ek-slot__about-grid {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}
}

.ek-slot__text p {
	margin: 0;
}

/* Tabela podataka igre */
.ek-slot-facts {
	width: 100%;
	border: 1px solid var(--ek-line);
	border-radius: var(--ek-r-lg);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--ek-surface);
	font-size: var(--ek-fs-sm);
}

.ek-slot-facts__caption {
	padding: 0 0 var(--ek-s-2);
	color: var(--ek-muted);
	font-size: var(--ek-fs-xs);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: left;
	text-transform: uppercase;
}

.ek-slot-facts th,
.ek-slot-facts td {
	padding: 10px var(--ek-s-4);
	border-bottom: 1px solid var(--ek-line);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.ek-slot-facts th {
	width: 50%;
	color: var(--ek-muted);
	font-weight: 500;
}

.ek-slot-facts td {
	font-weight: 700;
}

.ek-slot-facts tr:last-child > * {
	border-bottom: 0;
}

/* Još igara provajdera */
.ek-slot-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ek-s-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.ek-slot-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--ek-s-4);
	}
}

@media (min-width: 1100px) {
	.ek-slot-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.ek-slot-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ek-line);
	border-radius: var(--ek-r-lg);
	background: var(--ek-surface);
	color: var(--ek-text);
	text-decoration: none;
	box-shadow: var(--ek-shadow-1);
	transition: border-color 0.15s, transform 0.15s;
}

.ek-slot-card__link:hover {
	border-color: var(--ek-cta);
	transform: translateY(-2px);
}

.ek-slot-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--ek-ink-2);
}

.ek-slot-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ek-slot-card__name {
	padding: var(--ek-s-2) var(--ek-s-3);
	font-size: var(--ek-fs-sm);
	font-weight: 700;
	line-height: var(--ek-lh-tight);
	overflow-wrap: anywhere;
}

.ek-slot__all {
	margin: var(--ek-s-5) 0 0;
	text-align: center;
}

.ek-slot .ek-tc {
	margin-top: var(--ek-s-6);
}

/* =====================================================================
 * Arhiva [slotsl-game-archives] (/slot-igre/) i kartice igara
 * ================================================================== */

.slotsl-container {
	max-width: 100% !important;
	margin: var(--ek-s-5) 0 !important;
	padding: 0 !important;
	overflow-x: clip;
	font-family: var(--ek-font-text);
}

.slotsl-grid {
	gap: var(--ek-s-3);
}

@media (min-width: 768px) {
	.slotsl-grid {
		gap: var(--ek-s-4);
	}
}

.slotsl-game {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ek-line);
	border-radius: var(--ek-r-lg) !important;
	background: var(--ek-surface);
	box-shadow: var(--ek-shadow-1);
	animation: none;
}

.slotsl-thumb {
	overflow: hidden;
	border-radius: 0 !important;
	background: var(--ek-ink-2);
}

.slotsl-thumb img {
	width: 100% !important;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0 !important;
}

/* Dugme „Igraj Besplatno“ preko slike: sekundarno, tamno zeleno sa svetlim tekstom (13,2:1, hover 9,9:1). */
.slotsl-thumb-url,
.ek-prose .slotsl-thumb-url {
	border: 1px solid var(--ek-on-ink-muted) !important;
	border-radius: var(--ek-r-pill) !important;
	background: var(--ek-ink-2) !important;
	color: var(--ek-on-ink) !important;
	font-family: var(--ek-font-text);
	font-weight: 700 !important;
	text-decoration: none !important;
}

.slotsl-thumb-url:hover,
.slotsl-thumb-url:focus-visible,
.ek-prose .slotsl-thumb-url:hover {
	border-color: var(--ek-on-ink) !important;
	background: var(--ek-ink-3) !important;
	color: var(--ek-on-ink) !important;
}

.slotsl-meta {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: var(--ek-s-3) var(--ek-s-3) 36px !important;
}

.slotsl-meta p.slotsl-title {
	margin: 0 0 var(--ek-s-2) !important;
	line-height: var(--ek-lh-tight) !important;
}

.slotsl-meta .slotsl-title a,
.slotsl-meta .slotsl-title span {
	color: var(--ek-text) !important;
	font-size: var(--ek-fs-base) !important;
	font-weight: 700;
	line-height: var(--ek-lh-tight) !important;
	overflow-wrap: anywhere;
}

.slotsl-meta .slotsl-title a:hover {
	color: var(--ek-link) !important;
}

.slotsl-meta a.slotsl-provider,
.slotsl-meta span.slotsl-provider {
	left: var(--ek-s-3) !important;
	bottom: var(--ek-s-3) !important;
	max-width: calc(100% - 2 * var(--ek-s-3));
	overflow: hidden;
	color: var(--ek-muted) !important;
	font-size: var(--ek-fs-xs) !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Filteri: pretraga, provajderi, sortiranje, tipovi, teme, Megaways */
.slotsl-filters input[type="text"],
.slotsl-providers select,
.slotsl-filters .choices__inner {
	border: 1px solid var(--ek-line) !important;
	border-radius: var(--ek-r-sm) !important;
	background-color: var(--ek-surface) !important;
	color: var(--ek-text) !important;
	font-family: var(--ek-font-text);
	font-size: var(--ek-fs-base) !important;
}

.slotsl-filters input[type="text"]:focus,
.slotsl-providers select:focus {
	border-color: var(--ek-ink) !important;
	outline: 2px solid var(--ek-cta);
	outline-offset: 1px;
}

.slotsl-search input::placeholder {
	color: var(--ek-muted) !important;
}

.slotsl-megaways {
	color: var(--ek-text) !important;
}

.slotsl-filters .slider {
	background-color: var(--ek-line);
}

.slotsl-filters input:checked + .slider {
	background-color: var(--ek-cta);
}

.sl-mobile-filter-button {
	border: 1px solid var(--ek-line) !important;
	border-radius: var(--ek-r-sm);
	background: var(--ek-surface);
	color: var(--ek-text);
	font-weight: 600;
}

.sl-mobile-filter-button.clicked {
	background: var(--ek-surface-2);
}

/* Paginacija: napredak + „Učitaj još“ */
.slotsl-progress {
	color: var(--ek-muted);
	font-size: var(--ek-fs-sm);
	text-align: center;
}

.slotsl-progress-bar-line {
	border-radius: var(--ek-r-pill);
	background: var(--ek-line) !important;
}

.slotsl-progress-bar-fill {
	border-radius: var(--ek-r-pill);
	background: var(--ek-cta) !important;
}

.slotsl-load-more button,
.slotsl-load-more .slotsl-load-more-btn {
	min-height: 48px;
	padding: 12px 28px !important;
	border: 1px solid var(--ek-ink-2) !important;
	border-radius: var(--ek-r-pill) !important;
	background: var(--ek-ink-2) !important;
	color: var(--ek-on-ink) !important;
	font-family: var(--ek-font-text);
	font-size: var(--ek-fs-base) !important;
	font-weight: 700 !important;
	cursor: pointer;
}

.slotsl-load-more button:hover,
.slotsl-load-more button:focus-visible,
.slotsl-load-more button.active {
	border-color: var(--ek-ink-3) !important;
	background: var(--ek-ink-3) !important;
	color: var(--ek-on-ink) !important;
}

.slotsl-not-found {
	padding: var(--ek-s-5);
	border: 1px dashed var(--ek-line);
	border-radius: var(--ek-r-lg);
	color: var(--ek-muted);
	text-align: center;
}

.slotsl-lobby-section-title {
	margin: var(--ek-s-6) 0 var(--ek-s-4);
	font-size: var(--ek-fs-h2);
}

/* CTA baner u gridu arhive */
.slotsl-banner .slaunch-button {
	border-color: var(--ek-cta) !important;
	border-radius: var(--ek-r-pill);
	background: var(--ek-cta) !important;
	color: var(--ek-on-cta) !important;
}
