/* Trending Projects Section Styles */
/* Note: Trending section now uses .projects-section class for consistency */

.trending-container {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

.trending-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.trending-grid::-webkit-scrollbar {
    height: 6px;
}

.trending-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.trending-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.trending-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Project cards - now secondary/subdued */
.projects-grid .project-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.projects-grid .project-card:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Trending project cards - now primary/highlighted */
.trending-card {
    background: var(--third) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.trending-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trending-grid .project-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.trending-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem !important;
}

/* Trending placeholder styles */
.trending-placeholder-container {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.trending-placeholder-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    min-height: 100px;
}

.trending-placeholder-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trending-grid .project-card {
        min-width: 250px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .trending-grid .project-card {
        min-width: 220px;
        max-width: 220px;
    }
}