/*--------------------------------------------------------------------------------------------------
  Casino List — [casino-list] shortcode frontend styles
--------------------------------------------------------------------------------------------------*/

/* ── Container ───────────────────────────────────────────────────────────────────────────────── */

.bet-casino-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 24px 0;
	font-family: inherit;
}

/* ── Card ────────────────────────────────────────────────────────────────────────────────────── */

.bet-casino-row {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

.bet-casino-row:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

/* ── Main grid: logo | identity | bonus | features | actions ─────────────────────────────────── */

.bet-casino-row__grid {
	display: grid;
	grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 1.25fr) auto;
	grid-template-rows: auto;
	align-items: stretch;
	gap: 0;
}

.bet-casino-row__top {
	display: contents;
}

/* Shared column: half-height vertical dividers + centered content */
.bet-casino-row__grid > [class*="bet-casino-col"] {
	padding: 18px 16px;
	border-right: none;
	box-sizing: border-box;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: unset;
}

.bet-casino-row__grid > [class*="bet-casino-col"]:not(.bet-casino-col--actions)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 50%;
	background-color: #e2e8f0;
	pointer-events: none;
}

/* ── Logo column ─────────────────────────────────────────────────────────────────────────────── */

.bet-casino-col--logo {
	align-items: center;
	justify-content: center;
	padding-left: 14px;
	padding-right: 24px;
}

/* ── Identity: name / rating / code ──────────────────────────────────────────────────────────── */

.bet-casino-col--identity {
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
}

.bet-casino-identity-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
}

.bet-casino-logo-with-rank {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bet-casino-rank {
	position: absolute;
	top: -6px;
	left: -6px;
	width: 22px;
	height: 22px;
	background: #1e293b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	z-index: 1;
}

.bet-casino-logo-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	padding: 6px;
}

.bet-casino-logo-box img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.bet-casino-name {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.15;
	text-align: left;
	margin: 0;
}

.bet-casino-rating {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

/* Stars — 5-star clip overlay technique */
.bet-stars {
	display: inline-block;
	position: relative;
	font-size: 15px;
	line-height: 1;
	color: #d1d5db;
	letter-spacing: 2px;
}

.bet-stars::before {
	content: "★★★★★";
}

.bet-stars > span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f59e0b;
}

.bet-stars > span::before {
	content: "★★★★★";
}

.bet-rating-value {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
}

.bet-casino-code-slot {
	box-sizing: border-box;
	padding: 0;
	align-self: start;
	text-align: left;
}

.bet-code-label {
	display: none;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 2px;
	line-height: 1.2;
}

.bet-casino-code-wrap {
	margin-top: 4px;
}

.bet-casino-col--identity .bet-casino-code-slot--desktop .bet-casino-code-wrap {
	margin-top: 4px;
}

.bet-casino-code-slot--mobile {
	display: none;
}

.bet-casino-list .bet-copy-code {
	width: fit-content !important;
	max-width: 100%;
	flex: 0 0 auto;
}

.bet-copy-code {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	background: #f1f5f9;
	border: 1px dashed #94a3b8;
	border-radius: 6px;
	padding: 5px 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	letter-spacing: 0.05em;
	transition: background 0.15s, border-color 0.15s;
}

.bet-copy-code:hover {
	background: #e2e8f0;
	border-color: #64748b;
}

.bet-copy-code__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1 1 auto;
	min-width: 0;
}

.bet-copy-code__label.is-copied {
	color: #365236;
}

.bet-copy-code__icon {
	flex-shrink: 0;
	font-size: 14px;
	color: #64748b;
}

/* ── Bonus column ────────────────────────────────────────────────────────────────────────────── */

.bet-casino-col--bonus {
	align-items: flex-start;
}

.bet-bonus-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 2px;
	line-height: 1.2;
}

.bet-bonus-text {
	font-size: 22px;
	font-weight: 700;
	color: #365236;
	line-height: 1.15;
}

/* ── Features column ─────────────────────────────────────────────────────────────────────────── */

.bet-casino-col--features {
	align-items: flex-start;
}

.bet-casino-features-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	font: inherit;
	color: inherit;
}

.bet-casino-features-list li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font: inherit;
	color: inherit;
	padding: 0;
	margin: 0;
	line-height: 1.35;
}

.bet-casino-features-list li + li {
	margin-top: 4px;
}

.bet-casino-features-list li::before {
	  content: '';
	  flex-shrink: 0;
	  width: 0.85rem;
	  height: 0.85rem;
	  border-radius: 50%;
	  background-color: #377e3f;
	  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M6.2 11.4 3.1 8.3l1-1 2.1 2.1 5.7-5.7 1 1z'/%3E%3C/svg%3E");
	  background-repeat: no-repeat;
	  background-position: center;
	  background-size: 100%;
}

/* ── Actions column ──────────────────────────────────────────────────────────────────────────── */

.bet-casino-actions-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: stretch;
	min-width: 150px;
}

.bet-btn {
	display: block;
	text-align: center;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 10px 15px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.bet-btn--primary {
	background: #377e3f;
	color: #fff !important;
	border: 2px solid #377e3f;
}

.bet-btn--primary:hover {
	background: #2a4029;
	border-color: #2a4029;
	color: #fff !important;
}

.bet-btn--secondary {
	background: transparent;
	color: #377e3f !important;
	border: 2px solid #377e3f;
}

.bet-btn--secondary:hover {
	background: #377e3f;
	color: #fff !important;
}

/* ── Desktop: place top row + code slot in the 5-column grid ───────────────────────────────────── */

@media (min-width: 783px) {
	.bet-casino-row__grid {
		align-items: center;
	}

	.bet-casino-row__grid > [class*="bet-casino-col"] {
		min-height: 0;
	}

	.bet-casino-col--logo {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
	}

	.bet-casino-col--identity {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
	}

	.bet-casino-code-slot--desktop {
		padding: 0;
		margin: 0;
	}

	.bet-casino-code-slot--desktop .bet-casino-code-wrap {
		display: block;
		width: auto;
		margin-inline-start: 0;
	}

	.bet-casino-col--bonus,
	.bet-casino-col--features,
	.bet-casino-col--actions {
		align-self: center;
	}

	.bet-casino-col--bonus {
		grid-column: 3;
		grid-row: 1;
	}

	.bet-casino-col--features {
		grid-column: 4;
		grid-row: 1;
	}

	.bet-casino-col--actions {
		grid-column: 5;
		grid-row: 1;
	}
}

/* ── Responsive (tablet + phone) ─────────────────────────────────────────────────────────────── */

@media (max-width: 782px) {
	.bet-casino-row__grid > [class*="bet-casino-col"]::after {
		display: none;
	}

	.bet-casino-row__grid {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		grid-template-rows: none;
	}

	.bet-casino-row__top {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0;
		padding: 18px 16px;
		box-sizing: border-box;
		order: 1;
	}

	.bet-casino-col--bonus {
		order: 2;
	}

	.bet-casino-col--features {
		order: 3;
	}

	.bet-casino-col--actions {
		order: 5;
	}

	.bet-casino-row__top .bet-casino-col--logo {
		flex-shrink: 0;
		padding: 0;
		min-height: 0;
		border-right: none;
	}

	.bet-casino-row__top .bet-casino-col--identity {
		flex: 1;
		min-width: 0;
		padding: 0 0 0 12px;
		min-height: 0;
		border-right: none;
	}

	.bet-casino-row__top .bet-casino-col--identity::after {
		display: none;
	}

	.bet-casino-code-slot--desktop {
		display: none !important;
	}

	.bet-casino-code-slot--mobile {
		order: 4;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding: 16px 16px;
		border-top: 1px solid #e2e8f0;
		text-align: center;
	}

	.bet-casino-code-slot--mobile .bet-code-label {
		display: block;
		width: 100%;
		text-align: center;
	}

	.bet-casino-code-slot--mobile .bet-casino-code-wrap {
		display: flex;
		justify-content: center;
		width: 100%;
		margin-inline-start: 0;
	}

	.bet-casino-col--bonus,
	.bet-casino-col--features,
	.bet-casino-col--actions {
		width: 100%;
		border-right: none;
		border-top: 1px solid #e2e8f0;
	}

	.bet-casino-actions-group {
		flex-direction: row;
		min-width: 0;
		width: 100%;
	}

	.bet-btn {
		flex: 1;
	}

	.bet-casino-features-list {
		flex-direction: column;
		gap: 0;
	}

	.bet-casino-features-list li + li {
		margin-top: 4px;
	}
}
