/*
Theme Name: VSTION PRO
Theme URI: https://vston.ru/
Author: VSTON
Author URI: https://vston.ru/
Description: Быстрая, лёгкая и современная WordPress-тема для музыкальных сайтов, VST-плагинов, Kontakt библиотек и Sample Packs.
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vstion-pro
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
==================================================
VSTION PRO
Основные переменные темы
==================================================
*/

:root {

	/* Цвета */
	--vstion-bg: #ffffff;
	--vstion-surface: #f7f7f9;
	--vstion-surface-hover: #f0f0f3;

	--vstion-text: #17171a;
	--vstion-text-light: #66666f;
	--vstion-text-muted: #8b8b94;

	--vstion-border: #e5e5e9;

	--vstion-accent: #6c4df6;
	--vstion-accent-hover: #5839df;

	--vstion-white: #ffffff;
	--vstion-black: #000000;

	/* Шапка */
	--vstion-header-height: 72px;

	/* Контейнер */
	--vstion-container: 1240px;

	/* Радиусы */
	--vstion-radius-small: 8px;
	--vstion-radius: 12px;
	--vstion-radius-large: 16px;

	/* Тени */
	--vstion-shadow-small: 0 2px 8px rgba(0, 0, 0, 0.04);
	--vstion-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

	/* Типографика */
	--vstion-font-size: 16px;
	--vstion-line-height: 1.6;

	/* Анимация */
	--vstion-transition: 0.2s ease;

	/* Слои */
	--vstion-z-header: 100;
	--vstion-z-menu: 200;
}


/*
==================================================
Базовая нормализация
==================================================
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	font-size: 16px;
}

body {
	margin: 0;
	padding: 0;

	background: var(--vstion-bg);
	color: var(--vstion-text);

	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;

	font-size: var(--vstion-font-size);
	line-height: var(--vstion-line-height);

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

ul,
ol {
	margin-top: 0;
}

p:first-child {
	margin-top: 0;
}

p:last-child {
	margin-bottom: 0;
}


/*
==================================================
Контейнер
==================================================
*/

.container {
	width: min(
		calc(100% - 40px),
		var(--vstion-container)
	);

	margin-left: auto;
	margin-right: auto;
}


/*
==================================================
Основная область
==================================================
*/

.site-main {
	min-height: 60vh;
}


/*
==================================================
Доступность
==================================================
*/

.screen-reader-text {
	position: absolute !important;

	width: 1px;
	height: 1px;

	padding: 0;
	margin: -1px;

	overflow: hidden;
	clip: rect(0, 0, 0, 0);

	white-space: nowrap;

	border: 0;
}


/*
==================================================
Фокус клавиатуры
==================================================
*/

:focus-visible {
	outline: 2px solid var(--vstion-accent);
	outline-offset: 3px;
}


/*
==================================================
WordPress
==================================================
*/

.alignleft {
	float: left;
	margin: 0 24px 24px 0;
}

.alignright {
	float: right;
	margin: 0 0 24px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	margin-top: 8px;
	color: var(--vstion-text-muted);
	font-size: 14px;
}


/*
==================================================
Responsive
==================================================
*/

@media (max-width: 768px) {

	.container {
		width: min(
			calc(100% - 24px),
			var(--vstion-container)
		);
	}

	:root {
		--vstion-header-height: 64px;
	}

}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

}

/* =========================================================
   КНОПКА НАВЕРХ
   ========================================================= */

.vstion-to-top {
	position: fixed;

	right: 24px;
	bottom: 24px;

	z-index: 9999;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;

	padding: 0;

	border: 1px solid var(--vstion-border);
	border-radius: 50%;

	background: var(--vstion-white);
	color: var(--vstion-text);

	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;

	cursor: pointer;

	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);

	box-shadow: var(--vstion-shadow);

	transition:
		opacity var(--vstion-transition),
		visibility var(--vstion-transition),
		transform var(--vstion-transition),
		background var(--vstion-transition),
		border-color var(--vstion-transition),
		color var(--vstion-transition);
}


/* =========================================================
   ПОКАЗ КНОПКИ
   ========================================================= */

.vstion-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}


/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

.vstion-to-top:hover,
.vstion-to-top:focus-visible {
	border-color: var(--vstion-accent);

	background: var(--vstion-accent);

	color: #fff;

	outline: none;
}


/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 600px) {

	.vstion-to-top {
		right: 16px;
		bottom: 16px;

		width: 44px;
		height: 44px;

		font-size: 20px;
	}

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.vstion-to-top {
		transition: none;
	}

}

/* =========================================================
   VSTION PRO — ЧИСТАЯ ВИЗУАЛЬНАЯ СХЕМА
   Градиент только на фоне. Блоки — белые.
   Виджеты: стандартное содержимое + только рамка и декор.
   ========================================================= */
:root {
	--vstion-bg: #f7fafc;
	--vstion-surface: #f7fbfe;
	--vstion-surface-hover: #eef9ff;
	--vstion-text: #17171a;
	--vstion-text-light: #66666f;
	--vstion-text-muted: #8b8b94;
	--vstion-border: #d5e6ee;
	--vstion-white: #ffffff;
	--vstion-gold: #d5a12a;
	--vstion-gold-light: #f6e39b;
	--vstion-blue: #8fd6ed;
}

/* Мягкий светлый фон сайта — без градиента */
html,
body {
	background: #f7fafc !important;
	background-image: none !important;
	background-attachment: initial !important;
}

/* =========================================================
   ЗАПИСИ АРХИВОВ — белый блок + музыкальная рамка
   ========================================================= */
.post-card {
	position: relative !important;
	isolation: isolate !important;
	padding: 5px !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: linear-gradient(135deg, #d09a28 0%, #f6df8b 14%, #a9dff0 32%, #ffffff 50%, #a9dff0 68%, #f6df8b 86%, #d09a28 100%) !important;
	box-shadow: 0 8px 25px rgba(55,125,155,.12), 0 0 0 1px rgba(255,255,255,.8) inset !important;
}

.post-card::before {
	content: "" !important;
	position: absolute !important;
	inset: 2px !important;
	border: 1px solid rgba(255,255,255,.95) !important;
	border-radius: 13px !important;
	box-shadow: inset 0 0 14px rgba(114,205,231,.10) !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

.post-card::after {
	content: "♪  ♫" !important;
	position: absolute !important;
	top: 7px !important;
	right: 13px !important;
	z-index: 4 !important;
	padding: 2px 6px !important;
	border-radius: 7px !important;
	background: #fff !important;
	color: #c79525 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 2px !important;
	box-shadow: 0 1px 5px rgba(210,164,43,.12) !important;
	pointer-events: none !important;
}

.post-card-content {
	position: relative !important;
	z-index: 1 !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 15px !important;
}

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(55,125,155,.16), 0 0 18px rgba(222,184,70,.10) !important;
}

/* Категории — мягкий голубой */
.post-card .post-category a,
.post-card .post-category a:visited,
.single-post-category,
.single-post-category:visited {
	background: #c9edff !important;
	color: #168dcc !important;
	border-color: #79c8ee !important;
}

.post-card .post-category a:hover,
.post-card .post-category a:focus-visible,
.single-post-category:hover,
.single-post-category:focus-visible {
	background: #49aee8 !important;
	color: #ffffff !important;
	border-color: #49aee8 !important;
	box-shadow: 0 3px 10px rgba(73,174,232,.22) !important;
	transform: translateY(-1px);
}

/* Метки — светло-синие */
.post-card-tag,
.single-entry .tags-links a {
	background: linear-gradient(135deg, #effaff 0%, #cfeefa 50%, #e8f8ff 100%) !important;
	color: #347da3 !important;
	border-color: #add9eb !important;
}

/* =========================================================
   ОТДЕЛЬНАЯ ЗАПИСЬ — без внешней декоративной рамки
   ========================================================= */
.single-entry {
	position: relative;
	isolation: auto;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.single-entry::before,
.single-entry::after {
	content: none !important;
	display: none !important;
}

.single-entry > * {
	position: relative;
	z-index: auto;
}

.single-entry .entry-header,
.single-entry .entry-content,
.single-entry .entry-footer {
	background: transparent;
}

/* =========================================================
   SIDEBAR — НЕ ТРОГАЕМ СОДЕРЖИМОЕ.
   Только белый фон, рамка и музыкальный декор.
   ========================================================= */
.sidebar-area .widget {
	position: relative !important;
	isolation: isolate !important;
	background: #fff !important;
	border: 2px solid transparent !important;
	border-radius: 15px !important;
	box-shadow: 0 5px 18px rgba(61,126,158,.08) !important;
}

.sidebar-area .widget::before {
	content: "♪" !important;
	position: absolute !important;
	top: 7px !important;
	right: 11px !important;
	z-index: 3 !important;
	padding: 0 5px !important;
	background: #fff !important;
	color: #c79525 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	pointer-events: none !important;
}

.sidebar-area .widget::after {
	content: "♫" !important;
	position: absolute !important;
	left: 10px !important;
	bottom: 7px !important;
	z-index: 3 !important;
	padding: 0 5px !important;
	background: #fff !important;
	color: #8ed5eb !important;
	font-size: 13px !important;
	line-height: 1 !important;
	pointer-events: none !important;
}

/* Декоративный внешний контур, не меняющий содержимое */
.sidebar-area .widget {
	background:
		linear-gradient(#fff,#fff) padding-box,
		linear-gradient(135deg,#9edff0,#e7c45b,#b9e6f3,#d4b44b) border-box !important;
}

/* Архивные/служебные блоки — белые */
.archive-header,
.no-results,
.not-found {
	background: #fff !important;
	border: 2px solid transparent !important;
	background:
		linear-gradient(#fff,#fff) padding-box,
		linear-gradient(135deg,#9edff0,#e7c45b,#b9e6f3) border-box !important;
}

/* ================================
   PREMIUM — КУПИТЬ ПРЕМИУМ
   ================================ */

.main-navigation .menu-item-premium > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	padding: 10px 18px !important;
	border-radius: 8px !important;

	background: linear-gradient(
		135deg,
		#f7d76a 0%,
		#d9a441 45%,
		#f3ca55 100%
	) !important;

	border: 1px solid #c79525 !important;

	color: #172536 !important;
	font-weight: 700 !important;
	text-decoration: none !important;

	box-shadow:
		0 3px 10px rgba(190, 145, 40, 0.20),
		inset 0 1px 0 rgba(255,255,255,0.45) !important;

	transition:
		background 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease !important;
}

/* Наведение — тот самый сине-голубой цвет */
.main-navigation .menu-item-premium > a:hover,
.main-navigation .menu-item-premium > a:focus-visible {
	background: linear-gradient(
		135deg,
		#75c9ed 0%,
		#49aee8 50%,
		#5bbce8 100%
	) !important;

	color: #fff !important;
	border-color: #49aee8 !important;

	box-shadow:
		0 5px 14px rgba(73, 174, 232, 0.30),
		inset 0 1px 0 rgba(255,255,255,0.35) !important;

	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.post-card { border-radius: 15px !important; padding: 2px !important; }
	.post-card::before { inset: 5px !important; border-radius: 11px !important; }
}


/* ========================================
   МЯГКАЯ СИНЯЯ ПОДСВЕТКА ССЫЛОК
   ======================================== */

a {
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

a:hover {
	color: #49aee8;
}

/* Не меняем Premium — у него собственный hover */
.main-navigation .menu-item-premium > a:hover,
.main-navigation .menu-item-premium > a:focus-visible {
	color: #fff !important;
}

/* ========================================
   ЦВЕТ ССЫЛОК
   ======================================== */

a {
	color: #49aee8;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: #2f9bd3;
}

/* Premium — свои цвета */
.main-navigation .menu-item-premium > a {
	color: #172536 !important;
}

.main-navigation .menu-item-premium > a:hover,
.main-navigation .menu-item-premium > a:focus-visible {
	color: #fff !important;
}


.site-footer {
	background: #e7eaee !important;
	border-top: 1px solid #d2d7dd !important;
	color: #4f5964 !important;
}

.site-footer a {
	color: #4f5964 !important;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: #168dcc !important;
}

.site-footer .footer-widget,
.site-footer .widget {
	color: #4f5964 !important;
}

.site-footer .widget-title,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
	color: #343b43 !important;
}


/* Сам Sidebar не двигаем — меняем только внутренние отступы виджетов. */
.sidebar-area {
	position: relative !important;
	z-index: 100 !important;
	overflow: visible !important;
}

/* Каждый виджет получает 5% внутреннего отступа со всех сторон. */
.sidebar-area .widget {
	position: relative !important;
	isolation: auto !important;
	overflow: visible !important;
	box-sizing: border-box !important;
	padding: 5% !important;
	margin-bottom: 0 !important;

	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(
			135deg,
			#9edff0,
			#e7c45b,
			#b9e6f3,
			#d4b44b
		) border-box !important;

	border: 2px solid transparent !important;
	border-radius: 15px !important;
	box-shadow: 0 5px 18px rgba(61,126,158,.08) !important;
}

/* Ровно 15px между соседними виджетами. */
.sidebar-area .widget + .widget {
	margin-top: 15px !important;
}

/* Последнему виджету дополнительный отступ снизу не нужен. */
.sidebar-area .widget:last-child {
	margin-bottom: 0 !important;
}

/* Содержимое всегда выше декоративных элементов. */
.sidebar-area .widget > * {
	position: relative;
	z-index: 10 !important;
}

.sidebar-area .widget a,
.sidebar-area .widget button,
.sidebar-area .widget input,
.sidebar-area .widget textarea,
.sidebar-area .widget select,
.sidebar-area .widget form,
.sidebar-area .widget label,
.sidebar-area .widget ul,
.sidebar-area .widget ol,
.sidebar-area .widget li,
.sidebar-area .widget p,
.sidebar-area .widget h1,
.sidebar-area .widget h2,
.sidebar-area .widget h3,
.sidebar-area .widget h4,
.sidebar-area .widget h5,
.sidebar-area .widget h6,
.sidebar-area .widget img {
	position: relative !important;
	z-index: 10 !important;
}

/* Верхняя музыкальная нота — только декор, не перекрывает содержимое. */
.sidebar-area .widget::before {
	content: "♪" !important;
	position: absolute !important;
	top: 6px !important;
	right: 8px !important;
	z-index: 1 !important;
	padding: 0 4px !important;
	background: #fff !important;
	color: #c79525 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	pointer-events: none !important;
}

/* Нижняя музыкальная нота — только декор, не перекрывает содержимое. */
.sidebar-area .widget::after {
	content: "♫" !important;
	position: absolute !important;
	left: 7px !important;
	bottom: 6px !important;
	z-index: 1 !important;
	padding: 0 4px !important;
	background: #fff !important;
	color: #8ed5eb !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	pointer-events: none !important;
}

/* Выпадающие элементы и интерактивные блоки должны быть поверх всего. */
.sidebar-area .widget select,
.sidebar-area .widget [role="listbox"],
.sidebar-area .widget [role="option"],
.sidebar-area .widget .dropdown-menu,
.sidebar-area .widget .select2-container,
.sidebar-area .widget .select2-dropdown,
.sidebar-area .widget .choices,
.sidebar-area .widget .choices__list--dropdown {
	position: relative !important;
	z-index: 9999 !important;
}

.sidebar-area .widget form {
	position: relative !important;
	z-index: 20 !important;
}

/* При наведении виджет не перекрывается соседними декоративными слоями. */
.sidebar-area .widget:hover,
.sidebar-area .widget:focus-within {
	z-index: 1000 !important;
}

/* На мобильных сохраняем те же 5% и 15px. */
@media (max-width: 768px) {
	.sidebar-area .widget {
		padding: 5% !important;
		margin-bottom: 0 !important;
	}

	.sidebar-area .widget + .widget {
		margin-top: 15px !important;
	}
}

