/* 
 * Pangolin Armor Button Styles for Elementor
 */

/* Target the actual button link inside the Elementor widget container */
.armor-button .elementor-button {
    position: relative;
    overflow: hidden;
    z-index: 1; 
}

/* Container for the scales to isolate them from the button content */
.armor-button .elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; 
    
    background-color: transparent;
    background-image: 
        radial-gradient(ellipse at center top, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, rgba(0,0,0,0.05) 70%);
    background-size: 20px 20px, 20px 20px;
    background-position: 0 0, 10px 10px;
    
    clip-path: circle(0% at 50% 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Ensure text and other contents inside the button stay above the pseudo-element */
.armor-button .elementor-button .elementor-button-content-wrapper,
.armor-button .elementor-button .elementor-button-text {
    position: relative;
    z-index: 2;
}

/* The growth animation class applied by JS */
.armor-button.is-armored .elementor-button::before {
    opacity: 1;
    animation: pangolinArmorGrow 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Keyframes for the radial growth */
@keyframes pangolinArmorGrow {
    0% {
        clip-path: circle(0% at 50% 50%);
    }
    100% {
        clip-path: circle(150% at 50% 50%);
    }
}

/* The shimmer effect after scales form */
.armor-button .elementor-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1; 
    
    background: linear-gradient(
        135deg, 
        transparent 40%, 
        rgba(255,255,255,0.1) 45%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 55%, 
        transparent 60%
    );
    
    transform: translateX(-100%);
    opacity: 0;
}

/* Trigger shimmer */
.armor-button.is-shimmering .elementor-button::after {
    opacity: 1;
    animation: pangolinArmorShimmer 0.8s ease-in-out forwards;
}

@keyframes pangolinArmorShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
