/* Viral score badges */
.viral-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    min-width: 2.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    line-height: 1;
}

.badge-hot {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warm {
    background-color: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.badge-cool {
    background-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Source indicator tags */
.source-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.source-github_trending {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.source-github_api {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.source-hackernews {
    background-color: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.source-reddit {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.source-twitter {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Repo cards */
.repo-card {
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.repo-card:hover {
    transform: translateY(-2px);
}

/* Clamp text to 2 lines */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
