/* base button style — clean & scalable */
.wpcd-button {
    /* layout & sizing */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    
    /* interactive & cursor */
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    
    /* borders & rounding */
    border: none;
    border-radius: 60px;   /* super pill shape, modern & friendly */
    
    /* background & effects base */
    background: linear-gradient(105deg, #00049B, #ff3a2f);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    
    /* subtle shadow & transition */
    box-shadow: 0 12px 22px -8px rgba(255, 58, 47, 0.45), 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    
    /* extra eye-candy: relative for pseudo elements */
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* text decoration reset */
    text-decoration: none;
    letter-spacing: 0.3px;
}

/* high-energy gradient variant (different energy) — but also punchy, we can keep one hero version 
   but also define additional state variations for extra flair, but main button remains the core "punchy" */

/* ---------- GLOW & RIPPLE effect (premium punch) ---------- */
.wpcd-button::before {
    content: "";
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 0px;
    height: 0px;
    background: radial-gradient(circle, rgba(255,255,245,0.65) 0%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.45s ease-out, height 0.45s ease-out;
    pointer-events: none;
    z-index: 0;
}

/* on click ripple simulation (js not required, but we do interactive pseudo on active) */
.wpcd-button:active::before {
    width: 400px;
    height: 400px;
    transition: width 0.3s ease-out, height 0.3s ease-out;
}

/* shimmer overlay animation – makes button ultra eye-catching (continuous subtle shine) */
.wpcd-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    transition: left 0.65s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* shimmer movement on hover: adds dynamic liveliness */
.wpcd-button:hover::after {
    left: 125%;
}

/* hover state: lift, intensify glow, scale slightly */
.wpcd-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 32px -10px rgba(255, 58, 47, 0.6), 0 6px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(115deg, #ff7a48, #00049B);
    filter: brightness(1.02);
}

/* active (click) feedback: punchy press */
.wpcd-button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 8px 18px -5px rgba(255, 58, 47, 0.65);
    transition: transform 0.08s linear;
}

/* focus state for accessibility (keyboard nav) */
.wpcd-button:focus-visible {
    outline: 3px solid #ffd966;
    outline-offset: 3px;
    border-radius: 60px;
}

/* optional icon inside button - if we use i or svg, we keep alignment */
.wpcd-button i, 
.wpcd-button svg {
    transition: transform 0.2s ease;
    pointer-events: none;
}

.wpcd-button:hover i,
.wpcd-button:hover svg {
    transform: translateX(4px);
}

/* ----- extra PULSE effect (eye-catching, adds energy without being annoying) ----- */
/* we add a subtle pulse animation on the button's box-shadow to catch attention */
.wpcd-button--pulse {
    animation: wpcd-pulse-glow 2.2s infinite ease-in-out;
}

@keyframes wpcd-pulse-glow {
    0% {
        box-shadow: 0 12px 22px -8px rgba(255, 58, 47, 0.45), 0 4px 8px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 15px 32px -6px rgba(255, 78, 55, 0.7), 0 0 0 4px rgba(255, 90, 55, 0.2);
    }
    100% {
        box-shadow: 0 12px 22px -8px rgba(255, 58, 47, 0.45), 0 4px 8px rgba(0, 0, 0, 0.05);
    }
}

/* we also add a secondary variant for dark backgrounds or different usage, but keep primary solid */
/* but to show flexibility, we create .wpcd-button--invert (alternative punchy) */
.wpcd-button--invert {
    background: linear-gradient(125deg, #1e2b3c, #0f212e);
    box-shadow: 0 12px 24px -8px rgba(0, 20, 30, 0.6);
    color: #f0fcff;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.wpcd-button--invert:hover {
    background: linear-gradient(115deg, #2c4155, #122b3a);
    box-shadow: 0 22px 32px -12px rgba(0, 45, 60, 0.8);
}

.wpcd-button--invert::before {
    background: radial-gradient(circle, rgba(100,200,255,0.55) 0%, rgba(255,255,255,0) 80%);
}

/* Another version: neon / cyber punch */
.wpcd-button--neon {
    background: linear-gradient(105deg, #00c6a7, #1e3c72);
    box-shadow: 0 0 12px #00ffc3, 0 10px 22px -5px rgba(0,198,167,0.5);
}

.wpcd-button--neon:hover {
    box-shadow: 0 0 18px #7effe0, 0 15px 28px -6px #00c6a7;
    background: linear-gradient(115deg, #1ae6c2, #1f4b8a);
}

/* size variations (optional, production ready but consistent) */
.wpcd-button--sm {
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    gap: 0.45rem;
}

.wpcd-button--lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.35rem;
    gap: 0.9rem;
}

/* full width version for mobile/container */
.wpcd-button--block {
    display: flex;
    width: 100%;
}

/* disabled state – production ready */
.wpcd-button:disabled,
.wpcd-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.1);
    transform: none;
    pointer-events: none;
    box-shadow: 0 6px 12px -5px rgba(0,0,0,0.2);
}

/* Additional styling to make sure text is crisp */
.wpcd-button span, 
.wpcd-button .wpcd-button-text {
    position: relative;
    z-index: 2;
}

/* optional loader / spinner for async state - just in case you need it later (not active by default, but nice) */
.wpcd-button .wpcd-spinner {
    display: none;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: wpcd-spin 0.7s linear infinite;
}

@keyframes wpcd-spin {
    to { transform: rotate(360deg); }
}

.wpcd-button--loading .wpcd-button-text {
    display: none;
}

.wpcd-button--loading .wpcd-spinner {
    display: inline-block;
}

/* demo helpers for extra style - not necessary for core, but for this preview */
hr {
    margin: 2rem 0;
    border: none;
    height: 2px;
    background: rgba(0,0,0,0.1);
    width: 80%;
}

.badge {
    font-size: 0.7rem;
    background: #ffffffc9;
    padding: 0.2rem 0.7rem;
    border-radius: 60px;
    color: #e6452c;
    font-weight: 600;
}