/* Base Button Styles */
.angie-btn-12969 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 12px 24px;
    border-style: solid;
    border-width: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    vertical-align: middle;
}

.angie-btn-content {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2; /* Ensure text is above background fills */
    width: 100%;
    justify-content: center;
}

/* Icon Styles */
.angie-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.angie-btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.angie-btn-icon-left {
    margin-right: 8px; /* Default spacing, overridden by control */
}

.angie-btn-icon-right {
    margin-left: 8px; /* Default spacing, overridden by control */
}

/* --- Animations --- */

/* 1. Scale Up */
.angie-btn-effect-scale-up:hover {
    transform: scale(1.05);
}

/* 2. Fill Horizontal */
.angie-btn-effect-fill-horizontal {
    z-index: 1;
}

.angie-btn-effect-fill-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #000; /* Default, overridden by control */
    transition: width 0.3s ease-in-out;
    z-index: -1;
}

.angie-btn-effect-fill-horizontal:hover::before {
    width: 100%;
}

/* 3. Underline Slide */
.angie-btn-effect-underline-slide {
    position: relative;
}

.angie-btn-effect-underline-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: currentColor; /* Default to text color */
    transition: width 0.3s ease;
}

.angie-btn-effect-underline-slide:hover::after {
    width: 100%;
}

/* 4. Slide Up (Text Replacement) */
.angie-btn-effect-slide-up .angie-btn-text {
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.angie-btn-effect-slide-up .angie-btn-text::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(50%);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.angie-btn-effect-slide-up:hover .angie-btn-text {
    transform: translateY(-100%);
}

.angie-btn-effect-slide-up:hover .angie-btn-text::after {
    opacity: 1;
    top: 0;
    transform: translateY(100%);
}

.angie-btn-effect-slide-up {
    overflow: hidden;
}

.angie-btn-effect-slide-up .angie-btn-content {
    display: block;
    transition: transform 0.3s ease;
}

.angie-btn-effect-slide-up .angie-btn-text {
    display: block;
}

.angie-btn-effect-slide-up .angie-btn-text::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
}

.angie-btn-effect-slide-up:hover .angie-btn-content {
    transform: translateY(-100%);
}

/* 5. Header Underline Reveal */
.angie-btn-effect-header-underline-reveal .angie-btn-text {
    position: relative;
    display: inline-block;
}

.angie-btn-effect-header-underline-reveal .angie-btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    width: 0%;
    /* height, bottom, transition, background-color set by controls */
    height: 2px; /* fallback */
    bottom: -5px; /* fallback */
    background-color: currentColor; /* fallback */
    transition: width 0.3s ease;
}

.angie-btn-effect-header-underline-reveal:hover .angie-btn-text::after {
    width: 100%;
}

/* 6. Arrow Fade & Slide */
.angie-btn-arrow-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    /* transform, transition, margin set by controls */
    transform: translateX(-15px); /* fallback */
    transition: all 0.4s ease-out; /* fallback */
    margin-left: 10px; /* fallback */
    line-height: 1;
    color: currentColor; /* Default to inherit text color */
}

.angie-btn-arrow-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.angie-btn-12969:hover .angie-btn-arrow-icon {
    opacity: 1;
    transform: translateX(0);
}
