/* =========================================================
   BOTÃO DO INSTAGRAM (fixo no canto inferior direito)
   ========================================================= */

.ig-btn {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 40;

    display: inline-flex;
    max-width: calc(100vw - 32px);
    padding: 2px;

    text-decoration: none;
    border-radius: 999px;

    /* fio de LED: metade verde, metade rosa */
    background: linear-gradient(0 0 2px rgba(77, 225, 255, 0.9)), (0 0 6px rgba(24, 168, 255, 0.7));
    
    box-shadow:
        (0 0 2px rgba(77, 225, 255, 0.9)),
        (0 0 6px rgba(24, 168, 255, 0.7));

    -webkit-tap-highlight-color:hsl(from color h s l);

    -webkit-animation-delay: 2MS;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-btn:hover,
.ig-btn:focus-visible {
    transform: translateY(-3px);
     filter:
        drop-shadow(0 0 2px rgba(77, 225, 255, 0.9))
        drop-shadow(0 0 6px rgba(24, 168, 255, 0.7));
    animation: ig-pulse 2.6s ease-in-out infinite;
    outline:hsl(from color h s l);
}

.ig-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;

    padding: 9px 20px 9px 12px;

    font-family: "Chakra Petch";
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: ig-pulse 2.6s ease-in-out infinite;
    color: rgba(77, 225, 255, 0.9);

    background: #050505;
    border-radius: 999px;
    text-shadow: 0 0 8px rgba(77, 225, 255, 0.5);

    transition: background 0.3s ease;
}

.ig-btn:hover .ig-btn-inner,
.ig-btn:focus-visible .ig-btn-inner {
    background: #07121a;
}

.ig-btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Logo: fios de luz azul, com brilho que pulsa */

.ig-logo {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;

    filter:
        drop-shadow(0 0 2px rgba(77, 225, 255, 0.9))
        drop-shadow(0 0 6px rgba(24, 168, 255, 0.7));
    animation: ig-pulse 2.6s ease-in-out infinite;
}

.ig-btn:hover .ig-logo,
.ig-btn:focus-visible .ig-logo {
    filter:
        drop-shadow(0 0 4px rgba(77, 225, 255, 1))
        drop-shadow(0 0 12px rgba(24, 168, 255, 0.95));
}

@keyframes ig-pulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 2px rgba(77, 225, 255, 0.8))
            drop-shadow(0 0 5px rgba(24, 168, 255, 0.55));
    }
    50% {
        filter:
            drop-shadow(0 0 4px rgba(77, 225, 255, 1))
            drop-shadow(0 0 12px rgba(24, 168, 255, 0.9));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ig-logo {
        animation: none;
    }
}

/* Celular: um pouco menor */

@media (max-width: 600px) {

    .ig-btn {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .ig-btn-inner {
        gap: 8px;
        padding: 7px 14px 7px 9px;
        font-size: 13px;
    }

    .ig-logo {
        width: 26px;
        height: 26px;
    }
}