/* Additional styles for dynamic showcase features */

.stars-count {
    font-size: 0.85rem;
    color: #fbbf24;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.7;
    text-align: center;
}

/* Loading state */
.cards.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Smooth transitions for dynamic updates */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.updating {
    opacity: 0.7;
    transform: scale(0.98);
}

/* GitHub stars badge animation */
.stars-count {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Update timestamp in header */
.subtitle span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced card hover with stars */
.card:hover .stars-count {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Project image support (if API provides images) */
.card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* API status indicator */
.api-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideInLeft 0.5s ease-out;
}

.api-status.error {
    background: rgba(239, 68, 68, 0.9);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stars-count {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .last-updated {
        font-size: 0.7rem;
    }
    
    .api-status {
        bottom: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}


