/* ============================================
   COMPONENTS.CSS
   Elementos reutilizáveis
   ============================================ */

/* BOTÕES COM MICRO-INTERAÇÕES */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    text-align: center;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 188, 179, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(59, 188, 179, 0.3);
    transition: all 0.1s ease;
}

.btn-primary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(59, 188, 179, 0.2);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

/* CARDS COM ANIMAÇÕES SUAVES */
.card {
    background: #ffffff;
    padding: 50px 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card:hover::after {
    width: 80%;
}

.card-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(3deg);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover .card-icon svg {
    stroke-width: 2;
    filter: drop-shadow(0 4px 8px rgba(59, 188, 179, 0.3));
}

.card h3 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--primary-color);
}

/* AVALIAÇÕES - ESTRELAS COM ANIMAÇÃO */
.stars-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #FFD700;
    margin-bottom: 15px;
}

.stars-container svg {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: default;
}

.stars-container:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.stars-container:hover svg:nth-child(1) { transform: scale(1.2); transition-delay: 0ms; }
.stars-container:hover svg:nth-child(2) { transform: scale(1.2); transition-delay: 50ms; }
.stars-container:hover svg:nth-child(3) { transform: scale(1.2); transition-delay: 100ms; }
.stars-container:hover svg:nth-child(4) { transform: scale(1.2); transition-delay: 150ms; }
.stars-container:hover svg:nth-child(5) { transform: scale(1.2); transition-delay: 200ms; }

/* WHATSAPP FLOAT COM ANIMAÇÕES REFINADAS */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.15);
}
