/**
 * HostingTags — Go Interstitial Page Styles
 *
 * Standalone page — design tokens injected inline via PHP.
 *
 * @package HostingTags
 * @since   3.1.0
 */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.go-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, var(--ht-gray-50) 0%, var(--ht-primary-lighter, #e8edf4) 50%, var(--ht-gray-100) 100%);
	font-family: var(--ht-body-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-size: 15px;
	color: var(--ht-gray-700);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ─── Wrapper ─── */
.go-wrap {
	width: 100%;
	max-width: 480px;
	padding: 24px 16px;
}

/* ─── Top Bar ─── */
.go-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 0 4px;
}

.go-topbar__brand {
	text-decoration: none;
	color: var(--ht-gray-900);
	font-weight: 700;
	font-size: 16px;
}

.go-topbar__logo {
	max-height: 28px;
	width: auto;
}

.go-topbar__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	background: var(--ht-success-light);
	color: var(--ht-success-dark);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

/* ─── Main Card ─── */
.go-card {
	background: #fff;
	border-radius: var(--ht-radius-lg, 14px);
	padding: 40px 32px;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, .06),
		0 12px 40px rgba(0, 0, 0, .07);
	text-align: center;
}

/* Logo */
.go-card__logo-wrap {
	margin-bottom: 20px;
}

.go-card__logo {
	width: 80px;
	height: 80px;
	border-radius: 16px;
	object-fit: contain;
	background: var(--ht-gray-50);
	padding: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.go-card__logo-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: var(--ht-primary-lighter, #e8edf4);
	color: var(--ht-primary);
}

/* Title */
.go-card__title {
	font-size: 18px;
	font-weight: 500;
	color: var(--ht-gray-800);
	margin-bottom: 16px;
	line-height: 1.5;
	font-family: var(--ht-heading-font, inherit);
}

.go-card__title strong {
	font-weight: 700;
	color: var(--ht-gray-900);
}

/* Discount badge */
.go-card__discount {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 18px;
	background: linear-gradient(135deg, var(--ht-success), var(--ht-success-dark));
	color: #fff;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(var(--ht-success-rgb, 22, 163, 74), .25);
}

/* Disclaimer */
.go-card__disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: var(--ht-warning-light);
	color: var(--ht-warning-dark);
	padding: 12px 16px;
	border-radius: var(--ht-radius-sm, 6px);
	font-size: 13px;
	line-height: 1.5;
	text-align: start;
	margin-bottom: 20px;
}

.go-card__disclaimer svg {
	flex-shrink: 0;
	margin-top: 2px;
}

/* URL preview */
.go-card__url-preview {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	background: var(--ht-gray-50);
	border: 1px solid var(--ht-gray-200);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ht-gray-500);
	margin-bottom: 28px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.go-card__url-preview svg {
	flex-shrink: 0;
	color: var(--ht-gray-400);
}

/* ─── Progress Ring ─── */
.go-card__timer {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.go-ring {
	transform: rotate(-90deg);
}

.go-ring__bg {
	fill: none;
	stroke: var(--ht-gray-100);
	stroke-width: 6;
}

.go-ring__progress {
	fill: none;
	stroke: var(--ht-primary);
	stroke-width: 6;
	stroke-linecap: round;
	transition: stroke-dashoffset 1s linear;
}

.go-ring--done .go-ring__progress {
	stroke: var(--ht-success);
	transition: stroke .3s;
}

.go-ring__text {
	position: absolute;
	font-size: 28px;
	font-weight: 800;
	color: var(--ht-primary);
	line-height: 1;
	font-family: var(--ht-heading-font, inherit);
}

.go-ring--done .go-ring__text {
	color: var(--ht-success);
	font-size: 32px;
}

/* Wait label */
.go-card__wait-label {
	font-size: 13px;
	color: var(--ht-gray-400);
	margin-bottom: 8px;
}

/* ─── CTA Button ─── */
.go-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--ht-primary), var(--ht-primary-dark));
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	border: none;
	border-radius: var(--ht-radius, 10px);
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(var(--ht-primary-rgb, 18, 65, 135), .3);
	transition: transform .15s, box-shadow .15s;
	animation: go-btn-enter .4s ease both;
}

.go-card__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(var(--ht-primary-rgb, 18, 65, 135), .4);
	color: #fff !important;
}

@keyframes go-btn-enter {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Fallback link */
.go-card__fallback {
	font-size: 12px;
	color: var(--ht-gray-400);
	margin-top: 14px;
}

.go-card__fallback a {
	color: var(--ht-primary);
	text-decoration: underline;
}

/* ─── Footer ─── */
.go-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	padding: 0 4px;
}

.go-footer__back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--ht-gray-500);
	text-decoration: none;
	transition: color .15s;
}

.go-footer__back:hover {
	color: var(--ht-primary);
}

.go-footer__copy {
	font-size: 11px;
	color: var(--ht-gray-400);
}

/* ─── RTL ─── */
[dir="rtl"] .go-card__disclaimer {
	text-align: right;
}

[dir="rtl"] .go-footer__back svg {
	transform: scaleX(-1);
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
	.go-card {
		padding: 28px 20px;
	}

	.go-card__title {
		font-size: 16px;
	}

	.go-card__cta {
		font-size: 15px;
		padding: 12px 20px;
	}
}
