/**
 * Bubblehub Eyebrow Heading - Styles
 * Version: 1.0.0
 */

/* --- Reset --- */
.bh-eyebrow-heading,
.bh-eyebrow-heading * {
    box-sizing: border-box;
}

/* --- Wrapper --- */
.bh-eyebrow-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Arrangement: inline */
.bh-arrange--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
}

/* Arrangement: split */
.bh-arrange--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}

/* --- Row (line + label) --- */
.bh-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- Accent Line --- */
.bh-line {
    display: inline-block;
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    /* background set inline via widget render */
}

/* --- Label --- */
.bh-label {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
}

.bh-label a {
    color: inherit;
    text-decoration: none;
}

.bh-label a:hover {
    text-decoration: underline;
}

/* --- Heading --- */
.bh-heading {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.bh-heading a {
    color: inherit;
    text-decoration: none;
}

.bh-heading a:hover {
    text-decoration: underline;
}

/* ===================================================================
 *  ANIMATIONS
 * =================================================================== */

/* -- Scale X (initial state before play) -- */
.bh-eyebrow-heading[data-bh-anim="scaleX"] .bh-line {
    transform-origin: left center;
    transform: scaleX(0);
}

.bh-eyebrow-heading[data-bh-anim="scaleX"].bh-anim--play .bh-line {
    transform: scaleX(1);
    /* duration/delay/easing set via inline style by JS */
}

/* -- Wipe (clip-path) -- */
.bh-eyebrow-heading[data-bh-anim="wipe"] .bh-line {
    clip-path: inset(0 100% 0 0);
}

.bh-eyebrow-heading[data-bh-anim="wipe"].bh-anim--play .bh-line {
    clip-path: inset(0 0 0 0);
}

/* ===================================================================
 *  HOVER EFFECTS
 * =================================================================== */

.bh-hover--brighten .bh-line {
    transition: filter 0.3s ease;
}

.bh-hover--brighten:hover .bh-line {
    filter: brightness(1.4);
}

.bh-hover--extend .bh-line {
    transition: width 0.3s ease;
}

.bh-hover--extend:hover .bh-line {
    width: calc(100% + 12px);
}

/* ===================================================================
 *  REDUCED MOTION
 * =================================================================== */

@media (prefers-reduced-motion: reduce) {
    .bh-eyebrow-heading[data-bh-anim] .bh-line,
    .bh-eyebrow-heading[data-bh-anim].bh-anim--play .bh-line {
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }

    .bh-hover--brighten .bh-line,
    .bh-hover--extend .bh-line {
        transition: none !important;
    }
}
