/* ==========================================================================
   Download Countdown Page
   ========================================================================== */

/* Astra container reset */
.page-template-page-download .site-content,
.page-template-page-download #primary,
.page-template-page-download .content-area,
.page-template-page-download .ast-container,
.page-template-page-download .ast-plain-container,
.page-template-page-download .entry-content,
.page-template-page-download article {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
}

/* Page background */
.rdl-wrap {
	min-height: 80vh;
	background: #f5f5f5;
	padding: 40px 20px 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Back link */
.rdl-back-link {
	display: block;
	width: 100%;
	max-width: 820px;
	margin-bottom: 16px;
	font-size: 0.9rem;
	color: #4285F4;
	text-decoration: none;
	font-weight: 500;
}
.rdl-back-link:hover {
	text-decoration: underline;
	color: #1a73e8;
}

/* Card */
.rdl-card {
	width: 100%;
	max-width: 820px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.1);
	border: 1px solid #e0e0e0;
	overflow: hidden;
}

/* Game info row */
.rdl-game-info {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 28px 28px 24px;
}

.rdl-game-cover {
	width: 120px;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rdl-game-details {
	flex: 1;
	min-width: 0;
}

.rdl-game-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
	line-height: 1.3;
}

.rdl-game-cat {
	display: inline-block;
	font-size: 0.85rem;
	color: #4285F4;
	font-weight: 600;
	margin-bottom: 16px;
}

.rdl-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rdl-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f1f3f4;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 0.85rem;
	color: #3c4043;
}

.rdl-badge strong {
	color: #5f6368;
	font-weight: 600;
}

/* Divider */
.rdl-divider {
	margin: 0;
	border: none;
	border-top: 1px solid #e8eaed;
}

/* Countdown area */
.rdl-countdown-area {
	padding: 32px 28px 36px;
	text-align: center;
}

.rdl-waiting-text {
	font-size: 1rem;
	color: #5f6368;
	margin: 0 0 20px;
}

.rdl-progress-wrap {
	background: #e5e7eb;
	border-radius: 50px;
	height: 10px;
	overflow: hidden;
	margin-bottom: 10px;
}

.rdl-progress-bar {
	height: 100%;
	width: 100%;
	background: #4CAF50;
	border-radius: 50px;
	transform-origin: left;
	animation: rdl-countdown 10s linear forwards;
}

@keyframes rdl-countdown {
	from { transform: scaleX(1); }
	to   { transform: scaleX(0); }
}

.rdl-timer {
	font-size: 0.85rem;
	color: #9ca3af;
	margin: 0 0 28px;
}

/* Download button */
.rdl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #4285F4;
	color: #fff !important;
	text-decoration: none;
	padding: 16px 40px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 4px 14px rgba(66,133,244,0.35);
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	animation: rdl-pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.rdl-btn:hover {
	background: #1a73e8;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(66,133,244,0.45);
	color: #fff !important;
	text-decoration: none;
}

.rdl-btn[hidden] { display: none !important; }

@keyframes rdl-pop-in {
	from { transform: scale(0.88); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
	.rdl-game-info { flex-direction: column; align-items: center; text-align: center; }
	.rdl-game-cover { width: 100px; height: 133px; }
	.rdl-badges { justify-content: center; }
	.rdl-game-title { font-size: 1.1rem; }
	.rdl-card { border-radius: 8px; }
	.rdl-countdown-area { padding: 24px 16px 28px; }
}