/* Route 61 Events Calendar — Frontend styles */

.r61-ec-frontend {
	--r61-ec-accent: #7a1f2b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 480px;
	margin: 0 auto;
	color: #1d1d1f;
}

.r61-ec-fc-header {
	text-align: center;
	margin-bottom: 20px;
}

.r61-ec-fc-heading {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}

.r61-ec-fc-note {
	font-size: 14px;
	color: #6b6b70;
	margin: 0;
}

.r61-ec-fc-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
}

.r61-ec-fc-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.r61-ec-fc-cal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.r61-ec-fc-nav {
	background: #f5f5f7;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1d1d1f;
	transition: background 0.15s ease, transform 0.1s ease;
}

.r61-ec-fc-nav:hover {
	background: var(--r61-ec-accent);
	color: #fff;
	transform: scale(1.05);
}

.r61-ec-fc-legend {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin-bottom: 16px;
	font-size: 12.5px;
	color: #6b6b70;
}

.r61-ec-fc-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.r61-ec-fc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.r61-ec-fc-dot-available { background: #2fae5e; }
.r61-ec-fc-dot-reserved { background: #d94f4f; }
.r61-ec-fc-dot-blocked { background: #b7b7bc; }

.r61-ec-fc-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #9a9aa0;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}

.r61-ec-fc-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	min-height: 60px;
}

.r61-ec-fc-loading {
	text-align: center;
	font-size: 13px;
	color: #9a9aa0;
	padding: 10px 0 0;
}

.r61-ec-fc-day {
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13.5px;
	font-weight: 500;
	background: #f5f5f7;
	color: #c9c9ce;
	position: relative;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.r61-ec-fc-day.is-empty {
	visibility: hidden;
}

.r61-ec-fc-day.is-past {
	color: #d8d8dc;
	background: #fafafa;
}

.r61-ec-fc-day.is-today::after {
	content: '';
	position: absolute;
	bottom: 5px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.r61-ec-fc-day.status-available {
	background: rgba(47, 174, 94, 0.12);
	color: #1c7a3f;
	cursor: pointer;
}

.r61-ec-fc-day.status-reserved {
	background: rgba(217, 79, 79, 0.1);
	color: #a83232;
}

.r61-ec-fc-day.status-blocked {
	background: #efeff1;
	color: #9a9aa0;
}

.r61-ec-fc-day.status-available:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 6px 16px rgba(47, 174, 94, 0.25);
}

/* Modal */
.r61-ec-fc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

/* The [hidden] attribute is only display:none by default in the UA
   stylesheet at (0,1,0) specificity -- same as our .r61-ec-fc-modal class
   above, so without this rule our display:flex wins and the modal shows
   on every page load. This rule must stay below the block above. */
.r61-ec-fc-modal[hidden] {
	display: none;
}

.r61-ec-fc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 22, 0.5);
	backdrop-filter: blur(2px);
}

.r61-ec-fc-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 32px;
	max-width: 380px;
	width: 100%;
	text-align: center;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
	font-family: inherit;
}

.r61-ec-fc-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #9a9aa0;
}

.r61-ec-fc-modal-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 14px;
}

.r61-ec-fc-modal-badge.badge-available { background: rgba(47, 174, 94, 0.15); color: #1c7a3f; }
.r61-ec-fc-modal-badge.badge-reserved { background: rgba(217, 79, 79, 0.12); color: #a83232; }
.r61-ec-fc-modal-badge.badge-blocked { background: #efeff1; color: #7a7a80; }
.r61-ec-fc-modal-badge.badge-past { background: #efeff1; color: #7a7a80; }

.r61-ec-fc-modal-panel h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
}

.r61-ec-fc-modal-panel p {
	margin: 0 0 20px;
	font-size: 14.5px;
	color: #55555a;
	line-height: 1.5;
}

.r61-ec-fc-cta {
	display: inline-block;
	background: var(--r61-ec-accent);
	color: #fff !important;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14.5px;
	transition: transform 0.12s ease, opacity 0.12s ease;
}

.r61-ec-fc-cta:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.r61-ec-fc-cta.is-hidden {
	display: none;
}

@media (max-width: 480px) {
	.r61-ec-fc-card {
		padding: 18px;
		border-radius: 16px;
	}
	.r61-ec-fc-heading {
		font-size: 22px;
	}
}
