/**
 * ElementorScheduler Pro - Public Styles
 *
 * Frontend styles for hidden elements, countdown timers,
 * and fallback content. Scoped under .elementorscheduler-pro namespace.
 *
 * @package ElementorSchedulerPro
 */

/* ─── Hidden Element ────────────────────────────────────────────────── */

.esp-hidden {
	display: none !important;
	visibility: hidden;
}

/* ─── Countdown Wrapper ─────────────────────────────────────────────── */

.esp-countdown-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2em 1.5em;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.esp-countdown-label {
	font-size: 1.125em;
	font-weight: 600;
	color: #333;
	margin-bottom: 1em;
	letter-spacing: 0.02em;
}

.esp-countdown-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
}

.esp-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.esp-countdown-value {
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.esp-countdown-unit-label {
	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 0.4em;
	opacity: 0.7;
}

.esp-countdown-separator {
	font-size: 1.5em;
	font-weight: 300;
	opacity: 0.4;
	line-height: 1;
	align-self: flex-start;
	padding-top: 0.1em;
}

.esp-countdown-expired {
	font-size: 1.25em;
	font-weight: 600;
	color: #999;
	padding: 2em;
	text-align: center;
}

/* ─── Countdown Theme: Minimal ──────────────────────────────────────── */

.esp-countdown--minimal .esp-countdown-timer {
	gap: 1em;
}

.esp-countdown--minimal .esp-countdown-value {
	font-size: 2.5em;
	font-weight: 200;
	color: #222;
}

.esp-countdown--minimal .esp-countdown-unit-label {
	color: #888;
}

.esp-countdown--minimal .esp-countdown-separator {
	display: none;
}

/* ─── Countdown Theme: Boxes ────────────────────────────────────────── */

.esp-countdown--boxes .esp-countdown-timer {
	gap: 0.75em;
}

.esp-countdown--boxes .esp-countdown-unit {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 1em 1.25em;
	border-radius: 12px;
	min-width: 80px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.esp-countdown--boxes .esp-countdown-value {
	font-size: 2em;
	font-weight: 700;
}

.esp-countdown--boxes .esp-countdown-unit-label {
	color: rgba(255, 255, 255, 0.8);
}

.esp-countdown--boxes .esp-countdown-separator {
	color: #667eea;
	font-size: 2em;
	font-weight: 700;
	align-self: center;
}

/* ─── Countdown Theme: Flip ─────────────────────────────────────────── */

.esp-countdown--flip .esp-countdown-timer {
	gap: 0.5em;
}

.esp-countdown--flip .esp-countdown-unit {
	position: relative;
	background: #1a1a2e;
	color: #e0e0e0;
	border-radius: 8px;
	min-width: 70px;
	overflow: hidden;
}

.esp-countdown--flip .esp-countdown-value {
	font-size: 2.2em;
	font-weight: 700;
	padding: 0.4em 0.5em 0.1em;
	background: linear-gradient(180deg, #1a1a2e 50%, #16213e 50%);
	display: block;
}

.esp-countdown--flip .esp-countdown-unit::after {
	content: '';
	position: absolute;
	inset-inline-start: 4px;
	inset-inline-end: 4px;
	top: 50%;
	height: 1px;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.esp-countdown--flip .esp-countdown-unit-label {
	background: #16213e;
	padding: 0.3em 0.5em 0.5em;
	color: rgba(224, 224, 224, 0.6);
	display: block;
	width: 100%;
}

.esp-countdown--flip .esp-countdown-separator {
	color: #e0e0e0;
	font-size: 2em;
	font-weight: 700;
	align-self: center;
}

/* ─── RTL Support ───────────────────────────────────────────────────── */

[dir="rtl"] .esp-countdown-timer {
	flex-direction: row-reverse;
}

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.esp-countdown--minimal .esp-countdown-value,
	.esp-countdown--boxes .esp-countdown-value,
	.esp-countdown--flip .esp-countdown-value {
		font-size: 1.5em;
	}

	.esp-countdown--boxes .esp-countdown-unit {
		min-width: 60px;
		padding: 0.75em 0.75em;
	}

	.esp-countdown--flip .esp-countdown-unit {
		min-width: 55px;
	}

	.esp-countdown-timer {
		gap: 0.35em;
	}
}
