/* ==========================================================================
   WP Countdown Timer Pro — Frontend Styles
   ========================================================================== */

:root {
	--wctp-primary: #e74c3c;
	--wctp-bg: #1a1a2e;
	--wctp-text: #ffffff;
}

/* Timer wrapper
   ========================================================================== */

.wctp-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 32px 24px;
	border-radius: 12px;
	background: var(--wctp-bg);
	color: var(--wctp-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
	max-width: 600px;
	margin: 24px auto;
}

/* Heading
   ========================================================================== */

.wctp-heading {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0.9;
}

/* Digits row
   ========================================================================== */

.wctp-digits {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wctp-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 72px;
}

.wctp-value {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background: var(--wctp-primary);
	color: var(--wctp-text);
	padding: 12px 16px;
	border-radius: 8px;
	min-width: 72px;
	display: block;
	text-align: center;
}

.wctp-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.7;
}

.wctp-separator {
	font-size: 36px;
	font-weight: 700;
	opacity: 0.5;
	margin-bottom: 20px;
}

/* Expired
   ========================================================================== */

.wctp-expired .wctp-digits {
	display: none;
}

.wctp-expired-content {
	font-size: 18px;
	font-weight: 600;
	padding: 16px 24px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
}

/* Style presets
   ========================================================================== */

/* Minimal */
.wctp-style-minimal {
	--wctp-bg: #ffffff;
	--wctp-text: #333333;
	--wctp-primary: #f5f5f5;
	border: 1px solid #e0e0e0;
}

.wctp-style-minimal .wctp-value {
	color: #333333;
}

/* Dark */
.wctp-style-dark {
	--wctp-bg: #0d0d0d;
	--wctp-text: #f0f0f0;
	--wctp-primary: #2d2d2d;
}

/* Urgent */
.wctp-style-urgent {
	--wctp-bg: #1a0000;
	--wctp-text: #ffffff;
	--wctp-primary: #cc0000;
	animation: wctp-pulse 2s ease-in-out infinite;
}

@keyframes wctp-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
	50%      { box-shadow: 0 0 20px 4px rgba(204, 0, 0, 0.3); }
}

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

@media (max-width: 480px) {
	.wctp-countdown {
		padding: 20px 16px;
		gap: 12px;
	}

	.wctp-value {
		font-size: 32px;
		padding: 8px 10px;
		min-width: 52px;
	}

	.wctp-unit {
		min-width: 52px;
	}

	.wctp-separator {
		font-size: 24px;
	}

	.wctp-heading {
		font-size: 15px;
	}
}
