/* Pepo Přednášky — vizuál navazuje na stávající paletu webu (Blocksy palette) */
.pepo-prednasky {
	--pepo-card-bg: #F8FAFB;
	--pepo-text: #2A1E1A;
	--pepo-btn: #8C7361;
	--pepo-btn-hover: #77604F;
	--pepo-muted: #6b6058;
}

.pepo-prednasky-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pepo-prednasky-list[hidden] {
	display: none;
}

.pepo-prednasky-list--past {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(42, 30, 26, 0.12);
}

.pepo-prednasky-empty {
	color: var(--pepo-muted);
	font-size: 16px;
}

.pepo-card {
	background: var(--pepo-card-bg);
	border-radius: 20px;
	padding: 28px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.pepo-card--past {
	opacity: 0.65;
}

.pepo-card__info {
	min-width: 0;
}

.pepo-card__title {
	margin: 0 0 5px;
	font-size: 24px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--pepo-text);
}

.pepo-card__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--pepo-muted);
}

.pepo-card__poster-link {
	appearance: none;
	background: none;
	border: none;
	padding: 0;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pepo-btn);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.pepo-card__poster-link:hover {
	color: var(--pepo-btn-hover);
}

.pepo-card__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--pepo-btn);
	color: #fff !important;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	padding: 14px 25px;
	border-radius: 999px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s ease;
	flex-shrink: 0;
}

.pepo-card__button:hover {
	background: var(--pepo-btn-hover);
}

.pepo-card__button::after {
	content: "→";
}

.pepo-card__button--onsite {
	background: transparent;
	color: var(--pepo-btn) !important;
	border: 2px solid var(--pepo-btn);
	padding: 12px 23px;
	appearance: none;
	font-family: inherit;
}

.pepo-card__button--onsite:hover {
	background: var(--pepo-btn);
	color: #fff !important;
}

.pepo-card__button--onsite::after {
	content: none;
}

.pepo-card__onsite-note {
	font-size: 15px;
	color: var(--pepo-muted);
	font-style: italic;
	flex-shrink: 0;
}

/* Přepínač proběhlých besed */
.pepo-past-toggle {
	appearance: none;
	background: none;
	border: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin-bottom: 20px;
	font-size: 15px;
	font-weight: 600;
	color: #8C7361;
	cursor: pointer;
}

.pepo-past-toggle__icon {
	display: inline-block;
	transition: transform 0.2s ease;
}

.pepo-past-toggle[aria-expanded="true"] .pepo-past-toggle__icon {
	transform: rotate(180deg);
}

.pepo-past-toggle[aria-expanded="true"] .pepo-past-toggle__text::after {
	content: " (skrýt)";
	font-weight: 400;
	opacity: 0.7;
}

/* Modály — lightbox plakátu i automatický popup nejbližší besedy */
.pepo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.pepo-modal[hidden] {
	display: none;
}

.pepo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 14, 12, 0.72);
}

.pepo-modal__box {
	position: relative;
	max-width: min(90vw, 560px);
	max-height: 85vh;
	z-index: 1;
}

.pepo-modal__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pepo-modal__link {
	display: block;
	cursor: pointer;
}

.pepo-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #2A1E1A;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
	.pepo-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.pepo-card__button {
		align-self: flex-start;
	}

	.pepo-card__title {
		font-size: 20px;
	}
}
