:root,
.editor-styles-wrapper {
	/* Compensate for scrollbar width so full-width sections don't overflow on Windows. */
	--dupa-scrollbar-width: calc(100vw - 100%);
}

.dupa-block-text {
	padding: 48px 0 20px;
	color: #f5f5f5;
}

.dupa-block-game-list {
	padding: 48px 0 20px;
}
.slotsl-card__media {
	background: transparent;
}

.wp-block-dupa-colored-section.alignfull,
.dupa-block-text.alignfull,
.entry-content .wp-block-dupa-colored-section.alignfull,
.entry-content .dupa-block-text.alignfull,
.wp-block-dupa-game-list-section.alignfull,
.dupa-block-game-list.alignfull,
.entry-content .wp-block-dupa-game-list-section.alignfull,
.entry-content .dupa-block-game-list.alignfull {
	position: relative;
	width: 100%;
	max-width: none;
	left: auto;
	right: auto;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
	isolation: isolate;
	z-index: 0;
	overflow: visible;
}

.wp-block-dupa-colored-section.alignfull::before,
.dupa-block-text.alignfull::before,
.entry-content .wp-block-dupa-colored-section.alignfull::before,
.entry-content .dupa-block-text.alignfull::before,
.wp-block-dupa-game-list-section.alignfull::before,
.dupa-block-game-list.alignfull::before,
.entry-content .wp-block-dupa-game-list-section.alignfull::before,
.entry-content .dupa-block-game-list.alignfull::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--dupa-block-bg, inherit);
	box-shadow: 0 0 0 100vmax var(--dupa-block-bg, inherit);
	clip-path: inset(0 -100vmax);
	z-index: -1;
	pointer-events: none;
}

.dupa-block-text__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
	max-width: var(--dupa-site-width, 1200px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.editor-styles-wrapper .dupa-block-text__inner,
.editor-styles-wrapper .site-container.dupa-block-text__inner {
	box-sizing: border-box;
	max-width: var(--dupa-site-width, 1200px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* Ensure editor preview keeps inner content centered/padded even when alignfull */
.block-editor-block-list__block .dupa-block-text__inner {
	box-sizing: border-box;
	max-width: var(--dupa-site-width, 1200px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.dupa-block-game-list__grid .slotsl-game--static .slotsl-thumb {
	opacity: 1;
}

.slotsl-card--placeholder {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	min-height: 180px;
	overflow: hidden;
}

.slotsl-thumb--placeholder {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07));
	height: 140px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slotsl-card__body .slotsl-placeholder-bar {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
	margin-bottom: 12px;
	width: 60%;
}

.slotsl-placeholder-bar--wide {
	width: 80%;
	height: 14px;
}

.slotsl-grid--preview .dupa-block-game-card-placeholder {
	background: #e5e7eb;
	border-radius: 5px;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.slotsl-grid--preview {
	grid-template-columns: repeat(3, minmax(90px, 1fr));
}

/* Provide a sane site container width inside the editor preview */
.editor-styles-wrapper .site-container {
	box-sizing: border-box;
	max-width: var(--dupa-site-width, 1200px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.dupa-block-text__header {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 10px;
}

.dupa-block-text__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
}

.dupa-block-text__body {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #e8e8e8;
}

.dupa-block-text__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: #ee1111;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.dupa-block-text__button:hover {
	background: #ff3b3b;
	color: #000 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.dupa-block-text__button--ghost {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.45);
}
.dupa-block-text__button--ghost:hover {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.65);
	color: #ffffff !important;
}

.dupa-block-text__button--yellow {
	background: #ffde03;
	border-color: #ffde03;
	color: #0f172a;
}
.dupa-block-text__button--yellow:hover {
	background: #f8b400 !important;
	border-color: #f8b400 !important;
	color: #0f172a;
}

.dupa-block-text__button--primary {
	background: #ee1111;
	border-color: #ee1111;
	color: #ffffff;
}
.dupa-block-text__button--primary:hover {
	background: #ff3b3b;
	border-color: #ff3b3b;
	color: #ffffff;
}

/* Editor tweaks */
.editor-styles-wrapper .dupa-block-text,
.block-editor-block-list__block .dupa-block-text {
	box-sizing: border-box;
}
