/**
 * LegalIT Homepage Custom Styles
 * Custom styles for legal-casino.it homepage
 */

/* Hide the duplicate Mercury built-in casino card list — comparison table is used instead */
.legalit-casino-list-section {
    display: none !important;
}

/* "Ultimo aggiornamento" badge above comparison table */
.lct-updated-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px 10px 0 0;
    padding: 10px 18px;
    font-size: 13px;
    color: #555;
    margin-bottom: -1px;
}
.lct-updated-bar strong { color: #2c3e50; }
.lct-updated-icon { font-size: 15px; }
.lct-verified { color: #c0392b; font-weight: 600; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.legalit-hero-section {
	background: linear-gradient(135deg, #f5f6fa 0%, #eef0f7 100%);
	padding: 80px 0;
	overflow: hidden;
}

.legalit-hero-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.legalit-hero-text-content {
	flex: 1;
	max-width: 600px;
}

.legalit-hero-title {
	font-size: 48px;
	font-weight: 900;
	color: #2c3e50;
	margin: 0 0 20px 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.legalit-hero-subtitle {
	font-size: 24px;
	font-weight: 600;
	color: #c0392b;
	margin: 0;
}

.legalit-hero-image-content {
	flex: 0 0 500px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.legalit-hero-roulette-img {
	max-width: 100%;
	height: auto;
	animation: floatAnimation 3s ease-in-out infinite;
	filter: drop-shadow(0 0 40px rgba(192, 57, 43, 0.5));
}

.legalit-hero-roulette-placeholder {
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(192, 57, 43, 0.3) 0%, transparent 70%);
	border-radius: 50%;
}

@keyframes floatAnimation {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

/* ==========================================================================
   Casino List Section
   ========================================================================== */

.legalit-casino-list-section {
	background: #f5f6fa;
	padding: 40px 0;
}

.legalit-casino-item {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
}

.legalit-casino-item:hover {
	border-color: #c0392b;
	box-shadow: 0 4px 20px rgba(192, 57, 43, 0.2);
}

.legalit-casino-item-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
}

.legalit-casino-image {
	flex: 0 0 120px;
}

.legalit-casino-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.legalit-casino-info {
	flex: 1;
}

.legalit-casino-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	font-weight: 700;
}

.legalit-casino-title a {
	color: #2c3e50;
	text-decoration: none;
}

.legalit-casino-title a:hover {
	color: #c0392b;
}

.legalit-casino-bonus {
	color: #666666;
	font-size: 14px;
}

.legalit-casino-button {
	flex: 0 0 auto;
}

.legalit-btn-play {
	display: inline-block;
	padding: 12px 30px;
	background: transparent;
	color: #c0392b;
	border: 2px solid #c0392b;
	font-weight: 700;
	text-decoration: none;
	border-radius: 25px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	font-size: 14px;
}

.legalit-btn-play:hover {
	background: #c0392b;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

/* ==========================================================================
   Software Providers Section
   ========================================================================== */

.legalit-providers-section {
	background: #f5f6fa;
	padding: 80px 0;
}

.legalit-providers-header {
	margin-bottom: 60px;
}

.legalit-providers-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.legalit-section-title {
	font-size: 36px;
	font-weight: 900;
	color: #2c3e50;
	margin: 0 0 15px 0;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.legalit-section-subtitle {
	font-size: 16px;
	color: #999;
	margin: 0;
}

.legalit-providers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.legalit-provider-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px 20px;
	text-align: center;
	transition: all 0.3s ease;
}

.legalit-provider-card:hover {
	border-color: #c0392b;
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(192, 57, 43, 0.2);
}

.legalit-provider-logo {
	max-width: 100%;
	height: 60px;
	object-fit: contain;
	margin-bottom: 20px;
}

.legalit-provider-placeholder {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.legalit-provider-placeholder span {
	font-size: 14px;
	font-weight: 700;
	color: #666666;
}

.legalit-btn-provider {
	display: inline-block;
	padding: 8px 20px;
	background: transparent;
	color: #c0392b;
	border: 2px solid #c0392b;
	font-weight: 600;
	text-decoration: none;
	border-radius: 20px;
	transition: all 0.3s ease;
	font-size: 12px;
}

.legalit-btn-provider:hover {
	background: #c0392b;
	color: #ffffff;
}

/* ==========================================================================
   Best Bonuses Section
   ========================================================================== */

.legalit-bonuses-section {
	background: #f5f6fa;
	padding: 80px 0;
}

.legalit-bonuses-header {
	margin-bottom: 60px;
}

.legalit-bonuses-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.legalit-bonuses-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.legalit-bonus-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	transition: all 0.3s ease;
}

.legalit-bonus-card:hover {
	border-color: #c0392b;
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(192, 57, 43, 0.2);
}

.legalit-bonus-badge {
	margin-bottom: 20px;
}

.legalit-bonus-badge img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 50%;
}

.legalit-bonus-icon-default {
	display: flex;
	justify-content: center;
}

.legalit-bonus-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 15px 0;
}

.legalit-bonus-title a {
	color: #2c3e50;
	text-decoration: none;
}

.legalit-bonus-title a:hover {
	color: #c0392b;
}

.legalit-bonus-desc {
	color: #999;
	font-size: 14px;
	margin-bottom: 20px;
	line-height: 1.6;
}

.legalit-btn-bonus {
	display: inline-block;
	padding: 10px 25px;
	background: transparent;
	color: #c0392b;
	border: 2px solid #c0392b;
	font-weight: 700;
	text-decoration: none;
	border-radius: 25px;
	transition: all 0.3s ease;
	font-size: 13px;
}

.legalit-btn-bonus:hover {
	background: #c0392b;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

/* ==========================================================================
   Affiliate Programs Section
   ========================================================================== */

.legalit-affiliate-section {
	background: #f5f6fa;
	padding: 80px 0;
}

.legalit-affiliate-header {
	margin-bottom: 40px;
}

.legalit-affiliate-content {
	color: #666666;
	font-size: 16px;
	line-height: 1.8;
}

.legalit-affiliate-content p {
	margin-bottom: 20px;
}

.legalit-affiliate-content ul {
	list-style: none;
	padding-left: 0;
}

.legalit-affiliate-content ul li {
	padding-left: 30px;
	position: relative;
	margin-bottom: 10px;
}

.legalit-affiliate-content ul li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #c0392b;
	font-weight: 700;
}

/* ==========================================================================
   Games Gallery Section
   ========================================================================== */

.legalit-games-section {
	background: #f5f6fa;
	padding: 80px 0;
}

.legalit-games-header {
	margin-bottom: 60px;
}

.legalit-games-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.legalit-game-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.legalit-game-card:hover {
	border-color: #8b5cf6;
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.legalit-game-image {
	position: relative;
	overflow: hidden;
}

.legalit-game-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.legalit-game-placeholder {
	width: 100%;
	height: 200px;
}

.legalit-game-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

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

.legalit-game-play-btn {
	transition: transform 0.3s ease;
}

.legalit-game-play-btn:hover {
	transform: scale(1.1);
}

.legalit-game-info {
	padding: 20px;
}

.legalit-game-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 10px 0;
}

.legalit-game-title a {
	color: #2c3e50;
	text-decoration: none;
}

.legalit-game-title a:hover {
	color: #8b5cf6;
}

.legalit-game-desc {
	color: #999;
	font-size: 13px;
	line-height: 1.5;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {
	.legalit-providers-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.legalit-games-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.legalit-hero-content-wrapper {
		flex-direction: column;
		text-align: center;
	}

	.legalit-hero-image-content {
		flex: 0 0 auto;
	}

	.legalit-casino-item-inner {
		flex-wrap: wrap;
	}

	.legalit-bonuses-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.legalit-providers-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.legalit-games-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.legalit-hero-title {
		font-size: 32px;
	}

	.legalit-hero-subtitle {
		font-size: 18px;
	}

	.legalit-casino-item-inner {
		flex-direction: column;
		text-align: center;
	}

	.legalit-casino-image {
		flex: 0 0 auto;
	}

	.legalit-section-title {
		font-size: 28px;
	}

	.legalit-bonuses-grid,
	.legalit-providers-grid,
	.legalit-games-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */

.legalit-comparison-section {
	background: #f5f6fa;
	padding: 60px 0;
	border-top: 1px solid #e0e0e0;
}

.legalit-comparison-header {
	text-align: center;
	margin-bottom: 40px;
}

.legalit-comparison-header h2 {
	font-size: 32px;
	font-weight: 900;
	color: #2c3e50;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.legalit-comparison-header p {
	color: #888;
	font-size: 16px;
	margin: 0;
	max-width: 600px;
	margin: 0 auto;
}

.legalit-comparison-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
}

.legalit-comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	min-width: 800px;
}

.legalit-comparison-table thead {
	background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf0 100%);
}

.legalit-comparison-table thead th {
	color: #c0392b;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 16px 14px;
	text-align: left;
	border-bottom: 2px solid #c0392b;
	white-space: nowrap;
}

.legalit-comparison-table tbody tr {
	border-bottom: 1px solid #e0e0e0;
	transition: background 0.2s;
}

.legalit-comparison-table tbody tr:hover {
	background: #f8f9fa;
}

.legalit-comparison-table tbody tr:last-child {
	border-bottom: none;
}

.legalit-comparison-table tbody td {
	padding: 14px;
	color: #555;
	font-size: 14px;
	vertical-align: middle;
}

/* Rank badge */
.rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e8ecf0;
	color: #888;
	font-weight: 700;
	font-size: 13px;
}

.rank-badge.top-3 {
	background: #c0392b;
	color: #ffffff;
}

/* Casino cell */
.casino-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

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

.casino-name a {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.casino-name a:hover {
	color: #c0392b;
}

/* Rating values */
.rating-value {
	font-size: 20px;
	font-weight: 800;
}

.rating-max {
	color: #555;
	font-size: 12px;
}

.rating-excellent { color: #c0392b; }
.rating-good { color: #e74c3c; }
.rating-average { color: #ffc107; }

.mini-rating {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	padding: 4px 10px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 13px;
	color: #555;
}

/* Bonus column */
.col-bonus {
	max-width: 220px;
	font-size: 13px !important;
	line-height: 1.4;
}

/* Action buttons */
.btn-play-now {
	display: inline-block;
	padding: 8px 20px;
	background: #c0392b;
	color: #ffffff;
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	border-radius: 6px;
	text-transform: uppercase;
	transition: all 0.2s;
	white-space: nowrap;
}

.btn-play-now:hover {
	background: #e74c3c;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
	color: #ffffff;
}

.btn-review {
	display: block;
	text-align: center;
	color: #c0392b;
	font-size: 11px;
	text-decoration: none;
	margin-top: 6px;
}

.btn-review:hover {
	text-decoration: underline;
}

/* Footer */
.legalit-comparison-footer {
	text-align: center;
	margin-top: 20px;
}

.legalit-comparison-footer p {
	color: #666;
	font-size: 12px;
	margin: 0;
}

.legalit-comparison-footer strong {
	color: #c0392b;
}

/* Comparison responsive */
@media (max-width: 768px) {
	.legalit-comparison-header h2 {
		font-size: 24px;
	}

	.col-trust, .col-games, .col-support {
		display: none;
	}
}

/* ==========================================================================
   Homepage SEO Content Section
   ========================================================================== */

.homepage-seo-content {
	background: #f5f6fa;
	padding: 60px 0;
	border-top: 1px solid #e0e0e0;
}

.homepage-seo-content .container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

.homepage-seo-content h2 {
	font-size: 28px;
	font-weight: 800;
	color: #2c3e50;
	margin: 0 0 20px 0;
	line-height: 1.3;
}

.homepage-seo-content h3 {
	font-size: 22px;
	font-weight: 700;
	color: #2c3e50;
	margin: 40px 0 16px 0;
	padding-top: 10px;
	border-top: 1px solid #e0e0e0;
}

.homepage-seo-content h4 {
	font-size: 17px;
	font-weight: 700;
	color: #c0392b;
	margin: 28px 0 8px 0;
}

.homepage-seo-content p {
	color: #666;
	font-size: 15px;
	line-height: 1.75;
	margin: 0 0 16px 0;
}

.homepage-seo-content ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.homepage-seo-content ul li {
	color: #666;
	font-size: 15px;
	line-height: 1.75;
	padding: 6px 0 6px 24px;
	position: relative;
}

.homepage-seo-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 8px;
	height: 8px;
	background: #c0392b;
	border-radius: 50%;
}

.homepage-seo-content ul li strong {
	color: #2c3e50;
}

.homepage-seo-content strong {
	color: #2c3e50;
}

/* Tables */
.homepage-seo-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0 30px 0;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
}

.homepage-seo-content thead {
	background: #f8f9fa;
}

.homepage-seo-content thead th {
	color: #c0392b;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 16px;
	text-align: left;
	border-bottom: 2px solid #c0392b;
}

.homepage-seo-content tbody td {
	color: #666666;
	font-size: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.homepage-seo-content tbody tr:last-child td {
	border-bottom: none;
}

.homepage-seo-content tbody tr:hover {
	background: #f8f9fa;
}

.homepage-seo-content tbody td strong {
	color: #2c3e50;
	font-weight: 600;
}

/* FAQ section - h4 as questions */
.homepage-seo-content h4 + p {
	margin-top: 4px;
	padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.homepage-seo-content {
		padding: 40px 0;
	}

	.homepage-seo-content h2 {
		font-size: 22px;
	}

	.homepage-seo-content h3 {
		font-size: 18px;
	}

	.homepage-seo-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.homepage-seo-content thead th,
	.homepage-seo-content tbody td {
		padding: 10px 12px;
		font-size: 13px;
		white-space: nowrap;
	}
}
