/* ============================================================
   deathlyill — buttons
   Every brand button is forced into the same translucent dark
   pill, matching the reference Linktree screenshot.
   ============================================================ */

/* The wrapper LinkStack emits around each link.
   Stretch it full-width and keep buttons stacked. */
.button-entrance {
    width: 100%;
    margin: 10px 0;
    display: block;
}

/* Base button. Use a high-specificity selector + !important
   so it wins against the per-brand color rules LinkStack ships. */
.button,
a.button,
.button.button-default,
.button.button-custom,
.button.button-custom_website,
[class*="button-"].button {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 14px 56px !important;
    margin: 0 !important;

    background: var(--button-bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--button-border) !important;
    border-radius: var(--button-radius) !important;

    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1px;
    line-height: 1.2;

    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.button:hover,
a.button:hover,
[class*="button-"].button:hover {
    background: var(--button-bg-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.button:active,
a.button:active { transform: translateY(0); }

/* Leading icon — LinkStack injects <img class="icon hvr-icon"> or
   <i class="icon"> at the start of the button. Pin to the left,
   leaving the title visually centered. */
.button .icon,
.button img.icon,
.button i.icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    margin: 0 !important;
    object-fit: contain;

    /* Most brand icons are colored SVGs. Force them to white so
       they read against the dark pill. Remove this filter if you
       want the original brand color. */
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.button i.icon { filter: none; color: var(--text) !important; }

/* Trailing 3-dot affordance, like Linktree's overflow menu.
   Pure decoration via ::after — no extra HTML needed. */
.button::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.55);
    background: currentColor;
    box-shadow:
        0 -8px 0 currentColor,
        0  8px 0 currentColor;
    opacity: 0.55;
}

/* Animated entrance, one row at a time. */
.button-entrance {
    animation: ls-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--delay, 0s);
}
@keyframes ls-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
