/**
 * Promotional Banners Frontend Styles
 *
 * Responsive banner styles for WooCommerce pages.
 * Follows Droomtextiel brand guidelines (1600px max-width, #84B082).
 *
 * @package DreamTheme
 * @since 1.0.0
 */

/* Banner Container */
.dreamtheme-promo-banner-container {
	max-width: 1600px;
	margin: 0 auto 24px;
	padding: 0 12px;
}

/* Banner */
.dreamtheme-promo-banner {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dreamtheme-promo-banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Banner Link */
.dreamtheme-promo-banner__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.dreamtheme-promo-banner__link:focus {
	outline: 2px solid #84B082;
	outline-offset: 2px;
}

/* Banner Image */
.dreamtheme-promo-banner__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Context-specific Styles */
.dreamtheme-promo-banner--archive {
	margin-bottom: 32px;
}

.dreamtheme-promo-banner--single {
	margin-bottom: 24px;
}

.dreamtheme-promo-banner--cart,
.dreamtheme-promo-banner--checkout {
	margin-bottom: 20px;
}

/* Countdown Timer */
.dreamtheme-promo-countdown {
	background: rgba(132, 176, 130, 0.1);
	border-left: 3px solid #84B082;
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dreamtheme-promo-countdown__label {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.dreamtheme-promo-countdown__timer {
	font-size: 16px;
	font-weight: 700;
	color: #84B082;
	font-family: 'Courier New', monospace;
	letter-spacing: 0.5px;
}

/* Countdown Hidden State */
.dreamtheme-promo-countdown.is-expired {
	display: none;
}

/* Screen Reader Text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Responsive Design */
@media (max-width: 1600px) {
	.dreamtheme-promo-banner-container {
		padding: 0 20px;
	}
}

@media (max-width: 980px) {
	.dreamtheme-promo-banner-container {
		padding: 0 16px;
		margin-bottom: 20px;
	}

	.dreamtheme-promo-banner--archive {
		margin-bottom: 24px;
	}

	.dreamtheme-promo-countdown {
		padding: 10px 14px;
	}

	.dreamtheme-promo-countdown__label {
		font-size: 13px;
	}

	.dreamtheme-promo-countdown__timer {
		font-size: 15px;
	}
}

@media (max-width: 600px) {
	.dreamtheme-promo-banner-container {
		padding: 0 12px;
		margin-bottom: 16px;
	}

	.dreamtheme-promo-banner {
		border-radius: 2px;
	}

	.dreamtheme-promo-countdown {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 10px 12px;
	}

	.dreamtheme-promo-countdown__label {
		font-size: 12px;
	}

	.dreamtheme-promo-countdown__timer {
		font-size: 14px;
	}
}

/* Animation for Countdown Updates */
@keyframes countdown-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

.dreamtheme-promo-countdown__timer.is-updating {
	animation: countdown-pulse 0.5s ease-in-out;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.dreamtheme-promo-banner {
		transition: none;
	}

	.dreamtheme-promo-banner:hover {
		transform: none;
	}

	.dreamtheme-promo-countdown__timer.is-updating {
		animation: none;
	}
}

/* Print Styles */
@media print {
	.dreamtheme-promo-countdown {
		display: none;
	}

	.dreamtheme-promo-banner {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

