@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════
 * BUBBLE BUTTON WRAPPER & CONTAINER
 * ══════════════════════════════════════════════════ */
.aafe-bubble-button-wrapper {
    width: 100%;
    display: flex;
    transition: all var(--aafe-transition, 300ms) var(--aafe-easing, ease);
}

.aafe-bubble-button-wrapper h1,
.aafe-bubble-button-wrapper h2,
.aafe-bubble-button-wrapper h3,
.aafe-bubble-button-wrapper h4,
.aafe-bubble-button-wrapper h5,
.aafe-bubble-button-wrapper h6 {
    font-family: 'Sora', sans-serif;
}

.aafe-bubble-button-wrapper p,
.aafe-bubble-button-wrapper span,
.aafe-bubble-button-wrapper li,
.aafe-bubble-button-wrapper a,
.aafe-bubble-button-wrapper button {
    font-family: 'Inter', sans-serif;
}

/* Alignment Classes */
/* Desktop */
.aafe-bubble-button-align-left .aafe-bubble-button-wrapper {
    justify-content: flex-start;
}
.aafe-bubble-button-align-center .aafe-bubble-button-wrapper {
    justify-content: center;
}
.aafe-bubble-button-align-right .aafe-bubble-button-wrapper {
    justify-content: flex-end;
}
.aafe-bubble-button-align-justify .aafe-bubble-button-wrapper {
    justify-content: center;
}
.aafe-bubble-button-align-justify .aafe-bubble-button-wrapper .aafe-bubble-button-container {
    width: 100%;
}
.aafe-bubble-button-align-justify .aafe-bubble-button-wrapper .aafe-bubble-button {
    width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
    .aafe-bubble-button-align_tablet-left .aafe-bubble-button-wrapper {
        justify-content: flex-start;
    }
    .aafe-bubble-button-align_tablet-center .aafe-bubble-button-wrapper {
        justify-content: center;
    }
    .aafe-bubble-button-align_tablet-right .aafe-bubble-button-wrapper {
        justify-content: flex-end;
    }
    .aafe-bubble-button-align_tablet-justify .aafe-bubble-button-wrapper {
        justify-content: center;
    }
    .aafe-bubble-button-align_tablet-justify .aafe-bubble-button-wrapper .aafe-bubble-button-container {
        width: 100%;
    }
    .aafe-bubble-button-align_tablet-justify .aafe-bubble-button-wrapper .aafe-bubble-button {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .aafe-bubble-button-align_mobile-left .aafe-bubble-button-wrapper {
        justify-content: flex-start;
    }
    .aafe-bubble-button-align_mobile-center .aafe-bubble-button-wrapper {
        justify-content: center;
    }
    .aafe-bubble-button-align_mobile-right .aafe-bubble-button-wrapper {
        justify-content: flex-end;
    }
    .aafe-bubble-button-align_mobile-justify .aafe-bubble-button-wrapper {
        justify-content: center;
    }
    .aafe-bubble-button-align_mobile-justify .aafe-bubble-button-wrapper .aafe-bubble-button-container {
        width: 100%;
    }
    .aafe-bubble-button-align_mobile-justify .aafe-bubble-button-wrapper .aafe-bubble-button {
        width: 100%;
    }
}

.aafe-bubble-button-container {
    display: inline-flex;
    max-width: 100%;
}

/* ══════════════════════════════════════════════════
 * THE BUBBLE BUTTON ELEMENT
 * ══════════════════════════════════════════════════ */
.aafe-bubble-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px; /* Default Button typography size */
    color: #ffffff;
    background-color: #171717;
    padding: 1em 2em;
    border: none;
    border-radius: 0.6rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
}

/* Icons */
.aafe-bubble-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.aafe-bubble-button__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.aafe-bubble-button__icon i {
    font-size: 1em;
}

/* Text Wrapping */
.aafe-bubble-button__text-wrap {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let button receive hover events */
}

/* ══════════════════════════════════════════════════
 * BUBBLE CIRCLES (THE AMAZING STAGGER HOVER EFFECT)
 * ══════════════════════════════════════════════════ */
.aafe-bubble-button__circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 30px;
    width: 30px;
    background-color: #0c66ed;
    border-radius: 50%;
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

/* Circle Offsets (Staggered Placement) */
.aafe-bubble-button__circle--1 {
    transform: translate(-3.3em, -4em) scale(0);
}

.aafe-bubble-button__circle--2 {
    transform: translate(-6em, 1.3em) scale(0);
}

.aafe-bubble-button__circle--3 {
    transform: translate(-0.2em, 1.8em) scale(0);
}

.aafe-bubble-button__circle--4 {
    transform: translate(3.5em, 1.4em) scale(0);
}

.aafe-bubble-button__circle--5 {
    transform: translate(3.5em, -3.8em) scale(0);
}

/* Expanded Bubble Stagger on Button Hover */
.aafe-bubble-button:hover .aafe-bubble-button__circle {
    transform: translate(-50%, -50%) scale(4);
    transition: transform 1.5s ease;
}

/* ══════════════════════════════════════════════════
 * WRAPPER HOVER EFFECTS (GLOBAL SYSTEM)
 * ══════════════════════════════════════════════════ */
/* Lift Effect */
.aafe-bubble-button-wrapper[data-hover="lift"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Scale Effect */
.aafe-bubble-button-wrapper[data-hover="scale"]:hover {
    transform: scale(var(--aafe-hover-scale, 1.03));
}

/* Glow Effect */
.aafe-bubble-button-wrapper[data-hover="glow"]:hover {
    box-shadow: 0 0 0 3px #0c66ed, 0 8px 30px rgba(12, 102, 237, 0.25);
}

/* Border Pop Effect */
.aafe-bubble-button-wrapper[data-hover="border-pop"]:hover {
    border-color: #0c66ed;
    transform: scale(1.01);
}

/* Shine Effect */
.aafe-bubble-button-wrapper[data-hover="shine"] {
    overflow: hidden;
    position: relative;
}
.aafe-bubble-button-wrapper[data-hover="shine"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}
.aafe-bubble-button-wrapper[data-hover="shine"]:hover::after {
    left: 125%;
    transition: left 0.6s ease;
}
