/* Frontend table styling. Modern, theme-aware design.
   Default theme: blue ranks, red CTAs.
   Alt theme: red ranks, blue CTAs (add .gst-theme-alt to wrapper). */

.gst-table-wrap {
	margin: 1.5em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;

	/* Theme tokens — overridden by .gst-theme-alt below. */
	--gst-rank-bg: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
	--gst-rank-color: #fff;
	--gst-rank-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
	--gst-cta-bg: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	--gst-cta-bg-hover: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	--gst-cta-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
	--gst-cta-shadow-hover: 0 4px 14px rgba(220, 38, 38, 0.4);
	--gst-accent-color: #2563eb;
	--gst-rating-color: #1e40af;
}

.gst-table-wrap.gst-theme-alt {
	--gst-rank-bg: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	--gst-rank-color: #fff;
	--gst-rank-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
	--gst-cta-bg: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
	--gst-cta-bg-hover: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
	--gst-cta-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
	--gst-cta-shadow-hover: 0 4px 14px rgba(37, 99, 235, 0.4);
	--gst-accent-color: #dc2626;
	--gst-rating-color: #b91c1c;
}

.gst-sites-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gst-sites-table thead th {
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.gst-sites-table tbody td {
	padding: 18px 16px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	transition: background 0.15s ease;
}

.gst-sites-table tbody tr {
	transition: background 0.15s ease;
}

.gst-sites-table tbody tr:hover {
	background: #f8fafc;
}

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

.gst-col-rank { width: 72px; text-align: center; }
.gst-col-site { min-width: 220px; }
.gst-col-type { width: 120px; text-align: center; }
.gst-col-bonus { font-weight: 500; color: #1e293b; }
.gst-col-rating { text-align: center; width: 100px; }
.gst-col-promo { width: 140px; }
.gst-col-min { width: 110px; text-align: center; }
.gst-col-cta { width: 160px; text-align: right; }

.gst-type-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
}

.gst-type-offshore {
	background: #fef3c7;
	color: #92400e;
}

.gst-type-regulated {
	background: #dcfce7;
	color: #166534;
}

.gst-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--gst-rank-bg);
	color: var(--gst-rank-color);
	font-weight: 700;
	font-size: 15px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: var(--gst-rank-shadow);
	letter-spacing: 0;
}

.gst-site-link {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}

.gst-site-link:hover .gst-site-name {
	color: var(--gst-accent-color);
}

.gst-site-logo {
	width: 120px;
	height: 60px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 6px;
}

.gst-site-name {
	font-weight: 600;
	color: #0f172a;
	font-size: 16px;
	transition: color 0.15s ease;
}

.gst-rating-number {
	font-size: 22px;
	font-weight: 700;
	color: var(--gst-rating-color);
	line-height: 1;
}

.gst-rating-suffix {
	font-size: 12px;
	color: #94a3b8;
	margin-left: 2px;
}

.gst-promo-code {
	display: inline-block;
	background: #fffbeb;
	border: 1px dashed #f59e0b;
	color: #92400e;
	padding: 6px 10px;
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.gst-promo-none {
	color: #cbd5e1;
}

.gst-cta-button {
	display: inline-block;
	background: var(--gst-cta-bg);
	color: #fff !important;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	box-shadow: var(--gst-cta-shadow);
	transition: all 0.2s ease;
	white-space: nowrap;
	border: none;
}

.gst-cta-button:hover {
	background: var(--gst-cta-bg-hover);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: var(--gst-cta-shadow-hover);
}

.gst-cta-button:active {
	transform: translateY(0);
	box-shadow: var(--gst-cta-shadow);
}

/* Mobile-friendly responsive layout. */
@media (max-width: 720px) {
	.gst-sites-table {
		font-size: 14px;
		border-radius: 8px;
	}
	.gst-sites-table thead th {
		padding: 10px 10px;
		font-size: 11px;
	}
	.gst-sites-table tbody td {
		padding: 14px 10px;
	}
	.gst-site-logo {
		width: 80px;
		height: 40px;
	}
	.gst-site-link {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.gst-cta-button {
		padding: 10px 14px;
		font-size: 12px;
	}
	.gst-col-rank { width: 50px; }
	.gst-rank-badge {
		width: 36px;
		height: 36px;
		font-size: 13px;
	}
	.gst-rating-number {
		font-size: 18px;
	}
}
