/* ==========================================================================
   Page Calendar Full - Полный календарь матчей
   Все стили специфичны только для этой страницы
   ========================================================================== */

/* Main Container */
.calendar-page {
	width: 100%;
	background-color: var(--color-white);
}

/* Раздел календаря */
.calendar-section {
	padding: 3rem 0;
	background-color: var(--color-white);
}

.calendar-section .container {
	padding: var(--container-padding-y) var(--container-padding-x);
	max-width: var(--container-max-width);
	margin: 0 auto;
}

.calendar-section .calendar-header {
	margin-bottom: 3.125rem;
	text-align: left;
}

.calendar-section .calendar-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-dark-gray);
	margin: 0 0 1.25rem 0;
	text-transform: none;
	padding-bottom: 0.9375rem;
	border-bottom: 0.1875rem solid var(--red-700);
	display: inline-block;
	line-height: 1.2;
}

/* Фильтры календаря */
.calendar-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.875rem;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.filters-left {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.filter-group {
	position: relative;
}

.filter-select {
	min-width: 9.375rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--gray-200);
	border-radius: 0.25rem;
	background-color: var(--color-white);
	font-size: 0.875rem;
	color: var(--gray-900);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.625rem center;
	background-size: 0.75rem;
	transition: border-color 0.2s;
	font-family: inherit;
	box-sizing: border-box;
}

.filter-select:hover {
	border-color: var(--red-700);
}

.filter-select:focus {
	outline: none;
	border-color: var(--red-700);
	box-shadow: 0 0 0 0.125rem rgba(196, 30, 58, 0.1);
}

.filters-right {
	display: flex;
	align-items: center;
}

.month-navigation {
	display: flex;
	align-items: center;
	gap: 0.9375rem;
	padding: 0.625rem 0;
}

.month-navigation a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
}

.month-navigation a[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.month-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	stroke: var(--gray-600) !important;
	color: var(--gray-600) !important;
	transition: all 0.2s ease;
}

.month-navigation a:hover .month-nav-icon {
	stroke: var(--red-700) !important;
	color: var(--red-700) !important;
}

.month-name {
	min-width: 7.5rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--gray-600);
	font-weight: 500;
}

/* Calendar Container */
.calendar-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Ссылка матча - убрать стандартные стили */
.calendar-match-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
}

/* ====== КАРТА МАТЧА - ГОРИЗОНТАЛЬНЫЙ МАКЕТ ====== */

/* Карта матча календаря - главный контейнер */
.calendar-match-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border: 1px solid var(--gray-200);
	border-radius: 0.625rem;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
	margin-bottom: 1rem;
}

.calendar-match-card:last-child {
	margin-bottom: 0;
}

.calendar-match-card:hover {
	box-shadow: 0 0.5rem 0.75rem var(--shadow-hover);
}

/* Заголовок матча - турнир + тур */
.calendar-match-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1.5rem;
	background-color: var(--gray-50);
	border-bottom: 1px solid var(--gray-200);
	height: 3.0625rem;
}

.calendar-tournament-name {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-700);
	line-height: 1.5rem;
}

.calendar-tour-info {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gray-600);
	line-height: 1.25rem;
}

/* Содержимое матча - горизонтальный макет */
.calendar-match-content {
	display: flex;
	align-items: stretch;
	min-height: 112px;
	padding: 1.5rem;
	gap: 1.5rem;
}

/* Левая панель - дата, время, стадион */
.calendar-left-panel {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 12.5rem;
	min-width: 12.5rem;
	flex-shrink: 0;
}

.calendar-info-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 1.25rem;
}

.calendar-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	stroke: var(--gray-600);
	fill: none;
	color: var(--gray-600);
	background: none !important;
	background-color: transparent !important;
}

.calendar-info-row:nth-child(1) .calendar-icon {
	stroke: var(--gray-600);
	color: var(--gray-600);
}

.calendar-info-row:nth-child(2) .calendar-icon {
	stroke: var(--red-700);
	color: var(--red-700);
}

.calendar-date {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--gray-600);
	line-height: 1.25rem;
}

.calendar-time {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--red-700);
	line-height: 1.25rem;
}

.calendar-stadium {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--gray-500);
	line-height: 1rem;
	word-break: break-word;
	max-width: 9.375rem;
}

/* Панель команд - две команды с аватарами */
.calendar-teams-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	flex: 1;
	min-width: 18.75rem;
	gap: 1rem;
}

.calendar-team-block {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 3rem;
}

.calendar-team-avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0.25rem 0.375rem -1px var(--color-dark-gray)1a, 0 0.125rem 0.25rem -2px var(--color-dark-gray)1a;
	overflow: hidden;
}

.calendar-team-avatar-content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.calendar-team-avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.25rem;
}

.calendar-team-initials {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.25rem;
}

/* First team (home) - Transparent background */
.calendar-team-block:first-of-type .calendar-team-avatar {
	background: transparent;
}

/* Вторая команда (гостевая) - прозрачный фон */
.calendar-team-block:last-of-type .calendar-team-avatar {
	background: transparent;
}

.calendar-team-name {
	font-family: 'Inter', sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--gray-900);
	line-height: 1.75rem;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Название домашней команды - красный цвет */
.calendar-team-block:first-of-type .calendar-team-name {
	color: var(--red-700);
}

/* Правая панель - счёт + статус */
.calendar-right-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 12.5rem;
	min-width: 12.5rem;
	flex-shrink: 0;
	gap: 0.75rem;
}

.calendar-score-block {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 3rem;
}

.calendar-score {
	font-family: 'Inter', sans-serif;
	font-size: 3rem;
	font-weight: 700;
	color: var(--red-700);
	line-height: 3rem;
}

.calendar-score-colon {
	font-family: 'Inter', sans-serif;
	font-size: 1.875rem;
	font-weight: 700;
	color: #99a1af;
	line-height: 2.25rem;
}

.calendar-score-dash {
	font-family: 'Inter', sans-serif;
	font-size: 3rem;
	font-weight: 400;
	color: #99a1af;
	line-height: 3rem;
}

.calendar-status-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.calendar-status {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--gray-500);
	line-height: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.calendar-link-icon {
	width: 1rem !important;
	height: 1rem !important;
	stroke: var(--red-700) !important;
	color: var(--red-700) !important;
	display: inline;
	vertical-align: middle;
	margin-left: 0.25rem;
	font-size: 0.75rem;
}

/* ====== АДАПТИВНЫЙ ДИЗАЙН ====== */

/* Планшет (1024px и ниже) */
@media (max-width: 1024px) {
	h1, h2, h3, h4, h5, h6 {
		text-align: left;
	}

	.calendar-section .calendar-title {
		font-size: 1.75rem;
	}

	.calendar-match-content {
		gap: 1rem;
		padding: 1rem;
	}

	.calendar-teams-panel {
		min-width: 15.625rem;
	}

	.calendar-team-name {
		font-size: 1rem;
	}

	.calendar-right-panel {
		width: 11.25rem;
		min-width: 11.25rem;
	}

	.calendar-score {
		font-size: 2.5rem;
	}
}

/* Планшет (768px и ниже) */
@media (max-width: 768px) {
	h1, h2, h3, h4, h5, h6 {
		text-align: left;
	}

	.calendar-section {
		padding: 2.5rem 1.25rem;
	}

	.calendar-section .calendar-title {
		font-size: 1.5rem;
		margin-bottom: 0.9375rem;
	}

	.calendar-match-header {
		padding: 0.625rem 1rem;
		height: auto;
		min-height: 2.8125rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.375rem;
	}

	.calendar-tournament-name {
		font-size: 0.875rem;
	}

	.calendar-tour-info {
		font-size: 0.75rem;
	}

	.calendar-match-content {
		flex-direction: column;
		gap: 0.75rem;
		padding: 0.75rem;
		min-height: auto;
	}

	.calendar-left-panel {
		width: 100%;
		min-width: auto;
	}

	.calendar-teams-panel {
		width: 100%;
		min-width: auto;
		gap: 0.75rem;
	}

	.calendar-team-block {
		height: auto;
	}

	.calendar-team-name {
		font-size: 0.875rem;
	}

	.calendar-right-panel {
		width: 100%;
		min-width: auto;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.calendar-score-block {
		gap: 0.375rem;
	}

	.calendar-score {
		font-size: 2rem;
	}

	.calendar-score-colon {
		font-size: 1.5rem;
	}

	.stadium {
		max-width: 100%;
	}
}

/* Мобильный (480px и ниже) */
@media (max-width: 30rem) {
	h1, h2, h3, h4, h5, h6 {
		text-align: left;
	}

	.calendar-section {
		padding: 1.875rem 0.9375rem;
	}

	.calendar-section .calendar-title {
		font-size: 1.25rem;
		margin-bottom: 0.625rem;
		padding-bottom: 0.625rem;
	}

	.calendar-match-header {
		padding: 0.5rem 0.75rem;
	}

	.calendar-tournament-name {
		font-size: 0.75rem;
	}

	.calendar-tour-info {
		font-size: 0.6875rem;
	}

	.calendar-match-content {
		flex-direction: column;
		gap: 0.625rem;
		padding: 0.625rem;
	}

	.calendar-left-panel {
		width: 100%;
		gap: 0.375rem;
	}

	.calendar-info-row {
		height: auto;
		font-size: 0.6875rem;
	}

	.calendar-date,
	.calendar-time {
		font-size: 0.75rem;
	}

	.calendar-stadium {
		font-size: 0.6875rem;
		max-width: 7.5rem;
	}

	.calendar-teams-panel {
		width: 100%;
		gap: 0.625rem;
	}

	.calendar-team-avatar {
		width: 2.5rem;
		height: 2.5rem;
		flex-shrink: 0;
	}

	.calendar-team-name {
		font-size: 0.8125rem;
	}

	.calendar-right-panel {
		width: 100%;
		gap: 0.5rem;
	}

	.calendar-score-block {
		gap: 0.25rem;
	}

	.calendar-score {
		font-size: 1.75rem;
	}

	.calendar-score-colon {
		font-size: 1.25rem;
	}

	.calendar-status {
		font-size: 0.6875rem;
	}

	.calendar-link-text {
		font-size: 0.6875rem;
	}
}





