/* ========================================
   KALENDÁR PAGE — Timeline dizajn
   Namespace: .suv2-kalendar-page
   ======================================== */

/* ========================================
   BASE FONT + DIVI OVERRIDES
   ======================================== */
.suv2-kalendar-page {
	font-family: var(--font-body);
}

.suv2-kalendar-page .container {
	width: 80%;
	max-width: 1080px;
	margin: 0 auto;
}

body:not(.et-tb) .suv2-kalendar-page#main-content .container,
body:not(.et-tb-has-header) .suv2-kalendar-page#main-content .container {
	padding-top: 16px;
}

.suv2-kalendar-page #left-area {
	width: 100% !important;
	padding: 0 !important;
	float: none !important;
}

.suv2-kalendar-page #sidebar {
	display: none !important;
}

.suv2-kalendar-page #content-area::before {
	display: none !important;
	background: none !important;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.suv2-kalendar-header {
	text-align: center;
	padding: 40px 0 24px;
}

.suv2-kalendar-title {
	font-family: var(--font-heading);
	font-size: 2.4rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
	line-height: 1.2;
}

.suv2-kalendar-subtitle {
	font-size: 1.05rem;
	color: #888;
	margin: 0;
	line-height: 1.5;
}

/* ========================================
   FILTER FORM
   ======================================== */
.suv2-kalendar-filter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 0 8px;
	flex-wrap: wrap;
}

.suv2-filter-label {
	font-family: var(--font-heading);
	font-size: 0.9rem;
	color: #666;
	font-weight: 600;
	margin-right: 4px;
}

.suv2-filter-option {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	padding: 8px 20px;
	border-radius: 50px;
	font-family: var(--font-heading);
	font-size: 0.88rem;
	font-weight: 600;
	color: #555;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	transition: all 0.2s ease;
	user-select: none;
}

.suv2-filter-option:hover {
	background: #fff;
	border-color: #f19e00;
	color: #f19e00;
}

.suv2-filter-option.active {
	background: #f19e00;
	border-color: #f19e00;
	color: #fff;
}

.suv2-filter-option input[type="radio"] {
	display: none;
}

.suv2-filter-btn {
	display: none;
}

/* ========================================
   RESULTS COUNT
   ======================================== */
.suv2-kalendar-count {
	text-align: center;
	font-size: 0.88rem;
	color: #999;
	padding: 8px 0 16px;
}

.suv2-kalendar-count strong {
	color: #555;
}

/* ========================================
   TIMELINE CONTAINER
   ======================================== */
.suv2-kal-timeline {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 0 24px;
	position: relative;
}

/* Vertical line running through entire timeline */
.suv2-kal-timeline::before {
	content: '';
	position: absolute;
	left: 67px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #eee;
}

/* ========================================
   MONTH HEADER
   ======================================== */
.suv2-kal-month {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 32px 0 12px;
	position: relative;
}

.suv2-kal-month:first-child {
	padding-top: 8px;
}

.suv2-kal-month-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #f19e00;
	flex-shrink: 0;
	margin-left: 61px; /* align to timeline line */
	position: relative;
	z-index: 2;
	box-shadow: 0 0 0 4px #fff;
}

.suv2-kal-month-label {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	color: #333;
	margin: 0;
	line-height: 1.3;
	flex-grow: 1;
	padding-right: 20px;
	position: relative;
}

/* Decorative line after month label */
.suv2-kal-month-label::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 40%;
	max-width: 200px;
	height: 1px;
	background: linear-gradient(to right, #e0e0e0, transparent);
}

/* ========================================
   TIMELINE ITEM
   ======================================== */
.suv2-kal-item {
	display: flex;
	align-items: flex-start;
	padding: 12px 0;
	position: relative;
	transition: background 0.2s ease;
	border-radius: 12px;
	margin: 2px 0;
}

.suv2-kal-item:hover {
	background: rgba(241, 158, 0, 0.03);
}

/* Today highlight */
.suv2-kal-item.is-today {
	background: rgba(241, 158, 0, 0.06);
}

/* Important highlight */
.suv2-kal-item.is-important {
	background: rgba(241, 158, 0, 0.04);
}

.suv2-kal-item.is-important::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: #f19e00;
	border-radius: 3px;
}

/* ========================================
   DATE COLUMN (left side)
   ======================================== */
.suv2-kal-item-date {
	width: 52px;
	flex-shrink: 0;
	text-align: center;
	padding-top: 2px;
}

.suv2-kal-day {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.6rem;
	font-weight: 700;
	color: #333;
	line-height: 1;
}

.suv2-kal-item.is-today .suv2-kal-day {
	color: #f19e00;
}

.suv2-kal-month-abbr {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.7rem;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

/* ========================================
   TIMELINE LINE + DOT (center column)
   ======================================== */
.suv2-kal-item-line {
	width: 30px;
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	padding-top: 8px;
	position: relative;
}

.suv2-kal-item-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	box-shadow: 0 0 0 3px #fff;
}

/* Dot colors by type */
.suv2-kal-item-dot.event {
	background: #f19e00;
}

.suv2-kal-item-dot.deadline {
	background: #dc3545;
}

.suv2-kal-item-dot.holiday {
	background: #28a745;
}

/* ========================================
   CONTENT COLUMN (right side)
   ======================================== */
.suv2-kal-item-content {
	flex: 1;
	min-width: 0;
	padding-left: 4px;
}

.suv2-kal-item-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.suv2-kal-item-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.suv2-kal-item-title:hover {
	color: #f19e00;
}

/* Type badge */
.suv2-kal-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 50px;
	font-family: var(--font-heading);
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
	flex-shrink: 0;
}

.suv2-kal-badge.event {
	background: rgba(241, 158, 0, 0.12);
	color: #c17d00;
}

.suv2-kal-badge.deadline {
	background: rgba(220, 53, 69, 0.1);
	color: #b02a37;
}

.suv2-kal-badge.holiday {
	background: rgba(40, 167, 69, 0.1);
	color: #1a7f37;
}

/* Date range meta */
.suv2-kal-item-meta {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	font-size: 0.82rem;
	color: #999;
}

.suv2-kal-item-meta svg {
	flex-shrink: 0;
	color: #bbb;
}

/* Excerpt */
.suv2-kal-item-excerpt {
	margin: 6px 0 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #777;
}

/* ========================================
   ARCHIVE LINK
   ======================================== */
.suv2-kal-archive-link {
	text-align: center;
	padding: 24px 0 40px;
	border-top: 1px solid #f0f0f0;
	margin-top: 8px;
}

.suv2-kal-archive-link a {
	color: #f19e00;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.suv2-kal-archive-link a:hover {
	color: #d48800;
	text-decoration: underline;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.suv2-kalendar-empty {
	text-align: center;
	padding: 80px 24px;
	color: #888;
}

.suv2-kalendar-empty p {
	margin: 0 0 12px;
	font-size: 1.05rem;
	line-height: 1.6;
}

.suv2-kalendar-empty a {
	color: #f19e00;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.suv2-kalendar-empty a:hover {
	color: #d48800;
	text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
	.suv2-kalendar-title {
		font-size: 2rem;
	}

	.suv2-kal-timeline {
		max-width: 90%;
	}
}

/* Small tablet / Large phone */
@media (max-width: 768px) {
	.suv2-kalendar-header {
		padding: 24px 0 16px;
	}

	.suv2-kalendar-title {
		font-size: 1.7rem;
	}

	.suv2-kalendar-subtitle {
		font-size: 0.95rem;
	}

	.suv2-kalendar-filter {
		gap: 6px;
	}

	.suv2-filter-option {
		padding: 6px 16px;
		font-size: 0.82rem;
	}

	.suv2-kal-timeline {
		max-width: 100%;
	}

	.suv2-kal-timeline::before {
		left: 57px;
	}

	.suv2-kal-month-dot {
		margin-left: 51px;
	}

	.suv2-kal-item-excerpt {
		display: none; /* Hide excerpts on smaller screens for cleaner look */
	}
}

/* Phone */
@media (max-width: 480px) {
	.suv2-kalendar-header {
		padding: 16px 0 12px;
	}

	.suv2-kalendar-title {
		font-size: 1.45rem;
	}

	.suv2-kalendar-subtitle {
		font-size: 0.88rem;
	}

	.suv2-filter-label {
		width: 100%;
		text-align: center;
		margin-bottom: 4px;
	}

	.suv2-kalendar-filter {
		gap: 4px;
	}

	.suv2-filter-option {
		padding: 6px 14px;
		font-size: 0.8rem;
	}

	/* Simplify timeline — remove vertical line, compact layout */
	.suv2-kal-timeline::before {
		display: none;
	}

	.suv2-kal-month-dot {
		display: none;
	}

	.suv2-kal-month {
		gap: 0;
		padding: 24px 0 8px;
	}

	.suv2-kal-month-label {
		font-size: 1.1rem;
		padding-left: 8px;
	}

	.suv2-kal-month-label::after {
		display: none;
	}

	.suv2-kal-item-line {
		display: none;
	}

	.suv2-kal-item-date {
		width: 44px;
	}

	.suv2-kal-day {
		font-size: 1.35rem;
	}

	.suv2-kal-item-content {
		padding-left: 12px;
		border-left: 2px solid #eee;
	}

	.suv2-kal-item.is-today .suv2-kal-item-content {
		border-left-color: #f19e00;
	}

	.suv2-kal-badge {
		font-size: 0.6rem;
		padding: 2px 8px;
	}

	.suv2-kal-item-meta {
		font-size: 0.78rem;
	}

	.suv2-kal-item-title {
		font-size: 0.92rem;
	}
}
