/**
 * Estilos para Botões Flutuantes de Adicionar
 * Plugin Sevo Eventos
 */

/* Botão Flutuante Principal */
.sevo-floating-add-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    overflow: hidden;
    transform: scale(1);
}

.sevo-floating-add-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.sevo-floating-add-button:active {
    transform: scale(0.95);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.sevo-floating-add-button:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Ícone do botão */
.sevo-floating-add-button .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 1;
}

/* Animação de entrada */
@keyframes sevoFloatingButtonIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.sevo-floating-add-button.sevo-animate-in {
    animation: sevoFloatingButtonIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Tooltip do botão flutuante */
.sevo-floating-add-button::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.sevo-floating-add-button:hover::before {
    opacity: 1;
}

/* Efeito de ondulação (ripple) */
.sevo-floating-add-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sevo-floating-add-button:active::after {
    width: 120px;
    height: 120px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sevo-floating-add-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .sevo-floating-add-button .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .sevo-floating-add-button::before {
        right: 65px;
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .sevo-floating-add-button {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    
    .sevo-floating-add-button .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    .sevo-floating-add-button::before {
        right: 60px;
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .sevo-floating-add-button {
        transition: none;
        animation: none;
    }
    
    .sevo-floating-add-button:hover {
        transform: none;
    }
    
    .sevo-floating-add-button:active {
        transform: none;
    }
    
    .sevo-floating-add-button::after {
        transition: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .sevo-floating-add-button {
        background: #000;
        border: 2px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    }
    
    .sevo-floating-add-button:hover {
        background: #333;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9);
    }
    
    .sevo-floating-add-button::before {
        background: #000;
        border: 1px solid #fff;
    }
}

/* Esconder botão quando há sobreposição com outros elementos flutuantes */
.sevo-floating-add-button.sevo-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
}

/* Variações de cor por contexto */
.sevo-floating-add-button.sevo-eventos {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.sevo-floating-add-button.sevo-eventos:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.sevo-floating-add-button.sevo-orgs {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.sevo-floating-add-button.sevo-orgs:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
}

.sevo-floating-add-button.sevo-tipo-evento {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.sevo-floating-add-button.sevo-tipo-evento:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}