/*
 * OCG brand colors, hardcoded to match ocg_style.css since this plugin
 * doesn't have access to those CSS custom properties:
 * mint #e8f8f8, teal #4dc8d0, teal-dark #3ab0b8, black #1a1a1a, gray #555555
 */

.ocg-cft-page {
	max-width: 1200px;
	margin: 0 auto;
}
.ocg-cft-row {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}
.ocg-cft-col-calendar {
	flex: 1 1 55%;
	min-width: 320px;
}
.ocg-cft-col-cards {
	flex: 1 1 38%;
	min-width: 280px;
}
.ocg-cft-empty {
	color: #555555;
	font-style: italic;
	text-align: center;
	padding: 40px 0;
}

/* Calendar widget */
.ocg-cft-calendar-wrapper {
	position: sticky;
	top: 20px;
}
.ocg-cft-calendar-widget {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}
.ocg-cal-header {
	background: #4dc8d0;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
}
.ocg-cal-title {
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.05em;
}
.ocg-cal-nav {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.8rem;
	cursor: pointer;
	padding: 0 8px;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
}
.ocg-cal-nav:hover {
	opacity: 1;
}
.ocg-cal-days-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: rgba(77, 200, 208, 0.1);
	border-bottom: 1px solid rgba(77, 200, 208, 0.2);
}
.ocg-cal-days-header span {
	text-align: center;
	padding: 8px 4px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #3ab0b8;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ocg-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	padding: 8px;
	gap: 2px;
}
.ocg-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 0.9rem;
	cursor: default;
	position: relative;
	transition: background 0.15s;
}
.ocg-cal-day.empty {
	background: none;
}
.ocg-cal-day.today {
	border: 2px solid #4dc8d0;
	font-weight: 700;
}
.ocg-cal-day.has-show {
	background: #4dc8d0;
	color: #fff !important;
	font-weight: 700;
	cursor: pointer;
}
.ocg-cal-day.has-show:hover {
	background: #3ab0b8;
	transform: scale(1.1);
}
.ocg-cal-day.in-show {
	background: rgba(77, 200, 208, 0.25);
	border-radius: 0;
	cursor: pointer;
}
.ocg-cal-day.show-start {
	background: #4dc8d0;
	color: #fff;
	font-weight: 700;
	border-radius: 50% 0 0 50%;
	cursor: pointer;
}
.ocg-cal-day.show-end {
	background: rgba(77, 200, 208, 0.25);
	border-radius: 0 50% 50% 0;
	cursor: pointer;
}

/* Show cards */
.ocg-cft-show-card {
	background: #e8f8f8;
	border: 1px solid #4dc8d0;
	border-radius: 8px;
	padding: 18px;
	margin-bottom: 16px;
}
.ocg-cft-show-name {
	color: #1a1a1a;
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 4px;
}
.ocg-cft-show-dates {
	color: #3ab0b8;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 8px;
}
.ocg-cft-show-address {
	color: #555555;
	font-size: 0.9rem;
	margin-bottom: 8px;
}
.ocg-cft-show-address a {
	color: #4dc8d0;
	text-decoration: none;
	font-weight: 600;
}
.ocg-cft-show-link {
	color: #4dc8d0;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
}
.ocg-cft-show-link:hover {
	color: #3ab0b8;
}

/* Popup */
.ocg-cft-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ocg-cft-popup {
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	position: relative;
	border-top: 4px solid #4dc8d0;
}
.ocg-cft-popup-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #555555;
}
.ocg-cft-popup-close:hover {
	color: #1a1a1a;
}
.ocg-cft-popup-multi-item {
	border-top: 1px solid rgba(77, 200, 208, 0.2);
	padding-top: 10px;
	margin-top: 10px;
}
.ocg-cft-popup-multi-item strong {
	color: #3ab0b8;
}
.ocg-cft-popup-multi-link {
	color: #4dc8d0;
	font-size: 0.85rem;
	text-decoration: none;
}

@media (max-width: 782px) {
	.ocg-cft-row {
		flex-direction: column;
	}
	.ocg-cft-calendar-wrapper {
		position: static;
	}
}
