/* Kodevio Event Manager - Frontend Styles */

.kem-events-wrap,
.kem-calendar-wrap {
	--kem-accent: #FE8D03;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.kem-events-wrap *,
.kem-calendar-wrap * {
	box-sizing: border-box;
}

/* ---------------- Event List / Cards ---------------- */

.kem-event-card {
	display: flex;
	gap: 20px;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	padding: 22px;
	margin-bottom: 20px;
	background: #fff;
}

.kem-event-date-badge {
	flex: 0 0 76px;
	width: 76px;
	height: 88px;
	border: 1px solid #e6e8eb;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.kem-event-date-badge .kem-month {
	background: var(--kem-accent);
	color: #fff;
	width: 100%;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 0;
}

.kem-event-date-badge .kem-day {
	font-size: 28px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.2;
	margin-top: 4px;
}

.kem-event-date-badge .kem-weekday {
	font-size: 11px;
	font-weight: 700;
	color: #666;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

.kem-event-body {
	flex: 1;
	min-width: 0;
}

.kem-event-title {
	margin: 0 0 12px;
	font-size: 19px;
	font-weight: 700;
	color: #1a1a1a;
}

.kem-event-meta {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #333;
}

.kem-timezone {
	color: #777;
	font-size: 13px;
}

.kem-event-description {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
	margin: 14px 0;
}
.kem-event-description p:first-child {
	margin-top: 0;
}
.kem-event-description p:last-child {
	margin-bottom: 0;
}

.kem-event-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.kem-register-btn {
	display: inline-block;
	background: #12224a;
	color: #fff !important;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.3px;
	text-decoration: none !important;
	padding: 12px 22px;
	border-radius: 4px;
	transition: opacity 0.2s ease;
}
.kem-register-btn:hover {
	opacity: 0.88;
}

.kem-zoom-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--kem-accent) !important;
	text-decoration: underline !important;
	font-size: 14px;
	word-break: break-all;
}

/* Icons (simple inline SVG background, no icon font dependency) */
.kem-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin-top: 2px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.kem-icon-clock {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
}
.kem-icon-calendar {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}
.kem-icon-link {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FE8D03' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 007.07 0l2.83-2.83a5 5 0 00-7.07-7.07L11.5 4.5'/%3E%3Cpath d='M14 11a5 5 0 00-7.07 0L4.1 13.83a5 5 0 007.07 7.07l1.36-1.36'/%3E%3C/svg%3E");
}

.kem-no-events {
	color: #777;
	font-style: italic;
}

/* ---------------- Calendar ---------------- */

.kem-calendar-wrap {
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	padding: 24px;
	background: #fff;
}

.kem-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	flex-wrap: wrap;
	gap: 10px;
}

.kem-calendar-title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #1a1a1a;
}

.kem-calendar-nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.kem-calendar-month-label {
	font-weight: 700;
	font-size: 15px;
	color: #1a1a1a;
	min-width: 130px;
	text-align: center;
}

.kem-cal-prev,
.kem-cal-next {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	padding: 4px 8px;
	border-radius: 4px;
}
.kem-cal-prev:hover,
.kem-cal-next:hover {
	background: #f2f3f5;
}

.kem-calendar-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.kem-calendar-table th {
	font-size: 11px;
	font-weight: 700;
	color: #9aa0a6;
	letter-spacing: 0.5px;
	padding: 8px 0;
	text-align: center;
	border-bottom: 1px solid #eef0f2;
}

.kem-day-cell {
	text-align: center;
	padding: 10px 0;
	border-bottom: 1px solid #eef0f2;
	position: relative;
	font-size: 14px;
	color: #1a1a1a;
	vertical-align: middle;
}

.kem-day-cell .kem-day-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.kem-other-month {
	color: #c9cdd2;
}

.kem-day-cell.kem-today .kem-day-number {
	background: var(--kem-accent);
	color: #fff;
	font-weight: 700;
}

.kem-event-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--kem-accent);
	margin: 2px auto 0;
}

.kem-calendar-events-list {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #eef0f2;
}

.kem-calendar-event-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	padding: 8px 0;
	font-size: 14px;
}

.kem-event-dot-inline {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--kem-accent);
	flex: 0 0 8px;
}

.kem-calendar-event-date {
	font-weight: 700;
	color: #1a1a1a;
	min-width: 46px;
}

.kem-calendar-event-title {
	font-weight: 700;
	color: #1a1a1a;
}

.kem-calendar-event-time {
	color: #777;
	font-size: 13px;
}

.kem-calendar-inner.kem-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
	.kem-event-card {
		flex-direction: column;
	}
	.kem-event-date-badge {
		flex-direction: row;
		width: 100%;
		height: auto;
		gap: 8px;
		padding: 8px 0;
	}
	.kem-event-date-badge .kem-month {
		width: auto;
		padding: 4px 10px;
		border-radius: 4px;
	}
	.kem-calendar-month-label {
		min-width: auto;
	}
}
