/**
 * Responsive Spacer Frontend Styles
 * 
 * @package MakaiFeatures
 * @subpackage ResponsiveSpacerBlock
 * @since 1.0.0
 */

/* ==========================================================================
   Base Responsive Spacer Styles
   ========================================================================== */

.makai-responsive-spacer {
    transition: height 0.3s ease-in-out;
}

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */

/* Mobile breakpoint: 959px and below, where the blocks switch to one column (makai css/blocks.css) */
@media screen and (max-width: 959px) {
    .makai-responsive-spacer {
        height: var(--spacer-mobile-height, 30px) !important;
    }
}

/* ==========================================================================
   Fallback Styles for Older Browsers
   ========================================================================== */

/* Fallback for browsers that don't support CSS custom properties */
@supports not (height: var(--spacer-mobile-height)) {
    @media screen and (max-width: 959px) {
        .makai-responsive-spacer {
            height: 30px !important;
        }
    }
}

/* ==========================================================================
   Animation & Performance Optimizations
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .makai-responsive-spacer {
        transition: none;
    }
}

/* GPU acceleration for smooth transitions */
.makai-responsive-spacer {
    will-change: height;
    transform: translateZ(0);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .makai-responsive-spacer {
        height: var(--spacer-mobile-height, 20px) !important;
        transition: none;
    }
}