/* ============================================================
   ASTROFLA BUTTONS — Public Styles
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────────── */
.afb-wrap {
    margin: 0;
    padding: 0;
}

/* ── Base button ─────────────────────────────────────────────── */
.afb-btn {
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
}

.afb-btn .afb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-style: normal;
}

.afb-btn .afb-label {
    line-height: 1.2;
}

/* ── Ripple effect on click ──────────────────────────────────── */
.afb-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.afb-btn:active::after {
    width: 200px; height: 200px;
    opacity: 1;
    transition: 0s;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */

/* Lift */
.afb-anim-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.afb-anim-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18) !important;
}

/* Pulse */
@keyframes afbPulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; }
    50%       { box-shadow: 0 0 0 8px transparent; }
}
.afb-anim-pulse:hover {
    animation: afbPulse 0.8s ease infinite;
}

/* Shake */
@keyframes afbShake {
    0%, 100% { transform: translateX(0); }
    15%  { transform: translateX(-4px); }
    30%  { transform: translateX(4px); }
    45%  { transform: translateX(-3px); }
    60%  { transform: translateX(3px); }
    75%  { transform: translateX(-2px); }
    90%  { transform: translateX(2px); }
}
.afb-anim-shake:hover {
    animation: afbShake 0.5s ease;
}

/* Bounce */
@keyframes afbBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-6px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
}
.afb-anim-bounce:hover {
    animation: afbBounce 0.5s ease;
}

/* Glow */
.afb-anim-glow:hover {
    filter: brightness(1.1) drop-shadow(0 0 10px currentColor);
}

/* Scale */
.afb-anim-scale {
    transition: transform 0.2s ease !important;
}
.afb-anim-scale:hover {
    transform: scale(1.06);
}

/* Slide → */
.afb-anim-slide-right {
    overflow: hidden;
}
.afb-anim-slide-right::before {
    content: '';
    position: absolute;
    left: -100%; top: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.3s ease;
}
.afb-anim-slide-right:hover::before {
    left: 100%;
}

/* ── Smooth scroll override ──────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .afb-btn {
        white-space: normal;
        word-break: break-word;
    }
}

/* ── Container ───────────────────────────────────────────────── */
.afb-container {
    box-sizing: border-box;
}

.afb-container .afb-ct-text {
    flex: 1;
    min-width: 0;
}

.afb-container .afb-ct-btn {
    flex-shrink: 0;
}

.afb-container .afb-wrap {
    margin: 0;
}

.afb-ct-title {
    font-family: inherit;
}

/* Inline layout — stack vertically on mobile */
@media (max-width: 640px) {
    .afb-layout-inline-text-left,
    .afb-layout-inline-btn-left {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .afb-layout-inline-text-left .afb-ct-btn,
    .afb-layout-inline-btn-left .afb-ct-btn {
        align-self: flex-start;
    }
}

/* ── Full Page / Full Width breakout ─────────────────────────── */
.afb-container.afb-fullpage {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
}

.afb-container.afb-fp-viewport {
    min-height: 100vh;
    display: flex !important;
    flex-direction: column;
}

/* Overlay */
.afb-ct-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Container icon */
.afb-ct-icon {
    display: block;
    flex-shrink: 0;
}

.afb-ct-icon-emoji {
    line-height: 1;
}

.afb-ct-icon svg {
    display: block;
}

/* Container text block */
.afb-ct-text {
    min-width: 0;
}

/* Title row (beside-title icon mode) */
.afb-ct-title-row {
    display: flex;
    align-items: center;
}

/* Full page inner content centering */
.afb-fullpage > .afb-ct-text,
.afb-fullpage > .afb-ct-btn {
    position: relative; /* above overlay */
    z-index: 1;
}
