/**
 * Button Block Styles
 * Based on Figma Design System - Styleguide Node 227:3098
 * Base styles (font-family, font-size, font-weight, padding, border-radius) are defined in theme.json
 * This file contains specific block style variants that extend theme.json defaults
 * Exact match from Figma:
 * - Button Voll Blau: bg-[#1e3791] h-[60px] px-[30px] py-[20px] text-white font-semibold text-[18px] leading-[16px]
 * - Button Voll Weiß: bg-white h-[60px] px-[30px] py-[20px] text-[#1e3791] font-semibold text-[18px] leading-[16px]
 * - Button Linien Blau: border-[3px] border-[#1e3791] bg-[rgba(30,55,145,0.1)] h-[60px] px-[30px] py-[20px] justify-between with arrow
 */

/* Default Button Style (Voll Blau) - Applied to all buttons without explicit style */
.wp-block-button:not(.is-style-button-voll-weiss):not(.is-style-button-linien-blau) .wp-block-button__link,
.wp-block-button:not(.is-style-button-voll-weiss):not(.is-style-button-linien-blau) > .wp-block-button__link {
	background-color: var(--wp--preset--color--primary-blue) !important;
	color: var(--wp--preset--color--primary-white) !important;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 16px !important;
	height: 60px !important;
	padding: 20px 30px !important;
	border: none !important;
	border-radius: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	text-align: center;
	white-space: nowrap;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}

.wp-block-button:not(.is-style-button-voll-weiss):not(.is-style-button-linien-blau) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-button-voll-weiss):not(.is-style-button-linien-blau) .wp-block-button__link:focus {
	opacity: var(--kbd-hover-opacity);
	color: var(--wp--preset--color--primary-white);
	text-decoration: none;
}

/* Button Voll Blau (Primary) */
.wp-block-button.is-style-button-voll-blau .wp-block-button__link,
.wp-block-button.is-style-button-voll-blau > .wp-block-button__link {
	background-color: var(--wp--preset--color--primary-blue) !important;
	color: var(--wp--preset--color--primary-white) !important;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 16px !important;
	height: 60px !important;
	padding: 20px 30px !important;
	border: none !important;
	border-radius: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	text-align: center;
	white-space: nowrap;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}

.wp-block-button.is-style-button-voll-blau .wp-block-button__link:hover,
.wp-block-button.is-style-button-voll-blau .wp-block-button__link:focus {
	opacity: var(--kbd-hover-opacity);
	color: var(--wp--preset--color--primary-white);
	text-decoration: none;
}

/* Button Voll Weiß (Secondary) */
.wp-block-button.is-style-button-voll-weiss .wp-block-button__link,
.wp-block-button.is-style-button-voll-weiss > .wp-block-button__link {
	background-color: var(--wp--preset--color--primary-white) !important;
	color: var(--wp--preset--color--primary-blue) !important;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 16px !important;
	height: 60px !important;
	padding: 20px 30px !important;
	border: none !important;
	border-radius: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	text-align: center;
	white-space: nowrap;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}

.wp-block-button.is-style-button-voll-weiss .wp-block-button__link:hover,
.wp-block-button.is-style-button-voll-weiss .wp-block-button__link:focus {
	opacity: var(--kbd-hover-opacity);
	color: var(--wp--preset--color--primary-blue);
	text-decoration: none;
}

/* Button Linien Blau (Outline with background) */
.wp-block-button.is-style-button-linien-blau .wp-block-button__link,
.wp-block-button.is-style-button-linien-blau > .wp-block-button__link {
	background-color: rgba(30, 55, 145, 0.1) !important;
	color: var(--wp--preset--color--primary-blue) !important;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 16px !important;
	height: 60px !important;
	padding: 20px 30px !important;
	border: 3px solid var(--wp--preset--color--primary-blue) !important;
	border-radius: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-decoration: none !important;
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
	box-sizing: border-box;
}

.wp-block-button.is-style-button-linien-blau .wp-block-button__link:hover,
.wp-block-button.is-style-button-linien-blau .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--primary-blue);
	color: var(--wp--preset--color--primary-white);
	text-decoration: none;
}

/* Arrow icon in outline button - SVG from Figma (31px x 31px) */
.wp-block-button.is-style-button-linien-blau .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 31px;
	height: 31px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='28' height='26' viewBox='0 0 28 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 13.2593H24.5455' stroke='%231e3791' stroke-width='3' stroke-miterlimit='10'/%3E%3Cpath d='M13.4089 24.5184L24.5455 13.2592L13.4089 2' stroke='%231e3791' stroke-width='3' stroke-miterlimit='10'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.wp-block-button.is-style-button-linien-blau .wp-block-button__link:hover::after,
.wp-block-button.is-style-button-linien-blau .wp-block-button__link:focus::after {
	background-image: url("data:image/svg+xml,%3Csvg width='28' height='26' viewBox='0 0 28 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 13.2593H24.5455' stroke='%23ffffff' stroke-width='3' stroke-miterlimit='10'/%3E%3Cpath d='M13.4089 24.5184L24.5455 13.2592L13.4089 2' stroke='%23ffffff' stroke-width='3' stroke-miterlimit='10'/%3E%3C/svg%3E");
}
