/* home.css - Стили ТОЛЬКО для главной страницы */

/* ===== 1. ОБЩИЕ ПРАВИЛА ===== */
.home-hook {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.home-title {
	font-size: var(--font-size-h1);
	font-weight: var(--font-weight-h1);
	line-height: var(--line-height-h1);
	color: var(--color-text);
}

.download-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
}

.app-store-button,
.google-play-button {
	display: inline-block;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
	text-decoration: none;

	/* === СИЛЬНАЯ ЗАЩИТА ОТ ДОЛГОГО ТАПА === */
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	touch-action: manipulation;
	/* ===================================== */

	/* Улучшаем рендеринг */
	backface-visibility: hidden;
	transform: translateZ(0);

	/* Сброс стилей */
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.app-store-button img,
.google-play-button img {
	height: 100%;
	width: auto;
	display: block;
	pointer-events: none;
	/* Защита для изображений */
	-webkit-user-drag: none;
	user-drag: none;
}

/* HOVER эффект ТОЛЬКО на устройствах с мышью */
@media (hover: hover) and (pointer: fine) {
	.app-store-button:hover,
	.google-play-button:hover {
		transform: translateY(-2px);
		opacity: 0.95;
	}
}

/* ACTIVE эффект для ВСЕХ устройств */
.app-store-button:active,
.google-play-button:active {
	opacity: 0.85;
}

/* Фокус для клавиатурной навигации */
.app-store-button:focus-visible,
.google-play-button:focus-visible {
	outline: 2px solid rgba(0, 123, 255, 0.5);
	outline-offset: 2px;
}

/* ===== 2. ПРАВИЛА ПОКАЗА КНОПОК ===== */
.download-buttons.ios-phone .google-play-button,
.download-buttons.android-phone .app-store-button {
	display: none;
}

/* ===== 3. МЕДИАЗАПРОСЫ ===== */

/* Телефоны */
@media (max-width: 767px) {
	.home-title {
		margin: 0 0 0.75rem;
	}
	.download-buttons > * {
		margin: 0.75rem;
	}
	.download-buttons {
		flex-direction: column;
	}
	.app-store-button,
	.google-play-button {
		height: 52px;
	}
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1023px) {
	.home-title {
		margin: 0 0 0.5rem;
	}
	.download-buttons > * {
		margin: 0.75rem;
	}
	.download-buttons {
		flex-direction: row;
	}
	.app-store-button,
	.google-play-button {
		height: 52px;
	}
}

/* Компьютеры */
@media (min-width: 1024px) {
	.home-title {
		margin: 0 0 0.5rem;
	}
	.download-buttons > * {
		margin: 0.75rem;
	}
	.download-buttons {
		flex-direction: row;
	}
	.app-store-button,
	.google-play-button {
		height: 52px;
	}
}

/* ===== 4. КНОПКА MORE ===== */
.more-button-container {
	text-align: center;
	padding-bottom: 16px;
	width: 100%;
}

.more-button {
	color: var(--color-text);
	text-decoration: none;
	opacity: 1;
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-body);
	-webkit-tap-highlight-color: transparent;
	padding: 0.5rem 1rem;
	display: inline-block;
}

.more-button:active {
	opacity: 0.8;
}

/* Фокус для клавиатурной навигации */
.more-button:focus-visible {
	outline: 2px solid rgba(0, 123, 255, 0.5);
	outline-offset: 2px;
}

/* Адаптивность для кнопки More */
@media (max-width: 767px) {
	.more-button {
		font-size: var(--font-size-body-mobile, var(--font-size-body));
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.more-button {
		font-size: var(--font-size-body-tablet, var(--font-size-body));
	}
}
