/**
 * Custom Button Styles for Bosfluiter Theme
 * Uses CSS custom properties from theme.json for child theme compatibility
 */

/* Primary Button - Gradient using theme secondary color */
.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button__link {
    background: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 85%, white) 100%) !important;
    color: var(--wp--preset--color--on-secondary) !important;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.wp-block-button.is-style-primary .wp-block-button__link:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--wp--preset--color--secondary) 40%, transparent) !important;
}

/* Outline Button - White Border */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    transition: all 0.3s ease !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* Fill Button (WordPress default) - Use theme colors */
.wp-block-button.is-style-fill .wp-block-button__link {
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Editor Styles */
.editor-styles-wrapper .wp-block-button.is-style-primary .wp-block-button__link {
    background: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 85%, white) 100%) !important;
    color: var(--wp--preset--color--on-secondary) !important;
}

.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

/* Ensure buttons maintain spacing */
.wp-block-button {
    margin-bottom: 0.5rem;
}

.wp-block-buttons .wp-block-button {
    margin-bottom: 0;
}

/* Theme-aware hover styles using CSS custom properties */
[style*="--hover-color"]:hover {
    color: var(--hover-color) !important;
}

[style*="--hover-bg"]:hover {
    background-color: var(--hover-bg) !important;
}
