/* Trending Boards Widget */
.trending-boards-widget {
    position: relative;
    z-index: 55;
}

.trending-boards-widget:first-child {
    padding-top: 100px !important;
}

.trending-boards-inner {
    background: #252b3d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    z-index: 55;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.trending-boards-inner:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-boards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.trending-boards-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.trending-boards-title i {
    color: #ff6b35;
    font-size: 16px;
}

.trending-boards-show-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4a9eff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.trending-boards-show-all:hover {
    color: #6bb3ff;
    gap: 6px;
}

.trending-boards-show-all i {
    font-size: 12px;
    transition: transform 0.2s;
}

.trending-boards-show-all:hover i {
    transform: translateX(2px);
}

.trending-boards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.trending-board-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-board-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.trending-board-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.trending-board-item:hover img {
    transform: scale(1.05);
}

.trending-board-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 8px;
}

.trending-board-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.trending-board-likes i {
    color: #ef4444;
    font-size: 10px;
}

/* Tablet */
@media (max-width: 768px) {
    .trending-boards-inner {
        padding: 14px;
    }
    
    .trending-boards-grid {
        gap: 8px;
    }
    
    .trending-board-item {
        border-radius: 8px;
    }
    
    .trending-board-overlay {
        padding: 6px;
    }
    
    .trending-board-likes {
        font-size: 10px;
    }
    
    .trending-board-likes i {
        font-size: 9px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .trending-boards-inner {
        padding: 12px;
        z-index: 55;
    }
    
    .trending-boards-header {
        margin-bottom: 10px;
    }
    
    .trending-boards-title {
        font-size: 13px;
        gap: 6px;
    }
    
    .trending-boards-title i {
        font-size: 14px;
    }
    
    .trending-boards-show-all {
        font-size: 11px;
    }
    
    .trending-boards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .trending-board-item {
        border-radius: 6px;
    }
    
    .trending-board-overlay {
        padding: 4px;
    }
    
    .trending-board-likes {
        font-size: 9px;
        gap: 3px;
    }
    
    .trending-board-likes i {
        font-size: 8px;
    }
}
