/* ==========================================================================
   WaChat Pro – Frontend Styles
   ========================================================================== */

/* ── Wrapper ── */
.wcp-wrapper {
    position: fixed;
    bottom: 28px;
    right: var(--wcp-right, 28px);
    left:  var(--wcp-left,  auto);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ── Button ── */
.wcp-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--wcp-bg, #25D366);
    color: var(--wcp-icon, #ffffff);
    text-decoration: none;
    border-radius: 50px;
    padding: 13px 20px 13px 16px;
    box-shadow:
        0 4px 15px rgba(37, 211, 102, 0.45),
        0 2px 6px  rgba(0, 0, 0, 0.18);
    transition:
        transform   0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow  0.25s ease,
        padding     0.25s ease;
    cursor: pointer;
    overflow: hidden;
    max-width: 220px;
    white-space: nowrap;
}

.wcp-button:hover,
.wcp-button:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

.wcp-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* ── Pulse Ring ── */
.wcp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background-color: var(--wcp-bg, #25D366);
    opacity: 0;
    animation: wcp-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes wcp-pulse {
    0%   { opacity: 0.55; transform: scale(1); }
    70%  { opacity: 0;    transform: scale(1.45); }
    100% { opacity: 0;    transform: scale(1.45); }
}

/* ── Icon ── */
.wcp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--wcp-icon, #ffffff);
    animation: wcp-wiggle 3s ease-in-out 4s infinite;
}

@keyframes wcp-wiggle {
    0%, 90%, 100% { transform: rotate(0deg); }
    92%           { transform: rotate(-15deg); }
    96%           { transform: rotate(15deg); }
    98%           { transform: rotate(-8deg); }
}

/* ── Label ── */
.wcp-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--wcp-icon, #ffffff);
    line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wcp-button {
        padding: 14px;
        border-radius: 50%;
        max-width: none;
    }
    .wcp-label {
        display: none;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .wcp-pulse,
    .wcp-icon {
        animation: none;
    }
    .wcp-button {
        transition: none;
    }
}
