
/*
 * Infoplus Footer Branding
 * Versão 1.0.0
 */

.ifb-footer-wrap,
.ifb-footer-wrap * {
    box-sizing: border-box;
}

.ifb-footer-wrap {
    width: 100%;
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    margin: 0;
    background:
        linear-gradient(
            180deg,
            rgba(248, 250, 252, 0.98) 0%,
            rgba(241, 245, 249, 0.98) 100%
        );
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ifb-footer-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    transition:
        transform .22s ease,
        color .22s ease,
        opacity .22s ease;
}

.ifb-footer-link:hover,
.ifb-footer-link:focus {
    color: #0f172a !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.ifb-footer-text {
    white-space: nowrap;
    letter-spacing: .01em;
}

.ifb-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    color: #d61024;
    white-space: nowrap;
}

.ifb-logo-shell {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(214, 16, 36, .18),
        0 0 0 1px rgba(214, 16, 36, .07);
    animation: ifb-float 3.2s ease-in-out infinite;
}

.ifb-logo {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transform: translateZ(0);
}

.ifb-logo-shell::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255,255,255,.52) 48%,
        transparent 66%
    );
    transform: translateX(-120%) rotate(6deg);
    animation: ifb-shine 3.8s ease-in-out infinite;
    pointer-events: none;
}

.ifb-name {
    position: relative;
    display: inline-block;
    letter-spacing: .01em;
    background: linear-gradient(
        90deg,
        #b70d1e 0%,
        #f01830 45%,
        #b70d1e 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ifb-text-flow 4s linear infinite;
}

.ifb-name::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -3px;
    height: 1px;
    background: #d61024;
    opacity: .45;
    transition: right .25s ease;
}

.ifb-footer-link:hover .ifb-name::after,
.ifb-footer-link:focus .ifb-name::after {
    right: 0;
}

@keyframes ifb-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.035);
    }
}

@keyframes ifb-shine {
    0%, 58% {
        transform: translateX(-140%) rotate(6deg);
    }
    78%, 100% {
        transform: translateX(140%) rotate(6deg);
    }
}

@keyframes ifb-text-flow {
    to {
        background-position: 220% center;
    }
}

@media (max-width: 600px) {
    .ifb-footer-wrap {
        padding: 10px 14px;
    }

    .ifb-footer-link {
        font-size: 11px;
        gap: 6px;
    }

    .ifb-logo-shell,
    .ifb-logo {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
    }

    .ifb-logo-shell {
        flex-basis: 24px;
        border-radius: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifb-logo-shell,
    .ifb-logo-shell::after,
    .ifb-name {
        animation: none !important;
    }

    .ifb-footer-link {
        transition: none !important;
    }
}
