/**
 * Candex button designs — Figma visual styles for Gutenberg + ACF CTAs.
 *
 * Gutenberg: block sidebar → Styles (Gradient CTA, Outline + arrow, …).
 * ACF: CTA style select → .c-btn--* classes from candex_v2_button_design_class().
 */

/* -------------------------------------------------------------------------- */
/* Shared base                                                                */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-cta .wp-block-button__link,
.is-style-candex-button-outline .wp-block-button__link,
.is-style-candex-button-outline-dark .wp-block-button__link,
.is-style-candex-button-secondary .wp-block-button__link,
.is-style-candex-button-small .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-cta .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-outline .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-outline-dark .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-secondary .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-small .wp-block-button__link,
.c-btn--gradient,
.c-btn--outline,
.c-btn--outline-dark,
.c-btn--secondary,
.c-btn--small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	text-decoration: none;
	box-sizing: border-box;
	transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* -------------------------------------------------------------------------- */
/* Gradient CTA (Hero “Get a Demo”)                                           */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-cta .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-cta .wp-block-button__link,
.c-btn--gradient {
	min-height: 3.5625rem;
	padding: 0.6875rem 2.5rem;
	border: 0;
	border-radius: 200px;
	background: linear-gradient(90deg, var(--hero-btn-start, #2f6bff), var(--hero-btn-end, #00c2ff));
	color: var(--hero-btn-text, #fff);
	font-family: var(--type-button-cta-font, var(--font-sans));
	font-size: var(--type-button-cta-size, 1.875rem);
	font-weight: var(--type-button-cta-weight, 600);
	line-height: var(--type-button-cta-lh, 1);
	box-shadow: 0 8px 24px rgba(0, 120, 255, 0.25);
}

.is-style-candex-button-cta .wp-block-button__link:hover,
.is-style-candex-button-cta .wp-block-button__link:focus-visible,
.editor-styles-wrapper .is-style-candex-button-cta .wp-block-button__link:hover,
.c-btn--gradient:hover,
.c-btn--gradient:focus-visible {
	filter: brightness(1.06);
	color: var(--hero-btn-text, #fff);
}

/* Keep hero CTA aligned with the shared gradient design. */
.c-btn--hero {
	border-radius: 200px;
}

/* -------------------------------------------------------------------------- */
/* Outline + arrow (“Learn how it works”)                                     */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-outline .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-outline .wp-block-button__link,
.c-btn--outline {
	min-height: 3.125rem;
	padding: 0.7rem 2.5rem;
	border: 1px solid #23b0e9;
	border-radius: 200px;
	background: transparent;
	color: #444b78;
	font-family: var(--type-button-outline-font, var(--font-sans));
	font-size: var(--type-button-outline-size, 1.5rem);
	font-weight: var(--type-button-outline-weight, 600);
	line-height: var(--type-button-outline-lh, 1);
	box-shadow: none;
}

.is-style-candex-button-outline .wp-block-button__link:hover,
.is-style-candex-button-outline .wp-block-button__link:focus-visible,
.editor-styles-wrapper .is-style-candex-button-outline .wp-block-button__link:hover,
.c-btn--outline:hover,
.c-btn--outline:focus-visible {
	background: rgba(35, 176, 233, 0.06);
	color: #444b78;
	border-color: #23b0e9;
}

.is-style-candex-button-outline .wp-block-button__link::after,
.editor-styles-wrapper .is-style-candex-button-outline .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 1.55rem;
	height: 0.9rem;
	background: url("/site/wp-content/themes/candex-v2/assets/images/text-image/cta-arrow.svg") center / contain no-repeat;
	flex: 0 0 auto;
}

.c-btn__arrow-icon {
	display: inline-block;
	width: 1.55rem;
	height: 0.9rem;
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------- */
/* Outline on dark (navy / media sections)                                    */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-outline-dark .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-outline-dark .wp-block-button__link,
.c-btn--outline-dark {
	min-height: 3rem;
	padding: 0.75rem 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 200px;
	background: transparent;
	color: #fff;
	font-family: var(--type-button-outline-dark-font, var(--font-sans));
	font-size: var(--type-button-outline-dark-size, 1.25rem);
	font-weight: var(--type-button-outline-dark-weight, 600);
	line-height: var(--type-button-outline-dark-lh, 1);
	box-shadow: none;
}

.is-style-candex-button-outline-dark .wp-block-button__link:hover,
.is-style-candex-button-outline-dark .wp-block-button__link:focus-visible,
.editor-styles-wrapper .is-style-candex-button-outline-dark .wp-block-button__link:hover,
.c-btn--outline-dark:hover,
.c-btn--outline-dark:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Secondary                                                                  */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-secondary .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-secondary .wp-block-button__link,
.c-btn--secondary {
	min-height: 3.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid currentColor;
	border-radius: 200px;
	background: transparent;
	color: inherit;
	font-family: var(--type-button-secondary-font, var(--font-sans));
	font-size: var(--type-button-secondary-size, 1.125rem);
	font-weight: var(--type-button-secondary-weight, 500);
	line-height: var(--type-button-secondary-lh, 1);
	box-shadow: none;
}

.is-style-candex-button-secondary .wp-block-button__link:hover,
.is-style-candex-button-secondary .wp-block-button__link:focus-visible,
.editor-styles-wrapper .is-style-candex-button-secondary .wp-block-button__link:hover,
.c-btn--secondary:hover,
.c-btn--secondary:focus-visible {
	opacity: 0.85;
}

/* -------------------------------------------------------------------------- */
/* Small outline (Login-like)                                                 */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-small .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-small .wp-block-button__link,
.c-btn--small {
	min-height: 2.1875rem;
	height: auto;
	padding: 0.6875rem 2.5rem;
	border: 1px solid var(--color-login-border, #23b0e9);
	border-radius: 200px;
	background: transparent;
	color: var(--color-header-text, #141b4d);
	font-family: var(--type-button-small-font, var(--font-sans));
	font-size: var(--type-button-small-size, 1.25rem);
	font-weight: var(--type-button-small-weight, 600);
	line-height: var(--type-button-small-lh, 1);
	box-shadow: none;
}

.is-style-candex-button-small .wp-block-button__link:hover,
.is-style-candex-button-small .wp-block-button__link:focus-visible,
.editor-styles-wrapper .is-style-candex-button-small .wp-block-button__link:hover,
.c-btn--small:hover,
.c-btn--small:focus-visible {
	background: var(--color-dropdown-hover, rgba(35, 176, 233, 0.08));
	color: var(--color-header-text, #141b4d);
}
