/* ==========================================================================
   Base Block Styles - Reusable Component Styles for Gutenberg Blocks
   ========================================================================== */

/*--------------------------------------------------------------------------
  # Generic Buttons
--------------------------------------------------------------------------*/


/* 
 * Base wrapper class for button containers within blocks 
 * Provides consistent spacing and alignment.
 */
.block-buttons-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 
 * Base class for all buttons to ensure consistency in padding, border-radius etc.
 * We target the link inside the .wp-block-button wrapper.
 */
.wp-block-button .wp-block-button__link {
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

/* 
 * Primary Button Style 
 * The default, filled-in button.
 */
.wp-block-button .wp-block-button__link.btn-primary {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--foreground);
    border: 2px solid var(--wp--preset--color--primary);
}

.wp-block-button .wp-block-button__link.btn-primary:hover {
    background-color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
}

/* 
 * Secondary Button Style (Outline) 
 * Uses the .is-style-outline class on the wrapper for context.
 */
body .wp-block-button.is-style-outline .wp-block-button__link.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;;
}

body .wp-block-button.is-style-outline .wp-block-button__link.btn-secondary:hover {
    background-color: #007bff;
    color: #ffffff;
}
