/*
 * Buttons, cards, code, quotes, forms, tags, pagination.
 */

:is(body.vt-theme, .editor-styles-wrapper) :is(.button, .ct-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]) {
	--theme-button-min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.15rem;
	border-radius: var(--vt-radius-sm);
	font-family: var(--vt-font-body);
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	color: #ffffff;
	background-color: var(--vt-purple);
	background-image: var(--vt-gradient-button);
	border: 1px solid transparent;
	box-shadow: 0 8px 22px rgba(91, 33, 182, 0.2);
}

:is(body.vt-theme, .editor-styles-wrapper) :is(.ct-button-ghost, .wp-block-button.is-style-outline > .wp-block-button__link) {
	color: var(--vt-purple-rich);
	background-color: transparent;
	background-image: none;
	border: 1.5px solid var(--vt-purple);
	box-shadow: none;
}

:is(body.vt-theme, .editor-styles-wrapper) :is(.button, .ct-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):is(:hover, :focus-visible) {
	color: #ffffff;
	background-color: var(--vt-purple-rich);
}

:is(body.vt-theme, .editor-styles-wrapper) :is(.ct-button-ghost, .wp-block-button.is-style-outline > .wp-block-button__link):is(:hover, :focus-visible) {
	color: #ffffff;
	background-color: var(--vt-purple-rich);
	border-color: var(--vt-purple-rich);
}

:is(body.vt-theme, .editor-styles-wrapper) :is(.button, .ct-button, .wp-block-button__link, [type="submit"]):is(:disabled, .disabled) {
	opacity: 1;
	color: var(--vt-disabled-ink);
	background: var(--vt-disabled-bg);
	background-image: none;
	border-color: var(--vt-disabled-bg);
	box-shadow: none;
	cursor: not-allowed;
}

body.vt-theme .entry-card {
	background: var(--vt-surface);
	border: 1px solid var(--vt-border);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-shadow-soft);
	padding: clamp(1rem, 2vw, 1.4rem);
}

body.vt-theme .entry-card .entry-title {
	font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.8rem);
	margin-block: 0.35rem 0.55rem;
}

body.vt-theme .entry-card .entry-title a {
	color: var(--vt-heading);
	text-decoration: none;
}

body.vt-theme .entry-card .entry-title a:is(:hover, :focus-visible) {
	color: var(--vt-purple-rich);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

body.vt-theme .entry-meta,
body.vt-theme .entry-meta a {
	color: var(--vt-ink-soft);
	font-size: 0.84rem;
	font-weight: 600;
}

body.vt-theme :is(.entry-tags a, a[rel="tag"]) {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0.2rem 0.7rem;
	border: 1px solid var(--vt-border-strong);
	border-radius: 999px;
	background: var(--vt-surface-muted);
	color: var(--vt-purple-deep);
	font-size: 0.82rem;
	font-weight: 650;
	text-decoration: none;
}

:is(body.vt-theme, .editor-styles-wrapper) :is(pre, .wp-block-code) {
	margin-block: 1.5rem;
	padding: 1.15rem 1.2rem;
	overflow: auto;
	color: var(--vt-on-night);
	background: var(--vt-night);
	border: 1px solid color-mix(in srgb, var(--vt-electric) 38%, transparent);
	border-radius: var(--vt-radius);
	font-family: var(--vt-font-mono);
	font-size: 0.92rem;
	line-height: 1.65;
}

:is(body.vt-theme, .editor-styles-wrapper) :not(pre) > code {
	padding: 0.12em 0.38em;
	border-radius: 0.4rem;
	background: var(--vt-surface-muted);
	color: var(--vt-purple-deep);
	font-family: var(--vt-font-mono);
	font-size: 0.92em;
}

:is(body.vt-theme, .editor-styles-wrapper) :is(blockquote, .wp-block-quote, .wp-block-pullquote) {
	margin-inline: 0;
	padding: 1.25rem 1.35rem;
	background: var(--vt-surface-muted);
	border: 0;
	border-inline-start: 3px solid var(--vt-purple);
	border-radius: var(--vt-radius);
	color: var(--vt-heading);
}

:is(body.vt-theme, .editor-styles-wrapper) :is(blockquote, .wp-block-quote, .wp-block-pullquote) p {
	max-width: none;
	font-family: var(--vt-font-display);
	font-weight: 560;
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
	line-height: 1.35;
}

:is(body.vt-theme, .editor-styles-wrapper) label {
	display: inline-block;
	margin-block: 0.9rem 0.4rem;
	font-weight: 650;
	color: var(--vt-heading);
}

:is(body.vt-theme, .editor-styles-wrapper) :is(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="search"],
	input[type="password"],
	input[type="tel"],
	input[type="number"],
	textarea,
	select,
	.wp-block-search__input
) {
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 0.85rem;
	color: var(--vt-ink);
	background: var(--vt-surface);
	border: 1px solid var(--vt-border-strong);
	border-radius: var(--vt-radius-sm);
	font: inherit;
}

:is(body.vt-theme, .editor-styles-wrapper) textarea {
	min-height: 9rem;
	resize: vertical;
}

body.vt-theme .ct-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	margin-block: var(--vt-space-lg);
}

body.vt-theme .ct-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--vt-border);
	border-radius: var(--vt-radius-sm);
	background: var(--vt-surface);
	color: var(--vt-ink);
	font-weight: 650;
	text-decoration: none;
}

body.vt-theme .ct-pagination .page-numbers.current {
	background: var(--vt-purple);
	border-color: var(--vt-purple);
	color: #ffffff;
}

body.vt-theme .post-navigation a {
	display: flex;
	min-height: 2.75rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--vt-border);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	color: var(--vt-heading);
	text-decoration: none;
	box-shadow: var(--vt-shadow-soft);
}

body.vt-theme .hero-section[data-type="type-1"] .entry-header::after {
	content: "";
	display: block;
	width: min(8rem, 46%);
	height: 3px;
	margin-top: 1rem;
	border-radius: 99px;
	background: var(--vt-gradient-filament);
}

body.vt-theme .hero-section[data-type="type-2"] {
	color: var(--vt-on-night);
	background: var(--vt-gradient-night);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

body.vt-theme .hero-section[data-type="type-2"] :is(.page-title, .entry-title, .page-description, h1) {
	color: var(--vt-on-night);
}

body.vt-theme .hero-section[data-type="type-2"] .page-description {
	color: var(--vt-on-night-soft);
}
