/*
Theme Name: Эра Билетов
Description: Тема сайта Эра Билетов. Вёрстка восстановлена по сохранённой копии главной страницы. Работает вместе с плагином «Эра Билетов — мероприятия».
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: era-biletov
*/

/* Основные стили лежат в css/style.css (перенесены с прежнего сайта).
   Ниже только то, чего в прежней вёрстке не было: элементы WordPress. */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.logotype-region a {
	display: inline-block;
	line-height: 0;
}

.telephone-region a.number,
.side-menu .call {
	color: inherit;
	text-decoration: none;
}

.events-empty {
	width: 100%;
	padding: 40px 15px;
	text-align: center;
	font-family: Roboto, sans-serif;
	font-size: 16px;
}

a.detail,
a.detail:hover {
	display: block;
	color: #000;
	text-decoration: none;
	box-sizing: border-box;
}

.btn-buy,
.btn-buy:hover {
	text-decoration: none;
	color: #000;
}

.event-note {
	font-family: Roboto, sans-serif;
	font-size: 14px;
	margin-top: 10px;
}

.event-past-note {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 13px 20px;
	background: #E5E5E5;
	font-family: Roboto, sans-serif;
	font-size: 16px;
}

.event-description .content p {
	margin: 0 0 12px;
}

.content .scheme-image {
	max-width: 100%;
	height: auto;
}

.search-region select.input,
.search-region input.input[type="date"] {
	padding: 0 8px;
	font-family: Roboto, sans-serif;
}

.search-region button.input {
	cursor: pointer;
	padding: 0 20px;
}

.era-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 25px 0 0;
	font-family: Roboto, sans-serif;
}

.era-pagination .page-numbers {
	padding: 6px 12px;
	background: #F6F6F6;
	color: #000;
	text-decoration: none;
	border-radius: 3px;
}

.era-pagination .page-numbers.current {
	background: #BD1E1E;
	color: #fff;
}

.newsDetailBlock-text p {
	margin: 0 0 14px;
}

.newsDetailBlock-text img {
	max-width: 100%;
	height: auto;
}

.newsDetail + .events-region,
.newsDetail .events-region {
	margin-top: 40px;
}

/* Индикатор загрузки под списком мероприятий */
.loading-progress {
	display: none;
	width: 32px;
	height: 32px;
	margin: 0 auto 30px;
	border: 3px solid #E5E5E5;
	border-top-color: #BD1E1E;
	border-radius: 50%;
	animation: era-spin 0.8s linear infinite;
}

@keyframes era-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.loading-progress {
		animation-duration: 3s;
	}
}

/* Кнопка «Найти» на странице поиска (замена .search-button для текстовой кнопки) */
.search-region .search-submit {
	color: #ffffff;
	background-color: #B80C09;
	border: none;
	cursor: pointer;
	transition: 0.2s;
}

.search-region .search-submit:hover {
	background-color: #8f0a07;
}

@media (max-width: 576px) {
	.search-region .search-submit {
		width: 100%;
		background-color: #B80C09;
	}
}

/* Уведомление о cookie */
.cookie-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background: #040F16;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

.cookie-notice-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cookie-notice-text {
	margin: 0;
	color: #ffffff;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.cookie-notice-text a {
	color: #ffffff;
	text-decoration: underline;
}

.cookie-notice-accept {
	flex-shrink: 0;
	padding: 10px 24px;
	background: #BD1E1E;
	color: #ffffff;
	border: none;
	border-radius: 3px;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: 0.2s;
}

.cookie-notice-accept:hover {
	background: #8f0a07;
}

@media (max-width: 576px) {
	.cookie-notice-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.cookie-notice-accept {
		width: 100%;
	}
}

/* Ссылка «Политика конфиденциальности» в строке копирайта */
.copyright-link {
	color: #ffffff;
	text-decoration: underline;
}

.copyright-link:hover {
	text-decoration: none;
}

/* Хлебные крошки на страницах мероприятий, списков и поиска */
.crumbs-row .breadcrumbs,
.news .breadcrumbs {
	margin-top: 20px;
}

/* Линия под крошками только у ссылок: название текущей страницы не подчёркиваем */
.breadcrumbs {
	border-bottom: 0;
}

.breadcrumbs .breadcrumbs-link {
	border-bottom: 1px solid #ccc;
}

/* На странице мероприятия крошки стоят над серым блоком, по его ширине */
.event-crumbs {
	max-width: 1000px;
	margin: 0 auto;
	box-sizing: border-box;
}

.event-crumbs .breadcrumbs {
	margin: 0 0 12px;
}

/* В прежней вёрстке на телефонах крошки были скрыты (display: none). Показываем их компактно. */
@media (max-width: 576px) {
	.breadcrumbs {
		display: block;
		margin-bottom: 12px;
		font-size: 13px;
		line-height: 18px;
		overflow-wrap: anywhere;
	}

	.breadcrumbs .breadcrumbs-link,
	.breadcrumbs .breadcrumbs-elem {
		line-height: 18px;
	}

	.crumbs-row {
		padding-left: 10px;
		padding-right: 10px;
	}

	.event-crumbs .breadcrumbs {
		margin-bottom: 10px;
	}

	/* На телефоне без названия текущей страницы */
	.breadcrumbs .breadcrumbs-current,
	.breadcrumbs .breadcrumbs-sep-last {
		display: none;
	}

	/* Если остаётся одна «Главная», крошки не нужны */
	.breadcrumbs.breadcrumbs-short {
		display: none;
	}
}

/* На главной перед мероприятиями нет хлебных крошек — добавляем свой отступ сверху */
.front-events {
	margin-top: 30px;
}

@media (max-width: 576px) {
	.front-events {
		margin-top: 0;
	}
}
