/* ================================================
   EASIFYME — BRAND SIGNATURE MOMENT
   Slim animated bar that surfaces after first
   meaningful action per tool per session.
   Purely decorative — aria-hidden="true".
   ================================================ */

/* ---- Container ---- */
.brand-signature {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9800;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.brand-signature.bs-visible {
    max-height: 64px;
}

/* ---- Inner bar ---- */
.brand-signature__bar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 24px;
    background: linear-gradient(135deg, #0D1B3E 0%, #1E3A8A 50%, #1D4ED8 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(30, 58, 138, 0.4);
    position: relative;
    overflow: hidden;
}

/* ---- Shimmer overlay ---- */
.brand-signature__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        transparent 100%
    );
    transform: translateX(-100%);
    pointer-events: none;
}

.brand-signature.bs-shimmer .brand-signature__bar::after {
    animation: bs-shimmer 1.4s ease-in-out forwards;
}

@keyframes bs-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---- Logo icon ---- */
.brand-signature__logo {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-signature.bs-content-in .brand-signature__logo {
    opacity: 1;
    transform: scale(1);
}

/* ---- Brand name ---- */
.brand-signature__name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    position: relative;
    white-space: nowrap;
}

.brand-signature.bs-content-in .brand-signature__name {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Underline swoosh ---- */
.brand-signature__name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #60A5FA, #818CF8);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0s;
}

.brand-signature.bs-underline .brand-signature__name::after {
    transform: scaleX(1);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Divider ---- */
.brand-signature__divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}

.brand-signature.bs-content-in .brand-signature__divider {
    opacity: 1;
}

/* ---- Tagline / typewriter ---- */
.brand-signature__tagline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
}

.brand-signature__cursor {
    display: inline-block;
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.75);
    margin-left: 1px;
    vertical-align: middle;
    animation: bs-blink 0.7s step-end infinite;
}

.brand-signature__cursor.bs-cursor-done {
    animation: none;
    opacity: 0;
}

@keyframes bs-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---- Fade-out ---- */
.brand-signature.bs-fading .brand-signature__bar {
    transition: opacity 0.5s ease;
    opacity: 0;
}

/* ---- Mobile: smaller text, tighter gap ---- */
@media (max-width: 480px) {
    .brand-signature__name {
        font-size: 14px;
    }

    .brand-signature__tagline {
        font-size: 12px;
    }

    .brand-signature__divider {
        display: none;
    }

    .brand-signature__logo {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .brand-signature__tagline {
        display: none;
    }
}
