/* Reset and Base Styles */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--color-primary: #ff8c42;
	--color-secondary: #ff6b9d;
	--color-dark: #1a0e2e;
	--color-darker: #0f0820;
	--color-light: #ffffff;
	--color-gray: #8b8b9a;
	--color-gray-dark: #2a2438;
	--color-success: #4caf50;
	--color-error: #f44336;
	--gradient-primary: linear-gradient(132deg, #f09819 8.37%, #ff5858 89.17%);
	--gradient-hero: linear-gradient(180deg, rgba(26, 14, 46, 0.8) 0%, rgba(15, 8, 32, 0.95) 100%);
	--font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--transition: all 0.3s ease;
}

body {
	font-family: var(--font-primary);
	/* Added hero background directly to body */
	background: url(../images/hero/home-background.webp) top center / contain no-repeat var(--color-darker);
	color: var(--color-light);
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

button {
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: var(--transition);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Header Styles */

.header {
	background-color: var(--color-dark);
	padding: 15px 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.logo-text {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-light);
}

.logo-highlight {
	color: var(--color-primary);
}

.nav {
	display: flex;
	gap: 25px;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--color-light);
	padding: 8px 12px;
	border-radius: 6px;
}

.nav-link:hover {
	background-color: rgba(255, 140, 66, 0.1);
	color: var(--color-primary);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.btn {
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
}

.btn-primary {
	background: var(--gradient-primary);
	color: var(--color-light);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
	transform: skew(-25deg);
}

.btn-primary:hover {
	transform: skew(-25deg) translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
	background-color: transparent;
	color: var(--color-light);
	border: 2px solid var(--color-gray-dark);
}

.btn-secondary:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn-gradient {
	background: var(--gradient-primary);
	color: var(--color-light);
	box-shadow: 0 4px 20px rgba(255, 140, 66, 0.4);
	transform: skew(-25deg);
}

.btn-gradient:hover {
	transform: skew(-25deg) translateY(-2px);
	box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5);
}

.btn-large {
	padding: 18px 50px;
	font-size: 16px;
}

.btn-outline {
	background-color: transparent;
	color: var(--color-light);
	border: 2px solid var(--color-gray-dark);
	padding: 12px 30px;
}

.btn-outline:hover {
	border-color: var(--color-primary);
	background-color: rgba(255, 140, 66, 0.1);
}

.btn-text {
	display: inline-block;
	transform: skew(25deg);
}

.language-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background-color: var(--color-gray-dark);
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}

.language-selector:hover {
	background-color: rgba(255, 140, 66, 0.1);
}

.flag-icon {
	width: 20px;
	height: 15px;
	border-radius: 2px;
}

/* Hero Section */

.hero {
	position: relative;
	padding: 180px 0 100px;
	text-align: center;
	overflow: hidden;
}

/* Removed .hero-background styles as background is now on body */

.hero-content {
	position: relative;
	z-index: 1;
}

h1,
.hero-title {
	font-size: 56px;
	font-weight: 900;
	margin-bottom: 20px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	letter-spacing: 1px;
}

.hero-subtitle {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 15px;
	color: var(--color-light);
}

.hero-game {
	font-size: 20px;
	color: var(--color-primary);
	margin-bottom: 40px;
	font-weight: 600;
	letter-spacing: 1px;
}

/* Categories Section */

.categories {
	/* Removed background and border */
	padding: 20px 0;
}

.tbl-wrap {
	overflow: auto;
}
@media (max-width: 768px) {
	.tbl-wrap > table {
		width: 200vw;
	}
}

.categories-scroll {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 10px 0;
	scrollbar-width: thin;
	scrollbar-color: var(--color-primary) var(--color-gray-dark);
	/* Center the content */
	justify-content: center;
}

.categories-scroll::-webkit-scrollbar {
	height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
	background: var(--color-gray-dark);
}

.categories-scroll::-webkit-scrollbar-thumb {
	background: var(--color-primary);
	border-radius: 3px;
}

.category-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 15px 20px;
	background-color: var(--color-gray-dark);
	border-radius: 12px;
	color: var(--color-light);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	white-space: nowrap;
	min-width: 80px;
}

.category-btn i {
	font-size: 24px;
}

.category-btn:hover,
.category-btn.active {
	background: var(--gradient-primary);
	transform: translateY(-2px);
}

/* Providers Section */

.providers {
	/* Removed background and border */
	padding: 15px 0;
}

.providers-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 5px 0;
	/* Center the content */
	justify-content: center;
}

.provider-btn {
	padding: 10px 20px;
	background-color: var(--color-gray-dark);
	border-radius: 20px;
	color: var(--color-light);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.provider-btn:hover {
	background-color: var(--color-primary);
}

/* Games Section */

.games {
	padding: 50px 0;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(5, 240px);
	gap: 20px;
	margin-bottom: 40px;
	justify-content: center;
}

.game-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: var(--transition);
	width: 240px;
	height: 110px;
}

/* Added hidden class for progressive game loading */

.game-card.hidden {
	display: none;
}

.game-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(26, 14, 46, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	opacity: 0;
	transition: var(--transition);
}

.game-card:hover .game-overlay {
	opacity: 1;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.play-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--color-light);
}

.game-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-light);
	text-align: center;
	padding: 0 15px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	width: 100%;
}

/* Added text truncation styles to .game-title */

/* Removed .games-load-more styles as button is removed */

.content-section {
	padding: 80px 0;
	background-color: var(--color-dark);
}

/* Added specific max-width for content-section container */

.content-section > .container {
	max-width: 1100px;
}

h2 {
	font-size: 36px;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 30px;
	text-align: center;
}

.table-wrap {
	overflow-x: auto;
	margin: 30px 0px;
	-webkit-overflow-scrolling: touch;
}

table p {
	margin-bottom: 20px;
	line-height: 1.8;
	color: var(--color-light);
}

table h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-light);
	margin: 40px 0 20px;
}

table a {
	color: var(--color-primary);
	text-decoration: underline;
}

table a:hover {
	color: var(--color-secondary);
}

/* Table Styles */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background-color: var(--color-gray-dark);
	border-radius: 8px;
	overflow: hidden;
}

table thead {
	background: var(--gradient-primary);
}

table th {
	padding: 15px;
	text-align: left;
	font-weight: 700;
	color: var(--color-light);
}

table td {
	padding: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table tbody tr:last-child td {
	border-bottom: none;
}

table tbody tr:hover {
	background-color: rgba(255, 140, 66, 0.1);
}

/* Pros and Cons */

.pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin: 30px 0;
}

.pros,
.cons {
	background-color: var(--color-gray-dark);
	padding: 25px;
	border-radius: 12px;
}

.pros h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	margin-bottom: 15px;
	color: var(--color-success);
}

.cons h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	margin-bottom: 15px;
	color: var(--color-error);
}

.pros ul,
.cons ul {
	list-style: none;
}

.pros li,
.cons li {
	padding: 8px 0;
	padding-left: 25px;
	position: relative;
}

.pros li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--color-success);
	font-weight: 700;
}

.cons li::before {
	content: "✗";
	position: absolute;
	left: 0;
	color: var(--color-error);
	font-weight: 700;
}

/* Blockquote */

.content-quote {
	background-color: var(--color-gray-dark);
	border-left: 4px solid var(--color-primary);
	padding: 25px 30px;
	margin: 40px 0;
	border-radius: 8px;
	font-style: italic;
}

.content-quote p {
	font-size: 18px;
	line-height: 1.8;
	margin-bottom: 15px;
}

.content-quote cite {
	display: block;
	text-align: right;
	color: var(--color-gray);
	font-size: 14px;
	font-style: normal;
}

/* FAQ Section */

.faq-section {
	padding: 80px 0;
	background-color: var(--color-darker);
}

.section-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 50px;
	text-align: center;
}

.faq-list {
	max-width: 900px;
	margin: 0 auto;
}

.faq-item {
	background-color: var(--color-gray-dark);
	border-radius: 12px;
	margin-bottom: 15px;
	overflow: hidden;
	transition: var(--transition);
}

.faq-item:hover {
	background-color: rgba(255, 140, 66, 0.05);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: var(--color-light);
	user-select: none;
}

.faq-question i {
	transition: var(--transition);
	color: var(--color-primary);
}

.faq-item.active .faq-question i {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 500px;
}

.faq-answer p {
	padding: 0 25px 20px;
	line-height: 1.8;
	color: var(--color-gray);
}

/* Footer */

.footer {
	background-color: var(--color-dark);
	padding: 50px 0 30px;
	border-top: 1px solid var(--color-gray-dark);
}

.footer-section {
	margin-bottom: 40px;
}

.payment-methods,
.security-badges,
.game-providers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.payment-icon,
.badge-icon,
.provider-icon {
	height: 30px;
	width: auto;
	opacity: 0.6;
	transition: var(--transition);
	filter: grayscale(100%);
}

.payment-icon:hover,
.badge-icon:hover,
.provider-icon:hover {
	opacity: 1;
	filter: grayscale(0%);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin: 40px 0;
	padding: 30px 0;
	border-top: 1px solid var(--color-gray-dark);
	border-bottom: 1px solid var(--color-gray-dark);
}

.footer-links a {
	color: var(--color-gray);
	font-size: 14px;
}

.footer-links a:hover {
	color: var(--color-primary);
}

.footer-copyright {
	text-align: center;
	color: var(--color-gray);
	font-size: 13px;
	line-height: 1.6;
	max-width: 900px;
	margin: 0 auto;
}

/* Scroll to Top Button */

.scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--gradient-primary);
	color: var(--color-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
	z-index: 999;
}

.scroll-top.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-top:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

/* Added new CSS rules for icon and paragraph styling */

i.font-icons--select {
	font-size: 8px;
}

p {
	margin: 0px 0px 15px 0px;
}

/* Added mobile menu button styles */

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--color-light);
	font-size: 24px;
	cursor: pointer;
	padding: 8px;
}

.mobile-menu-btn:hover {
	color: var(--color-primary);
}

/* Responsive Design */

@media (max-width: 1024px) {
	body {
		background: url(../images/hero/home-background.webp) center 80px / contain no-repeat var(--color-darker);
	}

	.mobile-menu-btn {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--color-dark);
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	}

	.nav.active {
		display: flex;
	}

	.nav-link {
		width: 100%;
		justify-content: flex-start;
	}

	.games-grid {
		grid-template-columns: repeat(4, 240px);
	}

	.pros-cons {
		grid-template-columns: 1fr;
	}

	/* Unset justify-content for categories and providers on mobile */
	.categories-scroll,
	.providers-scroll {
		justify-content: unset;
	}

}

@media (max-width: 768px) {
	.header-content {
		flex-wrap: wrap;
	}

	.header-actions {
		flex-wrap: wrap;
	}

	/* Hide language selector and login button on mobile */
	.language-selector,
	.btn-secondary {
		display: none;
	}

	/* Hide text in create account button but keep icon visible */
	.btn-primary .btn-text {
		font-size: 0;
	}

	.btn-primary .btn-text i {
		font-size: 16px;
	}

	.hero-title {
		font-size: 36px;
	}

	.hero-subtitle {
		font-size: 24px;
	}

	/* Make sign-up button bigger on mobile */
	.hero .btn-gradient {
		padding: 20px 60px;
		font-size: 18px;
		width: 90%;
		max-width: 350px;
		/* Added justify-content: center to hero gradient button */
		justify-content: center;
	}

	/* Show only 20 games initially, make scrollable on mobile */
	.games-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
		overflow-x: auto;
		max-height: none;
	}

	/* Show only first 20 games on mobile */
	.game-card:nth-child(n + 21) {
		display: none;
	}

	.game-card {
		width: 100%;
		height: auto;
		aspect-ratio: 240 / 110;
	}

	.content-title {
		font-size: 28px;
	}

	table {
		font-size: 14px;
	}

	table th,
	table td {
		padding: 10px;
	}

}

@media (max-width: 480px) {
	/* Mobile menu button positioned to right of create account button */
	.mobile-menu-btn {
		order: 2;
	}

	/* Added margin-right: auto to logo in mobile view */
	.logo {
		margin-right: auto;
	}

	.header-actions {
		order: 1;
	}

	.btn {
		padding: 10px 16px;
		font-size: 12px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 20px;
	}

	/* Make games grid scrollable horizontally on small mobile */
	.games-grid {
		overflow: auto;
		display: block;
		white-space: nowrap;
		margin: 0px;
		font-size: 0px;
		letter-spacing: -0.31em;
	}

	.game-card:first-child {
		margin: 0px;
	}

	.game-card {
		width: auto;
		display: inline-block;
		vertical-align: top;
		margin: 0px 0px 0px 15px;
	}

	.footer-links {
		flex-direction: column;
		align-items: center;
	}

}