/*
Theme Name: Velour
Theme URI: https://tenfoldthemes.example/velour
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A K-beauty luxe theme for cosmetics and personal care OEM/ODM manufacturers. Ships with 18 hand-crafted patterns including four full-page layouts, a Plum Noir dark style, locally hosted Prata and Jost fonts and original cameo-oval vector artwork — everything editable in the Site Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velour
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, e-commerce, portfolio
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — Velvet card / Velvet card (hover)
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-card-hover {
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.wp-block-group.is-style-card-hover:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-4px);
}

/* ---------------------------------------------------------------------------
 * Block styles: Image — Cameo oval (signature frame)
 * ------------------------------------------------------------------------- */

.wp-block-image.is-style-cameo img {
	border-radius: var(--wp--custom--cameo);
}

.wp-block-image.is-style-cameo {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Block styles: Separator — Gold diamond hairline
 * ------------------------------------------------------------------------- */

hr.is-style-gold-diamond {
	border: none;
	height: 1px;
	width: min(240px, 60%);
	background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--accent) 18%, var(--wp--preset--color--accent) 82%, transparent 100%);
	overflow: visible;
	position: relative;
	opacity: 1;
}

hr.is-style-gold-diamond::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--accent);
	transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------------------------------------------------------------------------
 * Block styles: List — Diamond markers
 * ------------------------------------------------------------------------- */

ul.is-style-diamond-list {
	list-style: none;
	padding-left: 0;
}

ul.is-style-diamond-list > li {
	padding-left: 1.5em;
	position: relative;
	margin-bottom: 0.6em;
}

ul.is-style-diamond-list > li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.58em;
	width: 0.45em;
	height: 0.45em;
	background: var(--wp--preset--color--accent);
	transform: rotate(45deg);
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 8px;
	height: 8px;
	border: 1px solid var(--wp--preset--color--accent);
	transform: translateY(-50%) rotate(45deg);
	transition: transform 0.25s ease, background 0.25s ease;
}

.wp-block-details[open] summary::after {
	background: var(--wp--preset--color--accent);
	transform: translateY(-50%) rotate(225deg);
}

.wp-block-details > :not(summary) {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1px;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
/* ---------------------------------------------------------------------------
 * Palette-slug guard: the standard palette includes a slug named "border".
 * When used as a *text* color, WordPress emits `.has-border-color`, which core
 * pairs with `:where(.has-border-color){border-style:solid}`; with the default
 * medium width that paints a stray ~3px box around the text. Zero the width
 * here — genuine borders set an explicit width (inline or via block-style
 * classes) that overrides this 0-specificity rule.
 * ------------------------------------------------------------------------- */
:where(.has-border-color) {
	border-width: 0;
}
