/* Custom animations and styles */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-slide-in {
    animation: cardSlideIn 0.6s ease-out forwards;
}

/* Card hover effects */
.card-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Image loading effects */
.card-image {
    transition: opacity 0.3s ease-in-out;
}

.card-image.loading {
    opacity: 0.5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .card-title {
        font-size: 1rem;
    }
    
    .card-caption {
        font-size: 0.875rem;
    }
}

/* Focus styles for accessibility */
.card-container:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state for images */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
