/**
 * Store Hours Manager — Frontend Styles
 *
 * Notification display and catalog mode visual indicators.
 *
 * @package WCSH
 * @since   1.0.0
 */

/* ============================================================
   CSS Custom Properties (Frontend)
   ============================================================ */

:root {
	--wcsh-notify-bg: #1e293b;
	--wcsh-notify-text: #f1f5f9;
	--wcsh-notify-accent: #818cf8;
	--wcsh-notify-radius: 16px;
	--wcsh-notify-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
	--wcsh-notify-max-width: 420px;
	--wcsh-notify-z: 999999;
}

/* ============================================================
   Notification Box
   ============================================================ */

.wcsh-notification-box {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: var(--wcsh-notify-z);
	max-width: var(--wcsh-notify-max-width);
	width: calc(100% - 48px);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	animation: wcsh-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wcsh-notification-inner {
	position: relative;
	background: var(--wcsh-notify-bg);
	color: var(--wcsh-notify-text);
	border-radius: var(--wcsh-notify-radius);
	padding: 24px;
	box-shadow: var(--wcsh-notify-shadow);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	overflow: hidden;
}

/* Subtle gradient overlay */
.wcsh-notification-inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #818cf8, #c084fc, #f472b6);
	border-radius: var(--wcsh-notify-radius) var(--wcsh-notify-radius) 0 0;
}

/* ============================================================
   Close Button
   ============================================================ */

.wcsh-notification-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: var(--wcsh-notify-text);
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
	line-height: 1;
}

.wcsh-notification-close:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: scale(1.05);
}

/* ============================================================
   Icon
   ============================================================ */

.wcsh-notification-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(192, 132, 252, 0.2));
	border-radius: 12px;
	margin-bottom: 16px;
	color: var(--wcsh-notify-accent);
}

/* ============================================================
   Content
   ============================================================ */

.wcsh-notification-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
	letter-spacing: -0.02em;
}

.wcsh-notification-message {
	font-size: 14px;
	line-height: 1.6;
	color: #94a3b8;
	margin: 0 0 12px;
}

.wcsh-notification-message p {
	margin: 0;
}

/* ============================================================
   Next Opening
   ============================================================ */

.wcsh-notification-next-opening {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wcsh-notify-accent);
	margin: 0 0 16px;
	padding: 8px 12px;
	background: rgba(129, 140, 248, 0.08);
	border-radius: 8px;
	border: 1px solid rgba(129, 140, 248, 0.15);
}

.wcsh-next-opening-icon {
	font-size: 14px;
}

/* ============================================================
   Quick Links
   ============================================================ */

.wcsh-notification-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wcsh-quick-link-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #818cf8, #6366f1);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
}

.wcsh-quick-link-btn:hover {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
	color: #fff;
	text-decoration: none;
}

/* ============================================================
   Catalog Mode Indicators
   ============================================================ */

.wcsh-catalog-notice {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 1px solid #f59e0b;
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
	color: #92400e;
	font-size: 14px;
	line-height: 1.6;
}

.wcsh-catalog-notice p {
	margin: 0;
}

.wcsh-catalog-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #f59e0b;
	color: #fff;
	padding: 3px 10px;
	border-radius: 4px;
	margin-top: 8px;
}

/* ============================================================
   Checkout Disabled Button
   ============================================================ */

.wcsh-checkout-disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	background: #9ca3af !important;
	border-color: #9ca3af !important;
	color: #fff !important;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes wcsh-slide-up {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes wcsh-fade-out {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(20px) scale(0.96);
	}
}

.wcsh-notification-hiding {
	animation: wcsh-fade-out 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (max-width: 480px) {
	.wcsh-notification-box {
		bottom: 12px;
		right: 12px;
		width: calc(100% - 24px);
		max-width: none;
	}

	.wcsh-notification-inner {
		padding: 20px;
	}

	.wcsh-notification-title {
		font-size: 16px;
	}

	.wcsh-notification-links {
		flex-direction: column;
	}

	.wcsh-quick-link-btn {
		justify-content: center;
	}
}

/* ============================================================
   Notification Bar (Premium)
   ============================================================ */

.wcsh-notification-bar {
	position: fixed;
	left: 0;
	width: 100%;
	z-index: var(--wcsh-notify-z);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.15);
	animation: wcsh-bar-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wcsh-bar-top {
	top: 0;
}

.wcsh-bar-bottom {
	bottom: 0;
	animation: wcsh-bar-slide-up-full 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* WP Admin Bar offset */
.logged-in.admin-bar .wcsh-bar-top {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.logged-in.admin-bar .wcsh-bar-top {
		top: 46px;
	}
}

.wcsh-notification-inner-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 24px;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	min-height: 48px;
}

.wcsh-bar-content-wrapper {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	flex: 1;
}

.wcsh-notification-logo-bar {
	display: inline-block;
	border-radius: 3px;
}

.wcsh-notification-message-bar {
	font-size: 14px;
	font-weight: 500;
}

.wcsh-countdown-container-bar, .wcsh-notification-next-opening-bar {
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Animations for Bar */
@keyframes wcsh-bar-slide-down {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: translateY(0);
	}
}

@keyframes wcsh-bar-slide-up-full {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

/* ============================================================
   Cuenta Regresiva (Countdown)
   ============================================================ */

.wcsh-countdown-timer {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
}

.wcsh-countdown-timer span {
	font-weight: 700;
	padding: 2px 5px;
	background: rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	min-width: 22px;
	text-align: center;
	display: inline-block;
}

@media (max-width: 768px) {
	.wcsh-notification-inner-bar {
		flex-direction: column;
		gap: 10px;
		padding: 12px;
		text-align: center;
	}

	.wcsh-bar-content-wrapper {
		justify-content: center;
		flex-direction: column;
		gap: 8px;
	}

	.wcsh-countdown-container-bar, 
	.wcsh-notification-next-opening-bar {
		margin-left: 0 !important;
		padding-left: 0 !important;
		border-left: none !important;
		display: block;
		width: 100%;
	}

	.wcsh-notification-links-bar {
		margin-left: 0 !important;
		display: block;
		width: 100%;
		margin-top: 5px;
	}

	.wcsh-notification-close-bar {
		position: absolute;
		top: 10px;
		right: 10px;
	}
}
