/* ── PetSwipe Custom Styles ─────────────────────────────────── */

/* Swipe card entrance animation */
.swipe-card {
    will-change: transform, opacity;
    touch-action: pan-y;
}

.card-enter {
    animation: cardSlideIn 0.3s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Line clamp for description text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scrollbar for chat */
#messages-container {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

#messages-container::-webkit-scrollbar {
    width: 4px;
}

#messages-container::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 4px;
}

/* Active grab cursor during drag */
.swipe-card:active {
    cursor: grabbing;
}

/* Modal backdrop blur */
#adopt-modal {
    backdrop-filter: blur(4px);
}

/* Pulse animation for loading states */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pulse-soft {
    animation: pulse-soft 1.5s ease-in-out infinite;
}

/* Mobile full-height fix */
@supports (height: 100dvh) {
    .h-\[calc\(100vh-3\.5rem\)\] {
        height: calc(100dvh - 3.5rem);
    }
}
