/**
 * Unified "Chat Now for Details" hover for post thumbnails.
 *
 * Shown on every post card (.escort-card-image) across the site: home, all
 * posts, city, area and category listing pages. The overlay element is
 * injected by post-chat-hover.js so the markup stays consistent everywhere.
 */
.escort-card-chat-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    background:
        radial-gradient(circle at 50% 120%, rgba(147, 51, 234, 0.45), transparent 60%),
        linear-gradient(to top, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.15) 55%, transparent);
    -webkit-backdrop-filter: saturate(120%);
    backdrop-filter: saturate(120%);
    transition: opacity 0.35s ease;
}

.escort-card:hover .escort-card-chat-hover,
.escort-card-link:hover .escort-card-chat-hover,
.escort-card-image:hover .escort-card-chat-hover {
    opacity: 1;
}

.escort-card-chat-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.15rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ec4899, #9333ea);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.5);
    transform: translateY(16px) scale(0.9);
    opacity: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.escort-card:hover .escort-card-chat-pill,
.escort-card-link:hover .escort-card-chat-pill,
.escort-card-image:hover .escort-card-chat-pill {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Sweeping shine across the pill */
.escort-card-chat-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
}

.escort-card:hover .escort-card-chat-pill::after,
.escort-card-link:hover .escort-card-chat-pill::after,
.escort-card-image:hover .escort-card-chat-pill::after {
    animation: escortChatShine 1.1s ease 0.15s 1 forwards;
}

.escort-card-chat-pill .escort-card-chat-icon {
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    animation: escortChatPulse 1.4s ease-in-out infinite;
}

.escort-card-chat-pill .escort-card-chat-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #fff;
}

@keyframes escortChatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

@keyframes escortChatShine {
    0% { left: -120%; }
    100% { left: 140%; }
}

@media (max-width: 575.98px) {
    .escort-card-chat-pill {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }

    .escort-card-chat-pill .escort-card-chat-icon {
        width: 0.9rem;
        height: 0.9rem;
    }
}
