/**
 * Circle Button Animation Styles
 * Based on the provided design with expanding circle background and sliding arrow
 */

.wml-circle-button {
    position: relative;
    margin: auto;
    padding: 19px 22px;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    color: var(--wml-circle-text, #111);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: Avenir, sans-serif;
    isolation: isolate;
    /* Create stacking context */

    /* CSS Variables for customization */
    --wml-circle-primary: #FFAB9D;
    --wml-circle-text: #111;
    --wml-circle-stroke: #111;
}

/* Circle background pseudo-element */
.wml-circle-button::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    display: block;
    border-radius: 28px;
    background: rgba(var(--wml-circle-primary-rgb, 255, 171, 157), 0.5);
    width: 56px;
    height: 56px;
    transition: all .3s ease;
    z-index: 0;
}

/* Text styling */
.wml-circle-button span {
    position: relative;
    font-size: 16px;
    line-height: 18px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    vertical-align: middle;
    color: inherit;
    z-index: 1;
}

/* SVG arrow styling */
.wml-circle-button svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--wml-circle-stroke, #111);
    stroke-width: 2;
    transform: translateX(-5px);
    transition: all .3s ease;
    vertical-align: middle;
    z-index: 1;
}

/* Hover state - expand circle and slide arrow */
.wml-circle-button:hover::before {
    width: 100%;
    background: rgba(var(--wml-circle-primary-rgb, 255, 171, 157), 1);
}

.wml-circle-button:hover svg {
    transform: translateX(0);
}

/* Active/click state - slight scale down */
.wml-circle-button:active {
    transform: scale(0.96);
}

/* Ensure proper display when used as div */
.wml-circle-button[href] {
    display: inline-block;
}