/* ============================================================================
   Shared button styles — 3D liquid-glass primary button, site-wide.
   Targets `.btn.btn-primary` (beats per-page `.btn-primary` rules) and the
   standalone `.btn-liquid` class. Loaded on every page after the page CSS.
   ============================================================================ */
.btn.btn-primary,
.btn-liquid {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .01em;
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(180deg, #34e6a9 0%, #10b981 46%, #0c996d 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, .6),
        inset 0 -11px 20px rgba(0, 0, 0, .16),
        0 3px 0 #0a7d59,
        0 10px 20px rgba(16, 185, 129, .38),
        0 18px 34px rgba(15, 23, 42, .14);
    transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}

/* top glass sheen */
.btn.btn-primary::before,
.btn-liquid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(130% 90% at 28% -20%, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 58%);
}

/* liquid shine sweep on hover */
.btn.btn-primary::after,
.btn-liquid::after {
    content: "";
    position: absolute;
    top: 0;
    left: -65%;
    width: 48%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
    transition: left .6s ease;
}

.btn.btn-primary:hover,
.btn-liquid:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #34e6a9 0%, #10b981 46%, #0c996d 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, .65),
        inset 0 -11px 20px rgba(0, 0, 0, .16),
        0 5px 0 #0a7d59,
        0 14px 26px rgba(16, 185, 129, .48),
        0 22px 42px rgba(15, 23, 42, .16);
}

.btn.btn-primary:hover::after,
.btn-liquid:hover::after {
    left: 125%;
}

.btn.btn-primary:active,
.btn-liquid:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),
        inset 0 -6px 15px rgba(0, 0, 0, .2),
        0 1px 0 #0a7d59,
        0 6px 14px rgba(16, 185, 129, .34);
}

@media (prefers-reduced-motion: reduce) {

    .btn.btn-primary,
    .btn-liquid,
    .btn.btn-primary::after,
    .btn-liquid::after {
        transition: none;
    }
}
