/**
 * Button Styles
 * Styling voor button-achtige elementen
 */

/* Button utility class voor paragraphs */
.wp-block-paragraph.button-style,
.button-style {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content;
    padding: 12px 32px !important;
    margin: 1rem auto;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

/* Links in buttons should not be underlined */
.button-style a,
.button-style a:link,
.button-style a:visited,
.button-style a:hover,
.button-style a:active {
    text-decoration: none !important;
}

/* But regular links (not in buttons) should be underlined if they have a color class */
a[class*="has-"]:not(.button-style a) {
    text-decoration: underline;
}

/* Button hover effect */
.wp-block-paragraph.button-style:hover,
.button-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Button sizes */
.button-style.button-small {
    padding: 8px 20px !important;
    font-size: 0.875rem;
}

.button-style.button-large {
    padding: 16px 40px !important;
    font-size: 1.125rem;
}

/* Button variants */
.button-style.button-primary {
    background-color: var(--color-primary, #1B4E0C) !important;
}

.button-style.button-secondary {
    background-color: var(--color-secondary, #2C7A1F) !important;
}

.button-style.button-outline {
    background-color: transparent !important;
    border: 2px solid var(--color-primary, #1B4E0C);
    color: var(--color-primary, #1B4E0C) !important;
}

.button-style.button-outline:hover {
    background-color: var(--color-primary, #1B4E0C) !important;
    color: #ffffff !important;
}

/* Button full width (voor mobile) */
.button-style.button-full {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
}

/* Centered button wrapper */
.button-wrapper {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Button group (meerdere buttons naast elkaar) */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.button-group .button-style {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .button-style {
        padding: 10px 24px !important;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .button-group .button-style {
        width: 100%;
        max-width: 100%;
    }
}
